Create Action Version Using POST

Create Action Version Using POST

Creates a new version for the specified action

Request
URI
POST
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/abx/api/resources/actions/{id}/versions
COPY
Path Parameters
string
id
Required

ID of the action

Query Parameters
string
projectId
Optional

Project ID of action (required for non-system actions)


Request Body

Details of the action version

ActionVersion of type(s) application/json
Required
{
    "action": {
        "actionType": "string",
        "compressedContent": "string",
        "contentId": "string",
        "dependencies": "string",
        "description": "string",
        "entrypoint": "string",
        "id": "string",
        "memoryInMB": 0,
        "name": "string",
        "orgId": "string",
        "projectId": "string",
        "provider": "string",
        "runtime": "string",
        "source": "string",
        "system": false,
        "timeoutSeconds": 0
    },
    "actionId": "string",
    "createdBy": "string",
    "createdMillis": 0,
    "description": "string",
    "gitCommitId": "string",
    "id": "string",
    "name": "string",
    "orgId": "string",
    "projectId": "string",
    "released": false
}
action
Optional

action

string
actionId
Optional

ID of the action

string
createdBy
Optional

Name of the version creator

integer As int64 As int64
createdMillis
Optional

Creation time in millis

string
description
Optional

Description of the version

string
gitCommitId
Optional

Commit ID of the version if pushed to git

string
id
Optional

ID of the resource

string
name
Optional

Name of the resource

string
orgId
Optional

Org ID of the resource

string
projectId
Optional

Project Id of the action (required for non-system actions)

boolean
released
Optional

Flag indicating if the version is released (only 1 released version allowed per action)

Responses
200

OK

Returns ActionVersion of type(s) application/json
{
    "action": {
        "actionType": "string",
        "compressedContent": "string",
        "contentId": "string",
        "dependencies": "string",
        "description": "string",
        "entrypoint": "string",
        "id": "string",
        "memoryInMB": 0,
        "name": "string",
        "orgId": "string",
        "projectId": "string",
        "provider": "string",
        "runtime": "string",
        "source": "string",
        "system": false,
        "timeoutSeconds": 0
    },
    "actionId": "string",
    "createdBy": "string",
    "createdMillis": 0,
    "description": "string",
    "gitCommitId": "string",
    "id": "string",
    "name": "string",
    "orgId": "string",
    "projectId": "string",
    "released": false
}
action
Optional

action

string
actionId
Optional

ID of the action

string
createdBy
Optional

Name of the version creator

integer As int64 As int64
createdMillis
Optional

Creation time in millis

string
description
Optional

Description of the version

string
gitCommitId
Optional

Commit ID of the version if pushed to git

string
id
Optional

ID of the resource

string
name
Optional

Name of the resource

string
orgId
Optional

Org ID of the resource

string
projectId
Optional

Project Id of the action (required for non-system actions)

boolean
released
Optional

Flag indicating if the version is released (only 1 released version allowed per action)