NSX-T Data Center REST API

Update an existing Service Deployment (Deprecated)

Update an existing Service Deployment. Deprecated: This API is deprecated since only property we can change on service deployment is display name, which is used for the SVM name. Changing the name will cause the name of the deployment to go out of sync with the deployed VM.

Request:

Method:
PUT
URI Path(s):
/api/v1/serviceinsertion/services/{service-id}/service-deployments/{service-deployment-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ServiceDeployment+

Example Request:

{ "perimeter": "CLUSTER", "deployment_type": "HOSTLOCAL", "clustered_deployment_count": 1, "deployment_spec_name": "GISpec", "deployment_mode": "STAND_ALONE", "instance_deployment_template": { "name": "GI_GOLD", "attributes": [ { "key": "netmask0", "display_name": "netmask0", "value": "", "attribute_type": "STRING" }, { "key": "vc_password", "display_name": "vc_password", "value": "", "attribute_type": "STRING" } ] }, "service_deployment_config": { "compute_manager_id": "f42c11d3-fe88-46d4-a1e5-b9f73a30c31a", "compute_collection_id": "f42c11d3-fe88-46d4-a1e5-b9f73a30c31a:domain-c7", "storage_id": "datastore-30", "vm_nic_info": { "nic_infos": [ { "nic_metadata": { "interface_label": "eth0", "interface_index": 0, "interface_type": "MANAGEMENT" }, "ip_pool_id": "a3cf1339-9cf7-4834-88ec-d4ad813bd130", "network_id": "network-28" } ] } }, "service_id": "7007c838-d605-458c-9bef-c068364f2efd", "resource_type": "ServiceDeployment", "id": "78e1a4fa-57e0-493c-9325-c8c508b01002", "display_name": "78e1a4fa-57e0-493c-9325-c8c508b01002", "_create_user": "admin", "_create_time": 1543558304751, "_last_modified_user": "admin", "_last_modified_time": 1543558304751, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ServiceDeployment+

Example Response:

{ "perimeter": "CLUSTER", "deployment_type": "HOSTLOCAL", "clustered_deployment_count": 1, "deployment_spec_name": "GISpec", "deployment_mode": "STAND_ALONE", "instance_deployment_template": { "name": "GI_GOLD", "attributes": [ { "key": "DNS", "display_name": "DNS", "value": "", "attribute_type": "STRING" }, { "key": "sva_key", "display_name": "sva_key", "value": "", "attribute_type": "STRING" } ] }, "service_deployment_config": { "compute_manager_id": "f42c11d3-fe88-46d4-a1e5-b9f73a30c31a", "compute_collection_id": "f42c11d3-fe88-46d4-a1e5-b9f73a30c31a:domain-c7", "storage_id": "datastore-30", "vm_nic_info": { "nic_infos": [ { "nic_metadata": { "interface_label": "eth0", "interface_index": 0, "interface_type": "MANAGEMENT" }, "ip_pool_id": "a3cf1339-9cf7-4834-88ec-d4ad813bd130", "network_id": "network-28" } ] } }, "service_id": "c729678f-443a-4822-bdd2-aadd7a483e5a", "resource_type": "ServiceDeployment", "id": "e6c2693f-2335-43de-8885-95db0b7c7478", "display_name": "e6c2693f-2335-43de-8885-95db0b7c7478", "_create_user": "admin", "_create_time": 1543950168765, "_last_modified_user": "admin", "_last_modified_time": 1543950168765, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

service_insertion_deployment

Additional Errors: