|
| 1 | +--- |
| 2 | +subcategory: "Cloud Container Instance (CCI)" |
| 3 | +layout: "huaweicloud" |
| 4 | +page_title: "HuaweiCloud: huaweicloud_cciv2_service" |
| 5 | +description: |- |
| 6 | + Manages a CCI Service resource within HuaweiCloud. |
| 7 | +--- |
| 8 | + |
| 9 | +# huaweicloud_cciv2_service |
| 10 | + |
| 11 | +<!-- |
| 12 | +please add the description of huaweicloud_cciv2_service |
| 13 | + + For resource: Manages xxx resource within HuaweiCloud. |
| 14 | + + For data source: Use this data source to get the list of xxx. |
| 15 | +--> |
| 16 | + |
| 17 | +## Example Usage |
| 18 | + |
| 19 | +<!-- please add the usage of huaweicloud_cciv2_service --> |
| 20 | +```hcl |
| 21 | +
|
| 22 | +``` |
| 23 | + |
| 24 | +## Argument Reference |
| 25 | + |
| 26 | +The following arguments are supported: |
| 27 | + |
| 28 | +* `region` - (Optional, String, ForceNew) Specifies the region in which to create the resource. |
| 29 | + If omitted, the provider-level region will be used. |
| 30 | + Changing this creates a new resource. |
| 31 | + |
| 32 | +* `name` - (Required, String) Specifies the name of the CCI Service. |
| 33 | + |
| 34 | +* `namespace` - (Required, String) Specifies the namespace. |
| 35 | + |
| 36 | +* `annotations` - (Optional, Map) Specifies the annotations of the CCI Service. |
| 37 | + |
| 38 | +* `enable_force_new` - (Optional, String) <!-- please add the description of the argument --> |
| 39 | + |
| 40 | +* `labels` - (Optional, Map) Specifies the annotations of the CCI Service. |
| 41 | + |
| 42 | +* `selector` - (Optional, Map) Specifies the selector of the CCI Service. |
| 43 | + |
| 44 | +## Attribute Reference |
| 45 | + |
| 46 | +In addition to all arguments above, the following attributes are exported: |
| 47 | + |
| 48 | +* `id` - The resource ID. |
| 49 | + |
| 50 | +* `api_version` - The API version of the CCI Service. |
| 51 | + |
| 52 | +* `client_timeout_seconds` - Specifies the cluster IPs of the CCI Service. |
| 53 | + |
| 54 | +* `cluster_ip` - Specifies the cluster IP of the CCI Service. |
| 55 | + |
| 56 | +* `cluster_ips` - Specifies the cluster IPs of the CCI Service. |
| 57 | + |
| 58 | +* `creation_timestamp` - The creation timestamp of the namespace. |
| 59 | + |
| 60 | +* `external_name` - The external name of the CCI Service. |
| 61 | + |
| 62 | +* `ip_families` - The IP families of the CCI Service. |
| 63 | + |
| 64 | +* `ip_family_policy` - The IP family policy of the CCI Service. |
| 65 | + |
| 66 | +* `kind` - The kind of the CCI Service. |
| 67 | + |
| 68 | +* `load_balancer_ip` - The load balancer IP of the CCI Service. |
| 69 | + |
| 70 | +* `ports` - Specifies the ports of the CCI Service. |
| 71 | + The [ports](#attrblock--ports) structure is documented below. |
| 72 | + |
| 73 | +* `publish_not_ready_addresses` - Whether the publish is not ready addresses of the CCI Service. |
| 74 | + |
| 75 | +* `resource_version` - The resource version of the namespace. |
| 76 | + |
| 77 | +* `session_affinity` - The load balancer IP of the CCI Service. |
| 78 | + |
| 79 | +* `status` - The status of the namespace. |
| 80 | + The [status](#attrblock--status) structure is documented below. |
| 81 | + |
| 82 | +* `type` - The type of the CCI Service. |
| 83 | + |
| 84 | +* `uid` - The uid of the namespace. |
| 85 | + |
| 86 | +<a name="attrblock--ports"></a> |
| 87 | +The `ports` block supports: |
| 88 | + |
| 89 | +* `app_protocol` - The app protocol. |
| 90 | + |
| 91 | +* `name` - Tthe name. |
| 92 | + |
| 93 | +* `port` - The port. |
| 94 | + |
| 95 | +* `protocol` - The protocol. |
| 96 | + |
| 97 | +* `target_port` - The target port. |
| 98 | + |
| 99 | +<a name="attrblock--status"></a> |
| 100 | +The `status` block supports: |
| 101 | + |
| 102 | +* `conditions` - Tthe conditions of the CCI Service. |
| 103 | + The [conditions](#attrblock--status--conditions) structure is documented below. |
| 104 | + |
| 105 | +* `loadbalancer` - The subnet attributes of the CCI Service. |
| 106 | + The [loadbalancer](#attrblock--status--loadbalancer) structure is documented below. |
| 107 | + |
| 108 | +<a name="attrblock--status--conditions"></a> |
| 109 | +The `conditions` block supports: |
| 110 | + |
| 111 | +* `last_transition_time` - The last transition time. |
| 112 | + |
| 113 | +* `message` - The message. |
| 114 | + |
| 115 | +* `observe_generation` - The observe generation. |
| 116 | + |
| 117 | +* `reason` - The reason. |
| 118 | + |
| 119 | +* `status` - Tthe status. |
| 120 | + |
| 121 | +* `type` - The type. |
| 122 | + |
| 123 | +<a name="attrblock--status--loadbalancer"></a> |
| 124 | +The `loadbalancer` block supports: |
| 125 | + |
| 126 | +* `ingress` - The ID of the CCI Service. |
| 127 | + The [ingress](#attrblock--status--loadbalancer--ingress) structure is documented below. |
| 128 | + |
| 129 | +<a name="attrblock--status--loadbalancer--ingress"></a> |
| 130 | +The `ingress` block supports: |
| 131 | + |
| 132 | +* `ip` - The ID of the CCI Service. |
| 133 | + |
| 134 | +* `ports` - The ports. |
| 135 | + The [ports](#attrblock--status--loadbalancer--ingress--ports) structure is documented below. |
| 136 | + |
| 137 | +<a name="attrblock--status--loadbalancer--ingress--ports"></a> |
| 138 | +The `ports` block supports: |
| 139 | + |
| 140 | +* `error` - The error. |
| 141 | + |
| 142 | +* `port` - The port. |
| 143 | + |
| 144 | +* `protocol` - The protocol. |
| 145 | + |
| 146 | +## Import |
| 147 | + |
| 148 | +The CCI Service can be imported using `namespace` and `name`, separated by a slash, e.g. |
| 149 | + |
| 150 | +```bash |
| 151 | +$ terraform import huaweicloud_cciv2_service.test <namespace>/<name> |
| 152 | +``` |
0 commit comments