Skip to main content

sol_network_instances

Creates, updates, deletes, gets or lists a sol_network_instances resource.

Overview​

Namesol_network_instances
TypeResource
Idaws.tnb.sol_network_instances

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringNetwork instance ID. (pattern: <code>^ni-[a-f0-9]{17}$</code>)
arnstringNetwork instance ARN. (pattern: <code>^arn:(aws|aws-cn|aws-iso|aws-iso-b|aws-us-gov):tnb:([a-z]{2}(-(gov|isob|iso))?-(east|west|north|south|central){1,2}-[0-9]):\d{12}:(network-instance/ni-[a-f0-9]{17})$</code>)
lcm_op_infoobjectLifecycle management operation details on the network instance. Lifecycle management operations are deploy, update, or delete operations.
metadataobjectThe metadata of a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.
ns_instance_descriptionstringNetwork instance description.
ns_instance_namestringNetwork instance name.
ns_statestringNetwork instance state. (INSTANTIATED, NOT_INSTANTIATED, UPDATED, IMPAIRED, UPDATE_FAILED, STOPPED, DELETED, INSTANTIATE_IN_PROGRESS, INTENT_TO_UPDATE_IN_PROGRESS, UPDATE_IN_PROGRESS, TERMINATE_IN_PROGRESS)
nsd_idstringNetwork service descriptor ID. (pattern: <code>^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</code>)
nsd_info_idstringNetwork service descriptor info ID. (pattern: <code>^np-[a-f0-9]{17}$</code>)
tagsobjectA tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sol_network_instanceselectns_instance_id, regionGets the details of the network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.
list_sol_network_instancesselectregionmax_results, nextpage_opaque_markerLists your network instances. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.
create_sol_network_instanceinsertregion, nsName, nsdInfoIdCreates a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. Creating a network instance is the third step after creating a network package. For more information about network instances, Network instances in the Amazon Web Services Telco Network Builder User Guide. Once you create a network instance, you can instantiate it. To instantiate a network, see InstantiateSolNetworkInstance.
update_sol_network_instanceupdatens_instance_id, region, updateTypeUpdate a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. Choose the updateType parameter to target the necessary update of the network instance.
delete_sol_network_instancedeletens_instance_id, regionDeletes a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. To delete a network instance, the instance must be in a stopped or terminated state. To terminate a network instance, see TerminateSolNetworkInstance.
terminate_sol_network_instanceexecns_instance_id, regionTerminates a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. You must terminate a network instance before you can delete it.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ns_instance_idstringID of the network instance.
regionstringAWS region (default: us-east-1)
max_resultsintegerThe maximum number of results to include in the response.
nextpage_opaque_markerstringThe token for the next page of results.

SELECT examples​

Gets the details of the network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.

SELECT
id,
arn,
lcm_op_info,
metadata,
ns_instance_description,
ns_instance_name,
ns_state,
nsd_id,
nsd_info_id,
tags
FROM aws.tnb.sol_network_instances
WHERE ns_instance_id = '{{ ns_instance_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. Creating a network instance is the third step after creating a network package. For more information about network instances, Network instances in the Amazon Web Services Telco Network Builder User Guide. Once you create a network instance, you can instantiate it. To instantiate a network, see InstantiateSolNetworkInstance.

INSERT INTO aws.tnb.sol_network_instances (
nsDescription,
nsName,
nsdInfoId,
tags,
region
)
SELECT
'{{ nsDescription }}',
'{{ nsName }}' /* required */,
'{{ nsdInfoId }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
id,
arn,
ns_instance_name,
nsd_info_id,
tags
;

UPDATE examples​

Update a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. Choose the updateType parameter to target the necessary update of the network instance.

UPDATE aws.tnb.sol_network_instances
SET
modifyVnfInfoData = '{{ modifyVnfInfoData }}',
tags = '{{ tags }}',
updateNs = '{{ updateNs }}',
updateType = '{{ updateType }}'
WHERE
ns_instance_id = '{{ ns_instance_id }}' --required
AND region = '{{ region }}' --required
AND updateType = '{{ updateType }}' --required
RETURNING
ns_lcm_op_occ_id,
tags;

DELETE examples​

Deletes a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. To delete a network instance, the instance must be in a stopped or terminated state. To terminate a network instance, see TerminateSolNetworkInstance.

DELETE FROM aws.tnb.sol_network_instances
WHERE ns_instance_id = '{{ ns_instance_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods​

Terminates a network instance. A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed. You must terminate a network instance before you can delete it.

EXEC aws.tnb.sol_network_instances.terminate_sol_network_instance
@ns_instance_id='{{ ns_instance_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;