How Do I Retrieve a List of Support Bundle Files
You can use the VMware Cloud Director service API to retrieve a list of the files in a support bundle that you created for a specific VMware Cloud Director instance.
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.
- Create a support bundle. See How Do I Generate and Download a Support Bundle.
Procedure
Results
The response returns information about the support bundle files.
Example: Retrieve a List of Support Bundle Files
This example retrieves the IDs (URNs) of the tasks that resulted in the creation of support bundles and then retrieves information about the files generated by a specific task.
Run a GET request to retrieve the IDs
(URNs) of the tasks that resulted in the creation of support
bundles.
GET https://vcdc-operator-prod-us-west-2.vdp.vmware.com/environments/urn:vcdc:environment:00000000-0000-0000-0000-00000000000/organization/urn:vcdc:organization:11111111-1111-1111-1111-111111111111/tasks?filter=name==createSupportBundle
Use the bearer token in the
Authorization
header of the request.
Authorization: Bearer eyJh…I1NiIs
The response returns information about all tasks in your organization that resulted in the creation of support bundle.
Run a GET request to retrieve information
about the files generated by a specific
task.
GET https://vcdc-operator-prod-us-west-2.vdp.vmware.com/environment/urn:vcdc:environment:00000000-0000-0000-0000-00000000000/tasks/urn:vcdc:task:11111111-1111-1111-1111-11111111111/files
The response returns information about the support bundle files created by the task.
[ { "id": "urn:vcdc:clusterFile:111111111-1111-1111-1111-111111111", "name": "support-bundle-vcd-22222222-2222-2222-2222-222222222222-2.tgz", "description": "Generated support bundle for vcd-22222222-2222-2222-2222-222222222222-2", "type": "SUPPORT_BUNDLE", "timestamp": "2020-11-11T06:21:29.913995Z" }, { "id": "urn:vcdc:clusterFile:33333333-3333-3333-3333-333333333333", "name": "support-bundle-vcd-44444444-4444-4444-4444-44444444444-4.tgz", "description": "Generated support bundle for vcd-44444444-4444-4444-4444-44444444444-4", "type": "SUPPORT_BUNDLE", "timestamp": "2020-11-11T06:21:29.787532Z" } ]