Skip to content

Commit

Permalink
fix: endpoint gateways data source
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaksibm committed Sep 14, 2021
1 parent 1c61dd9 commit 3ca45c2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
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.

0 comments on commit 3ca45c2

Please sign in to comment.