Path parameters
-
User-specified Blueprinter role ID.
Query parameters
-
version integer
When specified, checks for conflicts against the version stored in the persistent store (returned in 'x-cloud-resource-version' of the GET request)
Body Required
The role update data.
-
The unique id of this role
-
Whether runners are automatically allowed to be assigned the containers of this role.
-
The containers that are part of this role
PUT
/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}
curl \
-X PUT https://{{hostname}}/api/v1/platform/infrastructure/blueprinter/roles/{blueprinter_role_id} \
-d '{"id":"constructor","auto_blessed":true,"containers":[{"name":"string","container_set_name":"string","kind":"string","options":{"enabled":true,"auths":[{"scheme":"digest","auth":"string"}],"acls":[{"id":"string","perms":42,"scheme":"string"}],"runners_secret":"string","container_set_secret":"string","enabled_by_named_feature_flag":"string","overrides":{"container_config":{"env":["DB=localhost:4567"],"host_config":{"extra_hosts":["string"],"network_mode":"string","cpu_period":42,"restart_policy":{"name":"string","maximum_retry_count":42},"port_bindings":{"additionalProperty1":[{"host_port":"string","host_ip":"0.0.0.0"}],"additionalProperty2":[{"host_port":"string","host_ip":"0.0.0.0"}]},"binds":["string"],"privileged":true}}}}}]}'
Request examples
{
"id": "constructor",
"auto_blessed": true,
"containers": [
{
"name": "string",
"container_set_name": "string",
"kind": "string",
"options": {
"enabled": true,
"auths": [
{
"scheme": "digest",
"auth": "string"
}
],
"acls": [
{
"id": "string",
"perms": 42,
"scheme": "string"
}
],
"runners_secret": "string",
"container_set_secret": "string",
"enabled_by_named_feature_flag": "string",
"overrides": {
"container_config": {
"env": [
"DB=localhost:4567"
],
"host_config": {
"extra_hosts": [
"string"
],
"network_mode": "string",
"cpu_period": 42,
"restart_policy": {
"name": "string",
"maximum_retry_count": 42
},
"port_bindings": {
"additionalProperty1": [
{
"host_port": "string",
"host_ip": "0.0.0.0"
}
],
"additionalProperty2": [
{
"host_port": "string",
"host_ip": "0.0.0.0"
}
]
},
"binds": [
"string"
],
"privileged": true
}
}
}
}
}
]
}
Response examples (200)
{
"id": "constructor",
"role": {
"value": {
"id": "constructor",
"auto_blessed": true,
"containers": [
{
"name": "string",
"container_set_name": "string",
"kind": "string",
"options": {
"enabled": true,
"auths": [
{
"scheme": "digest",
"auth": "string"
}
],
"acls": [
{
"id": "string",
"perms": 42,
"scheme": "string"
}
],
"runners_secret": "string",
"container_set_secret": "string",
"enabled_by_named_feature_flag": "string",
"overrides": {
"container_config": {
"env": [
"DB=localhost:4567"
],
"host_config": {
"extra_hosts": [
"string"
],
"network_mode": "string",
"cpu_period": 42,
"restart_policy": {
"name": "string",
"maximum_retry_count": 42
},
"port_bindings": {
"additionalProperty1": [
{
"host_port": "string",
"host_ip": "0.0.0.0"
}
],
"additionalProperty2": [
{
"host_port": "string",
"host_ip": "0.0.0.0"
}
]
},
"binds": [
"string"
],
"privileged": true
}
}
}
}
}
]
},
"meta": {
"created_time": "2024-05-04T09:42:00+00:00",
"modified_time": "2024-05-04T09:42:00+00:00",
"version": "string"
}
},
"blessings": {
"value": {
"runner_ids_to_blessing": {
"additionalProperty1": {
"value": true
},
"additionalProperty2": {
"value": true
}
}
},
"meta": {
"created_time": "2024-05-04T09:42:00+00:00",
"modified_time": "2024-05-04T09:42:00+00:00",
"version": "string"
}
},
"pending": {
"value": {
"runner_ids_to_pending_state": {
"additionalProperty1": {
"value": true
},
"additionalProperty2": {
"value": true
}
}
},
"meta": {
"created_time": "2024-05-04T09:42:00+00:00",
"modified_time": "2024-05-04T09:42:00+00:00",
"version": "string"
}
}
}
Response examples (400)
# Headers
x-cloud-error-codes: roles.in_use
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: roles.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (409)
# Headers
x-cloud-error-codes: roles.version_conflict
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}