Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: endpoint gateways data source #3100

Merged
merged 1 commit into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ibm/data_source_ibm_is_virtual_endpoint_gateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ func dataSourceIBMISEndpointGateways() *schema.Resource {
Computed: true,
Description: "The target name",
},
isVirtualEndpointGatewayTargetCRN: {
Type: schema.TypeString,
Computed: true,
Description: "The target crn",
},
isVirtualEndpointGatewayTargetResourceType: {
Type: schema.TypeString,
Computed: true,
Expand Down
45 changes: 22 additions & 23 deletions website/docs/d/is_virtual_endpoint_gateways.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,28 @@ data "ibm_is_virtual_endpoint_gateways" "data_test" {
}
```

## Argument reference
Review the argument references that you can specify for your data source.

- `gateway`- (Required, String) The endpoint gateway ID.

## Attribute reference
In addition to the argument reference list, you can access the following attribute references after your data source is created.

- `created_at` - (Timestamp) The created date and time of the endpoint gateway.
- `health_state` - (String) The endpoint gateway health state. **ok: Healthy**, **degraded: Suffering from compromised performance, capacity, or connectivity**, **faulted: Completely unreachable, inoperative, or entirely incapacitated**, **inapplicable: The health state does not apply because of the current lifecycle state**. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may have this state.
- `lifecycle_state` - (String) The endpoint gateway lifecycle state, supported values are `deleted`, `deleting`, `failed`, `pending`, `stable`, `updating`, `waiting`, `suspended`.
- `id` - (String) The endpoint gateway ID.
- `ips` - (List) The collection of reserved IPs bound to an endpoint gateway.

Nested scheme for `ips`:
- `ips.id` - (String) The unique identifier for the reserved IP.
- `ips.name` - (String) The user defined or system provided name of the resource IP.
- `ips.resource_type` - (String) The endpoint gateway IP resource type or the subnet reserved IP.
- `name` - (String) The endpoint gateway name.
- `resource_group` - (String) The unique identifier for the resource group.
- `target` - (List) The endpoint gateway target services.

Nested scheme for `target`:
- `name` - (String) The endpoint gateway target name.
- `resource_type` - (String) The endpoint gateway target resource type.
- `vpc` - (String) The VPC ID.
- `virtual_endpoint_gateways` - (List) List of Endpoint Gateways in the IBM Cloud infrastructure region.

Nested scheme for `virtual_endpoint_gateways`:
- `created_at` - (Timestamp) The created date and time of the endpoint gateway.
- `health_state` - (String) The endpoint gateway health state. **ok: Healthy**, **degraded: Suffering from compromised performance, capacity, or connectivity**, **faulted: Completely unreachable, inoperative, or entirely incapacitated**, **inapplicable: The health state does not apply because of the current lifecycle state**. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may have this state.
- `lifecycle_state` - (String) The endpoint gateway lifecycle state, supported values are `deleted`, `deleting`, `failed`, `pending`, `stable`, `updating`, `waiting`, `suspended`.
- `id` - (String) The endpoint gateway ID.
- `ips` - (List) The collection of reserved IPs bound to an endpoint gateway.

Nested scheme for `ips`:
- `ips.id` - (String) The unique identifier for the reserved IP.
- `ips.name` - (String) The user defined or system provided name of the resource IP.
- `ips.resource_type` - (String) The endpoint gateway IP resource type or the subnet reserved IP.
- `name` - (String) The endpoint gateway name.
- `resource_group` - (String) The unique identifier for the resource group.
- `target` - (List) The endpoint gateway target services.

Nested scheme for `target`:
- `crn` - (String) The endpoint gateway target CRN.
- `name` - (String) The endpoint gateway target name.
- `resource_type` - (String) The endpoint gateway target resource type.
- `vpc` - (String) The VPC ID.