Get the details of VMSP backup tasks and target paths by using the API
search cancel

Get the details of VMSP backup tasks and target paths by using the API

book

Article ID: 455815

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • VMSP backup execution status, completion results, and target storage paths are not displayed in the user interface.
  • Verification of VMSP backup task history and destination storage locations requires querying the VMSP REST API endpoints.

Environment

VMware Cloud Foundation 9.1.0.0400

Resolution

  • Log in to the VMSP control node using the vmware-system-user account.
  • Set environment variables and obtain an authentication token:

export PLATFORM_HOST="https://<VCF services runtime FQDN>"
export ADMIN_USERNAME="[email protected]"
export ADMIN_PASSWORD="<admin-password>"

curl -ks --request POST \
  --url "${PLATFORM_HOST}/api/v1/identity/token" \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode grant_type=password \
  --data-urlencode "username=${ADMIN_USERNAME}" \
  --data-urlencode "password=${ADMIN_PASSWORD}"

  • Export the returned access token:

export TOKEN="<access_token>"

  • Query all VMSP task information using the REST API:

curl -k -H "Authorization: Bearer ${TOKEN}" -H "Content-Type: application/json" -XGET "${PLATFORM_HOST}/api/v1/tasks"|jq

  • Review the JSON response output to verify the backup storage path and execution status for each task.

Additional Information

VCF services runtime FQDN can be get from VCF Operations Build -> Lifecycle -> VCF Management -> Components -> VCF service runtime page.