actionversions#

async idem_vra.exec.vra.abx.actionversions.create_action_version_using_post(hub, ctx, p_id, **kwargs)[source]#

Create a version for an action Creates a new version for the specified action Performs POST /abx/api/resources/actions/{id}/versions

Parameters:
  • p_id (string) – (required in path) ID of the action

  • projectId (string) – (optional in query) Project ID of action (required for non-system actions)

  • action (Any) – (optional in body)

  • actionId (string) – (optional in body) ID of the action

  • contentId (string) – (optional in body) ID of the actions saved compressed content

  • createdBy (string) – (optional in body) Name of the version creator

  • createdMillis (integer) – (optional in body) Creation time in millis

  • description (string) – (optional in body) Description of the version

  • gitCommitId (string) – (optional in body) Commit ID of the version if pushed to git

  • id (string) – (optional in body) ID of the resource

  • name (string) – (optional in body) Name of the resource

  • orgId (string) – (optional in body) Org ID of the resource

  • projectId – (optional in body) Project Id of the action (required for non-system actions)

  • released (boolean) – (optional in body) Flag indicating if the version is released (only 1 released version allowed per action)

async idem_vra.exec.vra.abx.actionversions.delete_action_version_using_delete(hub, ctx, p_id, p_versionId, **kwargs)[source]#

Delete an action version Deletes an action version Performs DELETE /abx/api/resources/actions/{id}/versions/{versionId}

Parameters:
  • p_id (string) – (required in path) ID of the action

  • p_versionId (string) – (required in path) ID of the action version

  • projectId (string) – (optional in query) Project ID of action (required for non-system actions)

async idem_vra.exec.vra.abx.actionversions.get_all_versions_using_get(hub, ctx, p_id, **kwargs)[source]#

Fetch all versions of an action Retrieves all created versions for an action Performs GET /abx/api/resources/actions/{id}/versions

Parameters:
  • p_id (string) – (required in path) ID of the action

  • page (string) – (optional in query) Page to fetch (starting from 0)

  • projectId (string) – (optional in query) Project ID of action (required for non-system actions)

  • size (string) – (optional in query) Amount of entities per page

async idem_vra.exec.vra.abx.actionversions.release_action_version_using_put(hub, ctx, p_id, version, **kwargs)[source]#

Mark an action version as released Marks an exisiting version of an action as released Performs PUT /abx/api/resources/actions/{id}/release

Parameters:
  • p_id (string) – (required in path) ID of the action

  • version (string) – (required in body) Name of the version to be released

  • projectId (string) – (optional in query) Project ID of action (required for non-system actions)

async idem_vra.exec.vra.abx.actionversions.restore_action_version_using_put(hub, ctx, p_id, p_versionId, **kwargs)[source]#

Restore the action state based on a specified version Change the current action state to the state specified in the version Performs PUT /abx/api/resources/actions/{id}/versions/{versionId}/restore

Parameters:
  • p_id (string) – (required in path) ID of the action

  • p_versionId (string) – (required in path) ID of the action version

  • projectId (string) – (optional in query) Project ID of action (required for non-system actions)

async idem_vra.exec.vra.abx.actionversions.unrelease_action_version_using_delete(hub, ctx, p_id, **kwargs)[source]#

Mark an action version as not released Marks an actions released version as not released Performs DELETE /abx/api/resources/actions/{id}/release

Parameters:
  • p_id (string) – (required in path) ID of the action

  • projectId (string) – (optional in query) Project ID of action (required for non-system actions)