How Do I Retrieve a Specific Support Bundle File
You can use the VMware Cloud Director service API to retrieve information about a specific support bundle file that you created.
Prerequisites
- Obtain an API token from the
organization you want to manage and exchange it for an access bearer token. Use
the bearer token in the
Authorization
header when you run API calls. See How Do I Generate an API Token. - Obtain the environment ID (URN). See How Do I Retrieve the List of Environments in My Organization.
- Obtain the task ID (URN). See How Do I Retrieve Information About All Tasks.
- Retrieve the ID (URN) of the file. See How Do I Retrieve a List of Support Bundle Files.
Procedure
- ♦
Run a GET request.
GET operatorURL/environment/environmentUrn/tasks/taskUrn/files/fileUrn
Here operatorUrl is the operator URL, for example vcdc-operator-prod-us-west-2.vdp.vmware.com.
Results
The response returns information about the task files.
Example: Retrieve Details About a Specific Task File
This example retrieves information about
a specific task
file.
GET https://vcdc-operator-prod-us-west-2.vdp.vmware.com/environments/urn:vcdc:environment:00000000-0000-0000-0000-0000000000/tasks/urn:vcdc:task:22222222-2222-2222-2222-22222222222/files/urn:vcdc:clusterFile:33333333-3333-3333-3333-33333333333
The response returns information about the task file that you specified.
{ "id": "urn:vcdc:clusterFile:33333333-3333-3333-3333-33333333333", "name": "support-bundle-vcd-55555555-5555-5555-5555-55555555555-5.tgz", "description": "Generated support bundle for vcd-55555555-5555-5555-5555-55555555555-5", "type": "SUPPORT_BUNDLE", "timestamp": "2020-11-11T06:21:29.787532Z" }