System Administration > Configuration > Fabric > Containers > Container Projects

Return the list of container projects

Returns information about all container projects

Request:

Method:
GET
URI Path(s):
/api/v1/fabric/container-projects
Request Headers:
n/a
Query Parameters:
ContainerClusterFilterParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/fabric/container-projects

Successful Response:

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

Example Response:

{ "results": [ { "external_id": "a1ba2e72-6026-11e9-980c-dca9048e157d", "tags": [ { "scope": "dis:k8s:key1", "tag": "val1" } ], "origin_properties": [ { "key": "prop0", "value": "val0" } ], "container_cluster_id": "a19ad270-6026-11e9-980c-dca9048e157d", "resource_type": "ContainerProject", "display_name": "project-1", "_last_sync_time": 1555405468523 }, { "external_id": "a1ba31a6-6026-11e9-980c-dca9048e157d", "tags": [ { "scope": "dis:k8s:key2", "tag": "val2" } ], "origin_properties": [ { "key": "prop0", "value": "val0" } ], "container_cluster_id": "a19ad270-6026-11e9-980c-dca9048e157d", "resource_type": "ContainerProject", "display_name": "project-2", "_last_sync_time": 1555405468524 } ], "result_count": 2, "sort_by": "displayName", "sort_ascending": true }

Required Permissions:

read

Feature:

containers_inventory

Additional Errors: