Example Request:
POST https://<nsx-mgr>/api/v1/serviceinsertion/services/65a60890-6f48-418d-a7d5-5aaf65fc4e5b/service-instances
{
"resource_type": "ServiceInstance",
"description": "This Service Instance is deployed at T0 router",
"display_name": "NS Service_Instance_for_ABC",
"attachment_point": "TIER0_LR",
"deployed_to": [{
"is_valid": true,
"target_display_name": "Active-LR",
"target_id": "ea9ae885-d3ec-4acc-8194-d5d96dc569cd",
"target_type": "LogicalRouter"
}],
"deployment_mode": "STAND_ALONE",
"deployment_spec_name": "NS_DepSpec",
"display_name": "NS Service_Instance_for_ABC",
"implementation_type": "NORTH_SOUTH",
"instance_deployment_config": {
"compute_id": "domain-c8",
"context_id": "44a18335-e72d-4c77-a0b1-7a922c5e086c", ——————> is this the vcenter id?
"storage_id": "datastore-12",
I am trying to use the api and would like to confirm if context_id is the vcenter id
How can I verify the vcenter id through mob?
If I could use the compute node id, how can I find it through mob?
Also is there any difference in nsx3.0 with this api
Thanks,
Jaya
Login to vCenter MOB page using the credentials
https://<VC FQDN or IP>/mob >> content >> About (to get the details of VC)
or
Direct URL:
https://<VC FQDN or IP>/mob/?moid=ServiceInstance&doPath=content.about
Now you can validate the vCenter ID here
Also, to check on the API difference, you need to look into the API reference guides/ release notes (like Known Issues, Resolved Issues) or you can open up an SR with API/SDK support team to get more details.
Hope this helps you.
Thanks for the response,I was able to find the vcenter id.
I will see if I can check if I can open an SR with the API team to see what is expected for the context_id.