Skip to content

Commit e965978

Browse files
committed
Added the documents for primary_ip addition
1 parent 0a81c97 commit e965978

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

ibm/service/vpc/resource_ibm_is_instance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7440,7 +7440,7 @@ func resourceIBMIsInstancePrimaryIPReferenceToMap(model *vpcv1.ReservedIPReferen
74407440
modelMap["id"] = model.ID
74417441
modelMap["name"] = model.Name
74427442
if model.ResourceType != nil {
7443-
modelMap["resource_type"] = *model.ResourceType
7443+
modelMap["resource_type"] = model.ResourceType
74447444
}
74457445
return modelMap, nil
74467446
}

website/docs/r/is_instance.html.markdown

+20
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,16 @@ In addition to all argument reference list, you can access the following attribu
917917
- `id` - (String) The ID of the instance.
918918
- `memory`- (Integer) The amount of memory that is allocated to the instance in gigabytes.
919919
- `numa_count` - (Integer) The number of NUMA nodes this instance is provisioned on. This property may be absent if the instance's status is not running.
920+
- `network_attachments` - (List) The network attachments list for this virtual server instance.
921+
Nested schema for **network_attachments**:
922+
923+
- `primary_ip` - (List) The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.
924+
925+
Nested scheme for `primary_ip`:
926+
- `auto_delete` - (Bool) Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
927+
- `address` - (String) The IP address of the reserved IP.
928+
- `name`- (String) The user-defined or system-provided name for this reserved IP
929+
- `id`- (String) The unique identifier for this reserved IP.
920930
- `network_interfaces`- (List of Strings) A list of more network interfaces that are attached to the instance.
921931

922932
Nested scheme for `network_interfaces`:
@@ -933,6 +943,16 @@ In addition to all argument reference list, you can access the following attribu
933943
- `name`- (String) The user-defined or system-provided name for this reserved IP
934944
- `reserved_ip`- (String) The unique identifier for this reserved IP
935945
- `primary_ipv4_address` - (String, Deprecated) The primary IPv4 address. Same as `primary_ip.[0].address`
946+
- `primary_network_attachment` - (List) The primary network attachment for this virtual server instance.
947+
Nested schema for **primary_network_attachment**:
948+
949+
- `primary_ip` - (List) The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.
950+
951+
Nested scheme for `primary_ip`:
952+
- `auto_delete` - (Bool) Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
953+
- `address` - (String) The IP address of the reserved IP.
954+
- `name`- (String) The user-defined or system-provided name for this reserved IP
955+
- `id`- (String) The unique identifier for this reserved IP.
936956
- `primary_network_interface`- (List of Strings) A list of primary network interfaces that are attached to the instance.
937957

938958
Nested scheme for `primary_network_interface`:

0 commit comments

Comments
 (0)