GetOrganizationPolicies
POST/gitpod.v1.OrganizationService/GetOrganizationPolicies
Gets organization policy settings by organization ID.
Use this method to:
- Retrieve current policy settings for an organization
- View resource limits and restrictions
- Check allowed editors and other configurations
Examples
-
Get organization policies:
Retrieves policy settings for a specific organization.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
GetOrganizationPolicies
curl https://app.gitpod.io/api/gitpod.v1.OrganizationService/GetOrganizationPolicies \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $GITPOD_API_KEY" \
-d '{
"organizationId": "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
}'{
"policies": {
"agentPolicy": {
"commandDenyList": [
"string"
],
"mcpDisabled": true,
"scmToolsDisabled": true,
"conversationSharingPolicy": "CONVERSATION_SHARING_POLICY_UNSPECIFIED",
"maxSubagentsPerEnvironment": 10,
"scmToolsAllowedGroupId": "scmToolsAllowedGroupId"
},
"allowedEditorIds": [
"string"
],
"allowLocalRunners": true,
"defaultEditorId": "defaultEditorId",
"defaultEnvironmentImage": "defaultEnvironmentImage",
"maximumEnvironmentsPerUser": "maximumEnvironmentsPerUser",
"maximumRunningEnvironmentsPerUser": "maximumRunningEnvironmentsPerUser",
"membersCreateProjects": true,
"membersRequireProjects": true,
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"portSharingDisabled": true,
"requireCustomDomainAccess": true,
"restrictAccountCreationToScim": true,
"deleteArchivedEnvironmentsAfter": "+9125115.360s",
"editorVersionRestrictions": {
"foo": {
"allowedVersions": [
"string"
]
}
},
"maximumEnvironmentLifetime": "+9125115.360s",
"maximumEnvironmentLifetimeStrict": true,
"maximumEnvironmentTimeout": "+9125115.360s",
"securityAgentPolicy": {
"crowdstrike": {
"additionalOptions": {
"foo": "string"
},
"cidSecretId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"enabled": true,
"image": "image",
"tags": "tags"
},
"customAgents": [
{
"id": "id",
"description": "description",
"enabled": true,
"envMappings": [
{
"name": "name",
"secretName": "secretName"
}
],
"name": "name",
"startCommand": "startCommand"
}
]
},
"vetoExecPolicy": {
"action": "KERNEL_CONTROLS_ACTION_UNSPECIFIED",
"enabled": true,
"executables": [
"string"
],
"safelist": [
"string"
]
}
}
}Returns Examples
{
"policies": {
"agentPolicy": {
"commandDenyList": [
"string"
],
"mcpDisabled": true,
"scmToolsDisabled": true,
"conversationSharingPolicy": "CONVERSATION_SHARING_POLICY_UNSPECIFIED",
"maxSubagentsPerEnvironment": 10,
"scmToolsAllowedGroupId": "scmToolsAllowedGroupId"
},
"allowedEditorIds": [
"string"
],
"allowLocalRunners": true,
"defaultEditorId": "defaultEditorId",
"defaultEnvironmentImage": "defaultEnvironmentImage",
"maximumEnvironmentsPerUser": "maximumEnvironmentsPerUser",
"maximumRunningEnvironmentsPerUser": "maximumRunningEnvironmentsPerUser",
"membersCreateProjects": true,
"membersRequireProjects": true,
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"portSharingDisabled": true,
"requireCustomDomainAccess": true,
"restrictAccountCreationToScim": true,
"deleteArchivedEnvironmentsAfter": "+9125115.360s",
"editorVersionRestrictions": {
"foo": {
"allowedVersions": [
"string"
]
}
},
"maximumEnvironmentLifetime": "+9125115.360s",
"maximumEnvironmentLifetimeStrict": true,
"maximumEnvironmentTimeout": "+9125115.360s",
"securityAgentPolicy": {
"crowdstrike": {
"additionalOptions": {
"foo": "string"
},
"cidSecretId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"enabled": true,
"image": "image",
"tags": "tags"
},
"customAgents": [
{
"id": "id",
"description": "description",
"enabled": true,
"envMappings": [
{
"name": "name",
"secretName": "secretName"
}
],
"name": "name",
"startCommand": "startCommand"
}
]
},
"vetoExecPolicy": {
"action": "KERNEL_CONTROLS_ACTION_UNSPECIFIED",
"enabled": true,
"executables": [
"string"
],
"safelist": [
"string"
]
}
}
}