Skip to main content

DraftResponse

Properties

NameTypeDescriptionNotes
job_idstrUnique id assigned to this job.[optional]
statusEnum [ 'NOT_STARTED', 'IN_PROGRESS', 'COMPLETE', 'CANCELLED', 'FAILED' ]Status of the job.[optional]
typeEnum [ 'CREATE_DRAFT' ]Type of the job, will always be CREATE_DRAFT for this type of job.[optional]
messagestrMessage providing information about the outcome of the draft process.[optional]
requester_namestrThe name of user that that initiated the draft process.[optional]
file_existsboolWhether or not a file was generated for this draft.[optional] [default to True]
createddatetimeThe time the job was started.[optional]
modifieddatetimeThe time of the last update to the job.[optional]
completeddatetimeThe time the job was completed.[optional]
namestrName of the draft.[optional]
source_tenantstrTenant owner of the backup from which the draft was generated.[optional]
source_backup_idstrId of the backup from which the draft was generated.[optional]
source_backup_namestrName of the backup from which the draft was generated.[optional]
modeEnum [ 'RESTORE', 'PROMOTE', 'UPLOAD' ]Denotes the origin of the source backup from which the draft was generated. - RESTORE - Same tenant. - PROMOTE - Different tenant. - UPLOAD - Uploaded configuration.[optional]
approval_statusEnum [ 'DEFAULT', 'PENDING_APPROVAL', 'APPROVED', 'DENIED' ]Approval status of the draft used to determine whether or not the draft can be deployed.[optional]
approval_comment[]ApprovalCommentList of comments that have been exchanged between an approval requester and an approver.[optional]
}

Example

from sailpoint.v2024.models.draft_response import DraftResponse

draft_response = DraftResponse(
job_id='07659d7d-2cce-47c0-9e49-185787ee565a',
status='COMPLETE',
type='CREATE_DRAFT',
message='Draft creation message',
requester_name='requester.name',
file_exists=True,
created='2021-05-11T22:23:16Z',
modified='2021-05-11T22:23:16Z',
completed='2021-05-11T22:23:16Z',
name='Draft name',
source_tenant='source-tenant',
source_backup_id='549bf881-1ac4-4a64-9acf-6014e8a3a887',
source_backup_name='Source backup name',
mode='RESTORE',
approval_status='APPROVED',
approval_comment=[
sailpoint.v2024.models.approval_comment.Approval Comment(
comment = 'Approval comment',
timestamp = '2021-05-11T22:23:16Z',
user = 'user.name',
id = '549bf881-1ac4-4a64-9acf-6014e8a3a887',
changed_to_status = 'PENDING_APPROVAL', )
]
)

[Back to top]