Return All Organizations
/api/atlas/v2/orgs Returns all organizations to which the requesting Service Account or API Key has access. To use this resource, the requesting Service Account or API Key must have the Organization Member role.
Parameters
query Query Parameters
| Name | Type |
|---|---|
envelope Flag that indicates whether Application wraps the response in an | boolean |
includeCount Flag that indicates whether the response returns the total number of items (totalCount) in the response. | boolean |
itemsPerPage Number of items that the response returns per page. | number |
pageNum Number of the page that displays the current set of the total objects that the response returns. | number |
pretty Flag that indicates whether the response body should be in the prettyprint format. | boolean |
name Human-readable label of the organization to use to filter the returned list. Performs a case-insensitive search for an organization that starts with the specified name. | string |
Responses
OK
links?: readonly
results?: readonly
totalCount?: number;
}
Client Errors
Bad Request.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Unauthorized.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Forbidden.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Not Found.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Conflict.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Server Errors
Internal Server Error.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}