Add Blessing
Add a Blessing for a runner to a role.
Path parameters
-
User-specified Blueprinter role ID.
-
Runner ID for a blessing associated with a role.
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)
PUT
/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}
curl \
-X PUT https://{{hostname}}/api/v1/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id} \
-d '{"value":true}'
Request examples
{
"value": 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 (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"
]
}
]
}