NSX-T Data Center REST API
Deploys a particular service
This will deploy a particular service on a given cluster / host. Internally multiple service instance can becreated during the deployment. If there are no issues in the parameters, the call returns immediately,
and the service VMs will be deployed asynchronously. To get the overall status of the deployment or to get
the status of individual service vm, please use the deployment status APIs.
Request:
Method:
POST
URI Path(s):
/api/v1/serviceinsertion/services/{service-id}/service-deployments
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ServiceDeployment+
Example Request:
POST https://<nsx-mgr>/api/v1/serviceinsertion/services/65a60890-6f48-418d-a7d5-5aaf65f2344b/service-deployments { "perimeter": "CLUSTER", "deployment_type": "HOSTLOCAL", "deployment_spec_name": "GISpec", "deployment_mode": "STAND_ALONE", "instance_deployment_template": { "name": "GI_GOLD", "attributes": [ { "attribute_type": "STRING", "display_name": "dns_server1", "key": "dns_server1", "value": "" }, { "attribute_type": "STRING", "display_name": "vsm_password", "key": "vsm_password", "value": "" } ] }, "service_deployment_config": { "compute_collection_id": "f42c11d3-fe88-46d4-a1e5-b9f73a30c31a:domain-c7", "compute_manager_id": "f42c11d3-fe88-46d4-a1e5-b9f73a30c31a", "storage_id": "datastore-30", "vm_nic_info": { "nic_infos": [ { "nic_metadata": { "interface_label": "eth0", "interface_index": 0, "interface_type": "MANAGEMENT" }, "network_id": "network-28", "ip_pool_id": "a3cf1339-9cf7-4834-88ec-d4ad813bd130" } ] } } }Successful Response:
Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
ServiceDeployment+