List Drafts
GET/configuration-hub/drafts
This API gets a list of existing drafts for the current tenant.
Request
Query Parameters
Filter results using the standard syntax described in V3 API Standard Collection Parameters
Filtering is supported for the following fields and operators:
status: eq
approvalStatus: eq
Responses
- 200
- 400
- 401
- 403
- 429
- 500
List of existing drafts.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
- RESTORE - Same tenant.
- PROMOTE - Different tenant.
- UPLOAD - Uploaded configuration.
Array [
]
]
Unique id assigned to this job.
Possible values: [NOT_STARTED
, IN_PROGRESS
, COMPLETE
, CANCELLED
, FAILED
]
Status of the job.
Possible values: [CREATE_DRAFT
]
Type of the job, will always be CREATE_DRAFT for this type of job.
Message providing information about the outcome of the draft process.
The name of user that that initiated the draft process.
Default value: true
Whether or not a file was generated for this draft.
The time the job was started.
The time of the last update to the job.
The time the job was completed.
Name of the draft.
Tenant owner of the backup from which the draft was generated.
Id of the backup from which the draft was generated.
Name of the backup from which the draft was generated.
Possible values: [RESTORE
, PROMOTE
, UPLOAD
]
Denotes the origin of the source backup from which the draft was generated.
Possible values: [DEFAULT
, PENDING_APPROVAL
, APPROVED
, DENIED
]
Approval status of the draft used to determine whether or not the draft can be deployed.
approvalComment
object[]
List of comments that have been exchanged between an approval requester and an approver.
Comment provided either by the approval requester or the approver.
The time when this comment was provided.
Name of the user that provided this comment.
Id of the user that provided this comment.
Possible values: [PENDING_APPROVAL
, APPROVED
, REJECTED
]
Status transition of the draft.
[
{
"jobId": "07659d7d-2cce-47c0-9e49-185787ee565a",
"status": "COMPLETE",
"type": "CREATE_DRAFT",
"message": "Draft creation message",
"requesterName": "requester.name",
"fileExists": true,
"created": "2021-05-11T22:23:16Z",
"modified": "2021-05-11T22:23:16Z",
"completed": "2021-05-11T22:23:16Z",
"name": "Draft name",
"sourceTenant": "source-tenant",
"sourceBackupId": "549bf881-1ac4-4a64-9acf-6014e8a3a887",
"sourceBackupName": "Source backup name",
"mode": "RESTORE",
"approvalStatus": "APPROVED",
"approvalComment": [
{
"comment": "Approval comment",
"timestamp": "2021-05-11T22:23:16Z",
"user": "user.name",
"id": "549bf881-1ac4-4a64-9acf-6014e8a3a887",
"changedToStatus": "PENDING_APPROVAL"
}
]
}
]
[
{
"jobId": "07659d7d-2cce-47c0-9e49-185787ee565a",
"status": "COMPLETE",
"type": "CREATE_DRAFT",
"message": "Draft creation message",
"requesterName": "Requester Name",
"fileExists": true,
"created": "2024-08-16T14:16:58.389Z",
"completed": "2024-08-16T14:17:12.355Z",
"name": "Draft Name",
"sourceTenant": "source-tenant",
"sourceBackupId": "9393e1f5-bed6-4fa8-80fb-6f86b19bd3d6",
"sourceBackupName": "Source Backup Name",
"mode": "RESTORE",
"approvalStatus": "DEFAULT",
"approvalComment": [
{
"comment": "Approval comment",
"timestamp": "2024-08-26T19:32:46.384137Z",
"user": "User name",
"id": "User id",
"changedToStatus": "PENDING_FOR_APPROVAL"
}
]
}
]
Client Error - Returned if the request body is invalid.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
causes
object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the error
{
"error": "JWT validation failed: JWT is expired"
}
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
- application/json
- Schema
- Example (from schema)
- 403
Schema
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
causes
object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
An example of a 403 response object
{
"detailCode": "403 Forbidden",
"trackingId": "b21b1f7ce4da4d639f2c62a57171b427",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The server understood the request but refuses to authorize it."
}
]
}
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the error
{
"message": " Rate Limit Exceeded "
}
Internal Server Error - Returned if there is an unexpected error.
- application/json
- Schema
- Example (from schema)
- 500
Schema
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
causes
object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
An example of a 500 response object
{
"detailCode": "500.0 Internal Fault",
"trackingId": "b21b1f7ce4da4d639f2c62a57171b427",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "An internal fault occurred."
}
]
}