Skip to content

Returns execution and interruption policies for one Task Definition.

GET
/api/workspace/tasks/configuration/task-definitions/{taskDefinitionId}/execution-policy
curl --request GET \
--url https://example.com/api/workspace/tasks/configuration/task-definitions/example/execution-policy \
--header 'Authorization: Bearer <token>'
taskDefinitionId
required
string
access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

OK

Media typeapplication/json
object
Data
object
ExecutionMode
integer format: int32
Allowed values: 0 1
QueueResponsibleRequired
boolean
PostponementEnabled
boolean
FixedPostponementDelayMinutes
integer format: int32
nullable
MaximumPostponementsPerTask
integer format: int32
nullable
PauseWarningAfterMinutes
integer format: int32
nullable
BlockedWarningAfterMinutes
integer format: int32
nullable
AvailableActors
Array<integer>
nullable
Allowed values: 0 1 2 3 4
OutcomeActorGrantDefaults
Array<object>
nullable
object
MetaType
integer format: int32
Allowed values: 0 1 2
ActorGrants
Array<integer>
nullable
Allowed values: 0 1 2 3 4
Diagnostics
Array<object>
nullable
object
Code
string
nullable
Message
string
nullable
Severity
string
nullable
Field
string
nullable
ResponsibleRequiredOnCreate
boolean
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"ExecutionMode": 0,
"AvailableActors": [
0
],
"OutcomeActorGrantDefaults": [
{
"MetaType": 0,
"ActorGrants": [
0
]
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}