Submit Resource Action Request Using POST 1

Submit Resource Action Request Using POST 1

Submit a resource action request.

Request
URI
POST
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/deployment/api/deployments/{depId}/resources/{resourceId}/requests
COPY
Path Parameters
string
depId
Required

Deployment ID

string
resourceId
Required

Resource ID


Request Body
ResourceActionRequest of type(s) application/json
Optional
{
    "actionId": "string",
    "reason": "string"
}
string
actionId
Optional

The id of the action to perform.

object
inputs
Optional

Resource action request inputs

string
reason
Optional

Reason for requesting a day2 operation

Responses
200

OK

Returns DeploymentRequest of type(s) application/json
{
    "actionId": "string",
    "approvedAt": "string",
    "blueprintId": "string",
    "cancelable": false,
    "catalogItemId": "string",
    "completedAt": "string",
    "completedTasks": 0,
    "createdAt": "string",
    "deploymentId": "string",
    "details": "string",
    "dismissed": false,
    "id": "string",
    "initializedAt": "string",
    "name": "string",
    "parentId": "string",
    "requestedBy": "string",
    "resourceName": "string",
    "resourceType": "string",
    "status": "string",
    "totalTasks": 0,
    "updatedAt": "string"
}
string
actionId
Optional

Identifier of the requested action

string As date-time As date-time
approvedAt
Optional

Time at which the request was approved.

string
blueprintId
Optional

Identifier of the requested blueprint in the form 'UUID:version'

boolean
cancelable
Optional

Indicates whether request can be canceled or not.

string
catalogItemId
Optional

Identifier of the requested catalog item in the form 'UUID:version'

string As date-time As date-time
completedAt
Optional

Time at which the request completed.

integer As int32 As int32
completedTasks
Optional

The number of tasks completed while fulfilling this request.

string As date-time As date-time
createdAt
Optional

Creation time (e.g. date format '2019-07-13T23:16:49.310Z').

string As uuid As uuid
deploymentId
Optional

Deployment id to which the event applies to

string
details
Optional

Longer user-friendly details of the event.

boolean
dismissed
Optional

Indicates whether request is in dismissed state.

string As uuid As uuid
id
Optional

Event identifier

string As date-time As date-time
initializedAt
Optional

Time at which the request was initialized.

object
inputs
Optional

Request inputs

string
name
Optional

Short user-friendly label of the event (e.g. 'shuting down myVM')

string As uuid As uuid
parentId
Optional

Parent event/request identifier

string
requestedBy
Optional

User that initiated the request

string
resourceName
Optional

Optional resource name to which the event applies to

string
resourceType
Optional

Optional resource type to which the event applies to

string
status
Optional

Request overall execution status.

Possible values are : CREATED, PENDING, INITIALIZATION, APPROVAL_PENDING, INPROGRESS, COMPLETION, APPROVAL_REJECTED, ABORTED, SUCCESSFUL, FAILED,
integer As int32 As int32
totalTasks
Optional

The total number of tasks need to be completed to fulfil this request.

string As date-time As date-time
updatedAt
Optional

Last update time (e.g. date format '2019-07-13T23:16:49.310Z').


401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure