System Administration >
Configuration
>
Fabric
>
Associations
Add scope associations for discovered resources
Add scope associations for discovered resources
Request:
Method:
POST
URI Path(s):
/api/v1/fabric/scope-associations?action=add
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ScopeAssociationList
+
ScopeAssociationList
(
schema
)
Name
Description
Type
Notes
associations
List of scope associations for discovered resources
array of
ScopeAssociation
Required
Example Request:
POST https://<nsx-mgr>/api/v1/fabric/scope-associations?action=add { "associations": [ { "external_id": "502edb00-ccd9-0cbb-b70c-cd78f1ce537f", "discovered_resource_type": "VirtualMachine", "scope_id": "/tenant-root/tenants/t-1/accounts/a-1/vhcs/vhc-1", "scope_type": "VPC" } ] }
Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a
Required Permissions:
crud
Feature:
vm_vm_info
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable