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

vpc address prefix and subnet doc fix #4262

Merged
merged 1 commit into from
Jan 18, 2023
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
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