GetRunnerConfigurationSchema
POST/gitpod.v1.RunnerConfigurationService/GetRunnerConfigurationSchema
Gets the latest runner configuration schema.
Use this method to:
- View available settings
- Check configuration options
- Validate configurations
Examples
-
Get schema:
Retrieves configuration schema for a runner.
runnerId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
GetRunnerConfigurationSchema
curl https://app.gitpod.io/api/gitpod.v1.RunnerConfigurationService/GetRunnerConfigurationSchema \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $GITPOD_API_KEY" \
-d '{}'{
"schema": {
"environmentClasses": [
{
"id": "id",
"bool": {
"default": true
},
"description": "description",
"display": {
"default": "default"
},
"enum": {
"default": "default",
"defaultValue": {
"detail": "detail",
"subtitle": "subtitle",
"title": "title"
},
"possibleValues": [
{
"detail": "detail",
"subtitle": "subtitle",
"title": "title"
}
],
"values": [
"string"
]
},
"int": {
"default": 0,
"max": 0,
"min": 0
},
"name": "name",
"required": true,
"secret": true,
"string": {
"default": "default",
"pattern": "pattern"
}
}
],
"runnerConfig": [
{
"id": "id",
"bool": {
"default": true
},
"description": "description",
"display": {
"default": "default"
},
"enum": {
"default": "default",
"defaultValue": {
"detail": "detail",
"subtitle": "subtitle",
"title": "title"
},
"possibleValues": [
{
"detail": "detail",
"subtitle": "subtitle",
"title": "title"
}
],
"values": [
"string"
]
},
"int": {
"default": 0,
"max": 0,
"min": 0
},
"name": "name",
"required": true,
"secret": true,
"string": {
"default": "default",
"pattern": "pattern"
}
}
],
"scm": [
{
"defaultHosts": [
"string"
],
"name": "name",
"oauth": {
"callbackUrl": "callbackUrl"
},
"pat": {
"description": "description",
"docsLink": "docsLink"
},
"scmId": "scmId"
}
],
"version": "version"
}
}Returns Examples
{
"schema": {
"environmentClasses": [
{
"id": "id",
"bool": {
"default": true
},
"description": "description",
"display": {
"default": "default"
},
"enum": {
"default": "default",
"defaultValue": {
"detail": "detail",
"subtitle": "subtitle",
"title": "title"
},
"possibleValues": [
{
"detail": "detail",
"subtitle": "subtitle",
"title": "title"
}
],
"values": [
"string"
]
},
"int": {
"default": 0,
"max": 0,
"min": 0
},
"name": "name",
"required": true,
"secret": true,
"string": {
"default": "default",
"pattern": "pattern"
}
}
],
"runnerConfig": [
{
"id": "id",
"bool": {
"default": true
},
"description": "description",
"display": {
"default": "default"
},
"enum": {
"default": "default",
"defaultValue": {
"detail": "detail",
"subtitle": "subtitle",
"title": "title"
},
"possibleValues": [
{
"detail": "detail",
"subtitle": "subtitle",
"title": "title"
}
],
"values": [
"string"
]
},
"int": {
"default": 0,
"max": 0,
"min": 0
},
"name": "name",
"required": true,
"secret": true,
"string": {
"default": "default",
"pattern": "pattern"
}
}
],
"scm": [
{
"defaultHosts": [
"string"
],
"name": "name",
"oauth": {
"callbackUrl": "callbackUrl"
},
"pat": {
"description": "description",
"docsLink": "docsLink"
},
"scmId": "scmId"
}
],
"version": "version"
}
}