GetOrganization
client.organizations.retrieve(OrganizationRetrieveParams { organizationId } body, RequestOptionsoptions?): OrganizationRetrieveResponse { organization }
POST/gitpod.v1.OrganizationService/GetOrganization
Gets details about a specific organization.
Use this method to:
- Retrieve organization settings and configuration
- Check organization membership status
- View domain verification settings
Examples
-
Get organization details:
Retrieves information about a specific organization.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
GetOrganization
import Gitpod from '@gitpod/sdk';
const client = new Gitpod({
bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});
const organization = await client.organizations.retrieve({
organizationId: 'b0e12f6c-4c67-429d-a4a6-d9838b5da047',
});
console.log(organization.organization);{
"organization": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"tier": "ORGANIZATION_TIER_UNSPECIFIED",
"updatedAt": "2019-12-27T18:11:19.117Z",
"inviteDomains": {
"domains": [
"sfN2.l.iJR-BU.u9JV9.a.m.o2D-4b-Jd.0Z-kX.L.n.S.f.UKbxB"
]
}
}
}Returns Examples
{
"organization": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"tier": "ORGANIZATION_TIER_UNSPECIFIED",
"updatedAt": "2019-12-27T18:11:19.117Z",
"inviteDomains": {
"domains": [
"sfN2.l.iJR-BU.u9JV9.a.m.o2D-4b-Jd.0Z-kX.L.n.S.f.UKbxB"
]
}
}
}