Update a role.
Query parameters
-
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}
curl \
--request PUT 'https://{{hostname}}/api/v1/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{
"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
}
}
}
}
}
]
}'