Body
Required
The data you want to use for creating a role.
-
The pending stages
Hide role attributes Show role attributes object
-
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
Represents the association between a Role and a Container Set
Hide containers attributes Show containers attributes object
-
Name of the association
-
The container set name (id)
-
The kind of container set, should be one of 'docker', 'elasticsearch', 'kibana', or 'apm'
-
The container options
Hide options attributes Show options attributes object
-
Whether this allocation is active and should be created.
-
ZooKeeper Auths associated with this allocation
ZooKeeper Authentication information.
-
ZooKeeper ACLs associated with this allocation
ZooKeeper ACL information.
-
Secret shared between the runners that have containers in this container set allocated.
-
Secret shared between the containers that are part of this container set.
-
A named feature flag to check whether this container is enabled or not
-
Allocation-specific overrides for the allocated containers
Hide overrides attribute Show overrides attribute object
-
Overrides for the container allocation.
Hide container_config attributes Show container_config attributes object
-
List of environment variables on the form KEY=value
-
Docker host config
Hide host_config attributes Show host_config attributes object
-
Ports that are exposed by the container.
-
Sets the networking mode for the container.
-
The length of a CPU period in microsecond
-
Docker behavior to apply when a container exits
-
Map of ports that should be exposed on the host.
Hide port_bindings attribute Show port_bindings attribute object
-
Volume bindings for the container.
-
List of environment variables on the form KEY=value
-
-
-
-
-
-
-
The blessings
Hide blessings attribute Show blessings attribute object
-
A mapping of Runner Ids to whether or not they are blessed to run the associated role
-
Responses
-
The role aggregate that was just created.
Hide response attributes Show response attributes object
-
The unique id of this role
-
The role data with metadata
Hide role attributes Show role attributes object
-
The pending stages
Hide value attributes Show value attributes object
-
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
Represents the association between a Role and a Container Set
Hide containers attributes Show containers attributes object
-
Name of the association
-
The container set name (id)
-
The kind of container set, should be one of 'docker', 'elasticsearch', 'kibana', or 'apm'
-
The container options
Hide options attributes Show options attributes object
-
Whether this allocation is active and should be created.
-
ZooKeeper Auths associated with this allocation
ZooKeeper Authentication information.
-
ZooKeeper ACLs associated with this allocation
ZooKeeper ACL information.
-
Secret shared between the runners that have containers in this container set allocated.
-
Secret shared between the containers that are part of this container set.
-
A named feature flag to check whether this container is enabled or not
-
Allocation-specific overrides for the allocated containers
Hide overrides attribute Show overrides attribute object
-
Overrides for the container allocation.
Hide container_config attributes Show container_config attributes object
-
List of environment variables on the form KEY=value
-
Docker host config
Hide host_config attributes Show host_config attributes object
-
Ports that are exposed by the container.
-
Sets the networking mode for the container.
-
The length of a CPU period in microsecond
-
Docker behavior to apply when a container exits
-
Map of ports that should be exposed on the host.
Hide port_bindings attribute Show port_bindings attribute object
-
Volume bindings for the container.
-
List of environment variables on the form KEY=value
-
-
-
-
-
-
-
The metadata
-
-
The blessings data associated with the role
Hide blessings attributes Show blessings attributes object
-
The blessings
Hide value attribute Show value attribute object
-
A mapping of Runner Ids to whether or not they are blessed to run the associated role
-
-
The metadata
-
-
The pending states data associated with the role
Hide pending attributes Show pending attributes object
-
The pending stages
Hide value attribute Show value attribute object
-
A mapping of Runner Ids to whether or not they are waiting to be blessed to run the associated role
-
-
The metadata
-
-
-
The role ID you specified is already in use. (code:
roles.already_exists
)Hide headers attribute Show headers attribute
Hide response attribute Show response attribute object
-
A list of errors that occurred in the failing request
Hide errors attributes Show errors attributes object
-
curl \
--request POST 'https://{{hostname}}/api/v1/platform/infrastructure/blueprinter/roles' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"role":{"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}}}}}]},"blessings":{"runner_ids_to_blessing":{"additionalProperty1":{"value":true},"additionalProperty2":{"value":true}}}}'