Skip to content

Commit

Permalink
vpc address prefix and subnet doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaksibm authored and hkantare committed Jan 18, 2023
1 parent 6c6e75a commit d94f3db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion website/docs/r/is_subnet.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Review the argument references that you can specify for your resource.
- `ipv4_cidr_block` - (Optional, Forces new resource, String) The IPv4 range of the subnet.

~> **NOTE:**
- if using a IPv4 range from a `ibm_is_vpc_address_prefix` resource, add a `depends_on` to handle hidden `ibm_is_vpc_address_prefix` dependency if not using interpolation.
If using a IPv4 range from a `ibm_is_vpc_address_prefix` resource, add a `depends_on` to handle hidden `ibm_is_vpc_address_prefix` dependency if not using interpolation.

- `ip_version` - (Optional, Forces new resource, String) The IP Version. The default is `ipv4`.
- `name` - (Required, String) The name of the subnet.
Expand All @@ -106,6 +106,10 @@ Review the argument references that you can specify for your resource.
- `routing_table` - (Optional, String) The routing table ID associated with the subnet.
- `tags` - (Optional, List of Strings) The tags associated with the subnet.
- `total_ipv4_address_count` - (Optional, Forces new resource, String) The total number of IPv4 addresses. Either `ipv4_cidr_block` or `total_pv4_address_count` input parameters must be provided in the resource.

~> **Note**
The VPC must have a default address prefix in the specified zone, and that prefix must have a free CIDR range with at least this number of addresses.

- `vpc` - (Required, Forces new resource, String) The VPC ID.
- `zone` - (Required, Forces new resource, String) The subnet zone name.

Expand Down
3 changes: 2 additions & 1 deletion website/docs/r/is_vpc_address_prefix.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "ibm_is_vpc_address_prefix" "example" {
Review the argument references that you can specify for your resource.

- `cidr` - (Required, Forces new resource, String) The CIDR block for the address prefix.
- `is_default` - (Optional, String) Makes the prefix as default prefix for this zone in this VPC.
- `is_default` - (Optional, Boolean) Makes the prefix as default prefix for this zone in this VPC. Default is `false`
- `name` - (Required, String) The address prefix name.No.
- `vpc` - (Required, Forces new resource, String) The VPC ID.
- `zone` - (Required, Forces new resource, String) The name of the zone.
Expand All @@ -54,6 +54,7 @@ In addition to all argument reference list, you can access the following attribu
- `id` - (String) The ID of the address prefix. The ID is composed of `<vpc_id>/<address_prefix_id>`.
- `has_subnets`- (Bool) Indicates whether subnets exist with addresses from this prefix.
- `address_prefix` - (String) the unique identifier of the address prefix.
- `related_crn` - (String) CRN of the VPC this address prefix belongs to.

## Import
The `ibm_is_vpc_address_prefix` resource can be imported by using the VPC ID and VPC address prefix ID.
Expand Down

0 comments on commit d94f3db

Please sign in to comment.