NSX-T Data Center REST API
Create service instance
Create service instance.Please note that, only display_name, description and deployment_spec_name
are allowed to be modified in an exisiting entity. If the deployment spec
name is changed, it will trigger the upgrade operation for the SVMs.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/infra/tier-0s/{tier-0-id}/locale-services/{locale-service-id}/service-instances/{service-instance-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PolicyServiceInstance+
Example Request:
{ "resource_type": "PolicyServiceInstance", "description": "PAN partner service", "id": "pan-service-instance", "display_name": "pan-service-instance", "path": "/infra/domains/D1/service-instances/PAN-1", "partner_service_name": "NS Service_automation", "deployment_mode": "ACTIVE_STANDBY", "transport_type": "L2_BRIDGE" "primary_interface_network": "/infra/tier-1s/TIER-1-LR-1/segments/SI_SEGMENT", "primary_interface_mgmt_ip": "2.1.1.4", "primary_gateway_address": "2.1.1.1", "primary_subnet_mask": "255.255.255.0", "secondary_interface_network": "/infra/tier-1s/TIER-1-LR-1/segments/SI_SEGMENT", "secondary_interface_mgmt_ip": "2.1.1.5", "secondary_gateway_address": "2.1.1.1", "secondary_subnet_mask": "255.255.255.0", "failure_policy": "BLOCK", "context_id": "3910b71f-0f10-47c7-bffc-2c996da30563", "compute_id": "3910b71f-0f10-47c7-bffc-2c996da30563:domain-c16", "storage_id": "datastore-12", "deployment_spec_name": "NS_DepSpec", "deployment_template_name": "NS_DepTemp", "attributes": [ { "key": "LicenseKey", "display_name": "License", "value": "adklfjakldfjlkajfkl", "attribute_type": "STRING", "read_only": false } ], "_revision":0 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyServiceInstance+