Step
This endpoint is used to see the output for a job step.
Entity fields:
Path
Type
Description
data.type
string
Should be "step"
data.attributes.output
string
URL with the output for the step
data.attributes.status
string
Step status(pending or completed)
data.attributes.stepNumber
int
A job can have several steps, this field is used to identity the order for the execution
Example:
{
"data": {
"type": "step",
"attributes": {
"output": "URL with the step output",
"stepNumber": "Step Number Order",
"status": "Terraform Provider"
}
}
}Supported Operations
get
Returns an instance of type step
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired
organization Identifier
jobIdstringRequired
job Identifier
stepIdstringRequired
step Identifier
Query parameters
Responses
200
Successful response
application/vnd.api+json
get/organization/{organizationId}/job/{jobId}/step/{stepId}
GET /api/v1/organization/{organizationId}/job/{jobId}/step/{stepId} HTTP/1.1
Host: terrakube-api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Successful response
{
"data": {
"type": "text",
"id": "text",
"attributes": {
"deliveryRevision": null,
"deliveryState": null,
"deliveryTimestamp": null,
"name": null,
"output": null,
"status": null,
"stepNumber": null
},
"relationships": {
"job": {
"data": [
null
]
},
"policyEvaluation": {
"data": [
null
]
}
}
},
"included": [
{
"type": "text",
"id": "text",
"attributes": {},
"relationships": {}
}
]
}Last updated
Was this helpful?