Restore Action Version

Restore Action Version

Change the current action state to the state specified in the version

Request
URI
PUT
https://vra-interop-222-139.lvn.broadcom.net/abx/api/resources/actions/{id}/versions/{versionId}/restore
COPY
Path Parameters
string
id
Required

ID of the action

string
versionId
Required

ID of the action version

Query Parameters
string
projectId
Required

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


Authentication
This operation uses the following authentication methods.
Responses
200

Action version restored

Returns Action of type(s) */*
{
    "name": "string",
    "metadata": {
        "metadata": {}
    },
    "runtime": "string",
    "source": "string",
    "entrypoint": "string",
    "description": "string",
    "inputs": {
        "inputs": {}
    },
    "memoryInMB": 0,
    "prePolyglotMemoryLimitInMB": 0,
    "showMemoryAlert": false,
    "timeoutSeconds": 0,
    "dependencies": "string",
    "compressedContent": "string",
    "actionType": "string",
    "provider": "string",
    "contentId": "string",
    "configuration": {
        "configuration": {}
    },
    "system": false,
    "shared": false,
    "scalable": false,
    "asyncDeployed": false,
    "runtimeVersion": "string",
    "id": "string",
    "orgId": "string",
    "projectId": "string",
    "selfLink": "string"
}
string As ^\S$|^\S(.){0,253}\S$
name
Required

name

object
metadata
Optional

metadata

string
runtime
Required

runtime

string
source
Optional
Constraints: minLength: 0 maxLength: 128000

source

string
entrypoint
Required
Constraints: minLength: 0 maxLength: 255

entrypoint

string
description
Optional
Constraints: minLength: 0 maxLength: 2000

description

object
inputs
Optional

inputs

integer As int32 As int32
memoryInMB
Optional

memoryInMB

integer As int32 As int32
prePolyglotMemoryLimitInMB
Optional

prePolyglotMemoryLimitInMB

boolean
showMemoryAlert
Optional

showMemoryAlert

integer As int32 As int32
timeoutSeconds
Optional

timeoutSeconds

string
dependencies
Optional
Constraints: minLength: 0 maxLength: 10000

dependencies

string As byte As byte
compressedContent
Optional

compressedContent

string
actionType
Required

actionType

Possible values are : SCRIPT, REST_CALL, REST_POLL, FLOW, VAULT, CYBERARK,
string
provider
Optional

provider

string
contentId
Optional

contentId

object
configuration
Optional

configuration

boolean
system
Optional

system

boolean
shared
Optional

shared

boolean
scalable
Optional

scalable

boolean
asyncDeployed
Optional

asyncDeployed

string
runtimeVersion
Optional

runtimeVersion

string
id
Optional

id

string
orgId
Required

orgId

string
projectId
Optional

projectId

string
selfLink
Optional

selfLink


401

Unauthorized to make the request

Returns Action of type(s) */*
"Action Object"
string As ^\S$|^\S(.){0,253}\S$
name
Required

name

object
metadata
Optional

metadata

string
runtime
Required

runtime

string
source
Optional
Constraints: minLength: 0 maxLength: 128000

source

string
entrypoint
Required
Constraints: minLength: 0 maxLength: 255

entrypoint

string
description
Optional
Constraints: minLength: 0 maxLength: 2000

description

object
inputs
Optional

inputs

integer As int32 As int32
memoryInMB
Optional

memoryInMB

integer As int32 As int32
prePolyglotMemoryLimitInMB
Optional

prePolyglotMemoryLimitInMB

boolean
showMemoryAlert
Optional

showMemoryAlert

integer As int32 As int32
timeoutSeconds
Optional

timeoutSeconds

string
dependencies
Optional
Constraints: minLength: 0 maxLength: 10000

dependencies

string As byte As byte
compressedContent
Optional

compressedContent

string
actionType
Required

actionType

Possible values are : SCRIPT, REST_CALL, REST_POLL, FLOW, VAULT, CYBERARK,
string
provider
Optional

provider

string
contentId
Optional

contentId

object
configuration
Optional

configuration

boolean
system
Optional

system

boolean
shared
Optional

shared

boolean
scalable
Optional

scalable

boolean
asyncDeployed
Optional

asyncDeployed

string
runtimeVersion
Optional

runtimeVersion

string
id
Optional

id

string
orgId
Required

orgId

string
projectId
Optional

projectId

string
selfLink
Optional

selfLink


403

Forbidden

Returns Action of type(s) */*
"Action Object"
string As ^\S$|^\S(.){0,253}\S$
name
Required

name

object
metadata
Optional

metadata

string
runtime
Required

runtime

string
source
Optional
Constraints: minLength: 0 maxLength: 128000

source

string
entrypoint
Required
Constraints: minLength: 0 maxLength: 255

entrypoint

string
description
Optional
Constraints: minLength: 0 maxLength: 2000

description

object
inputs
Optional

inputs

integer As int32 As int32
memoryInMB
Optional

memoryInMB

integer As int32 As int32
prePolyglotMemoryLimitInMB
Optional

prePolyglotMemoryLimitInMB

boolean
showMemoryAlert
Optional

showMemoryAlert

integer As int32 As int32
timeoutSeconds
Optional

timeoutSeconds

string
dependencies
Optional
Constraints: minLength: 0 maxLength: 10000

dependencies

string As byte As byte
compressedContent
Optional

compressedContent

string
actionType
Required

actionType

Possible values are : SCRIPT, REST_CALL, REST_POLL, FLOW, VAULT, CYBERARK,
string
provider
Optional

provider

string
contentId
Optional

contentId

object
configuration
Optional

configuration

boolean
system
Optional

system

boolean
shared
Optional

shared

boolean
scalable
Optional

scalable

boolean
asyncDeployed
Optional

asyncDeployed

string
runtimeVersion
Optional

runtimeVersion

string
id
Optional

id

string
orgId
Required

orgId

string
projectId
Optional

projectId

string
selfLink
Optional

selfLink


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' https://{api_host}/abx/api/resources/actions/{id}/versions/{versionId}/restore