Get Projects In Organization Using GET
List projects in org
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
Project Admin | ✔️ | ✔️ |
Parent organization ID for the project
Name of the project
Type of the project
If specified, the response will contain only projects that are direct subprojects of the project with the specified project id
If specified, the response will contain only projects enabled for this service
If specified, the response will contain only projects allowed for this service
pagination start, default 1
pagination limit, default 200, max 1000
Order by creation date, default false
If specified, the response will contain project subResourceServiceScopes and enabledServices, default false
If specified, the response will be filtered by vrn
OK
{
"nextLink": "/csp/serviceName/ResourceName?pageStart=60&pageLimit=15",
"prevLink": "/csp/serviceName/ResourceName?pageStart=30&pageLimit=15",
"results": [
{
"createdBy": "string",
"creationDate": "string",
"depth": 0,
"description": "string",
"displayName": "string",
"enabledServices": [
"string"
],
"id": "string",
"lastModifiedBy": "string",
"lastModifiedDate": "string",
"leaf": false,
"parentPath": "string",
"parentProjectId": "string",
"projectMetadata": {
"metadataContents": {
"metadataContents": "string"
},
"metadataType": "string"
},
"subResourceServiceScopes": [
"string"
],
"type": "string",
"vrn": "string"
}
],
"totalResults": 2000
}
Relative path to next page if exists. Not returned for POST requests.
Relative path to previous page if exists. Not returned for POST requests.
Partial list of returned results.
Total number of results if available.
Unauthorized
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user is forbidden to use the API
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
Not Found
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
Internal Server Error
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
curl -H 'Authorization: <value>' https://{api_host}/csp/gateway/resource/api/v1/orgs/{orgId}/projects