resourceactions#

async idem_vra.exec.vra.catalog.resourceactions.get_resource_action_using_get5(hub, ctx, p_actionId, p_resourceId, **kwargs)[source]#

Fetch resource action. Returns an action for the resource specified by its Resource ID and Action ID. Performs GET /deployment/api/resources/{resourceId}/actions/{actionId}

Parameters:
  • p_actionId (string) – (required in path) Action ID

  • p_resourceId (string) – (required in path) Resource ID

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.

async idem_vra.exec.vra.catalog.resourceactions.get_resource_actions_using_get5(hub, ctx, p_resourceId, **kwargs)[source]#
Fetch available resource actions. Returns the complete list of available actions that can be performed on a given

resource. Performs GET /deployment/api/resources/{resourceId}/actions

Parameters:
  • p_resourceId (string) – (required in path) Resource ID

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.

async idem_vra.exec.vra.catalog.resourceactions.submit_resource_action_request_using_post5(hub, ctx, p_resourceId, **kwargs)[source]#

Resource action request. Submit a resource action request. Performs POST /deployment/api/resources/{resourceId}/requests

Parameters:
  • p_resourceId (string) – (required in path) Resource ID

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.

  • actionId (string) – (optional in body) The id of the action to perform.

  • inputs (object) – (optional in body) Resource action request inputs

  • reason (string) – (optional in body) Reason for requesting a day2 operation