Skip to content

Commit

Permalink
added placement_group documentation in instance_template
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm authored and hkantare committed Oct 20, 2021
1 parent 22881f3 commit 3ee81aa
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/docs/d/is_instance_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ You can access the following attribute references after your data source is crea
- `primary_ipv4_address` - (String) The IPv4 address assigned to the network interface.
- `subnet` - (String) The VPC subnet to assign to the interface.
- `security_groups` - (String) List of security groups of the subnet.

- `placement_target` - (List) The placement restrictions to use for the virtual server instance.
Nested scheme for `placement_target`:
- `crn` - (String) The unique identifier for this placement target.
- `href` - (String) The CRN for this placement target.
- `id` - (String) The URL for this placement target.

- `profile` - (String) The number of instances created in the instance group.
- `primary_network_interfaces` - (List) A nested block describes the primary network interface for the template.

Expand Down
5 changes: 5 additions & 0 deletions website/docs/d/is_instance_templates.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ You can access the following attribute references after your data source is crea
- `primary_ipv4_address` - (String) The IPv4 address assigned to the network interface.
- `subnet` - (String) The VPC subnet to assign to the interface.
- `security_groups` - (String) List of security groups of the subnet.
- `placement_target` - (List) The placement restrictions to use for the virtual server instance.
Nested scheme for `placement_target`:
- `crn` - (String) The unique identifier for this placement target.
- `href` - (String) The CRN for this placement target.
- `id` - (String) The URL for this placement target.
- `profile` - (String) The number of instances created in the instance group.
- `primary_network_interfaces` - (List) A nested block describes the primary network interface for the template.

Expand Down
18 changes: 18 additions & 0 deletions website/docs/r/is_instance_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,23 @@ Review the argument references that you can specify for your resource.
- `encryption` - (Optional, String) The encryption key CRN to encrypt the boot volume attached.
- `name` - (Optional, String) The name of the boot volume.
- `dedicated_host` - (Optional, Force new resource,String) The placement restrictions to use for the virtual server instance. Unique Identifier of the dedicated host where the instance is placed.

**NOTE:**
- only one of [**dedicated_host**, **dedicated_host_group**, **placement_group**] can be used

- `dedicated_host_group` - (Optional, Force new resource, String) The placement restrictions to use for the virtual server instance. Unique Identifier of the dedicated host group where the instance is placed.

**NOTE:**
- only one of [**dedicated_host**, **dedicated_host_group**, **placement_group**] can be used

- `image` - (Required, String) The ID of the image to create the template.
- `keys` - (Required, List) List of SSH key IDs used to allow log in user to the instances.
- `name` - (Required, String) The name of the instance template.
- `placement_group` - (Optional, Force new resource, String) The placement restrictions to use for the virtual server instance. Unique Identifier of the placement group where the instance is placed.

**NOTE:**
- only one of [**dedicated_host**, **dedicated_host_group**, **placement_group**] can be used

- `profile` - (Required, String) The number of instances created in the instance group.
- `primary_network_interfaces` (Required, List) A nested block describes the primary network interface for the template.

Expand Down Expand Up @@ -220,6 +233,11 @@ In addition to all arguments listed, you can access the following attribute refe

- `crn` - (String) The CRN for this instance template.
- `id` - (String) The ID of an instance template.
- `placement_target` - (List) The placement restrictions to use for the virtual server instance.
Nested scheme for `placement_target`:
- `crn` - (String) The unique identifier for this placement target.
- `href` - (String) The CRN for this placement target.
- `id` - (String) The URL for this placement target.

## Import
The `ibm_is_instance_template` resource can be imported by using instance template ID.
Expand Down

0 comments on commit 3ee81aa

Please sign in to comment.