You can use the snapshot inventory controller APIs to trigger a snapshot of any product that you deployed using vRealize Suite Lifecycle Manager. When you take a snapshot, you capture the product state at a particular date and time.
If you use vRealize Suite Lifecycle Manager to trigger the product snapshot, you can use vRealize Suite Lifecycle Manager to manage the snapshot.
You only use the snapshot inventory controller APIs to take snapshots of products and not of vRealize Suite Lifecycle Manager itself.
For a list of best practices when using VMware snapshots in the vSphere environment, see https://kb.vmware.com/s/article/1025279.
Tenant ID for SaltStack Config or vRealize Business for Cloud snapshots
To create or manage a snapshot of
SaltStack Config or
vRealize Business for Cloud, you need the tenant ID for the cloud account in
vRealize Automation. Perform the following steps to obtain the tenant ID and assign the tenant ID variable.
- List all environment IDs.
curl -X GET \ '$url/lcm/lcops/api/v2/environments' \ -H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' \ -H 'Content-Type: application/json' \ | jq "."
- Examine the response to locate the tenant ID for the cloud account in vRealize Automation under the product properties as in the following example.
... { "environmentRequestDTO": { "environmentId": "b24ab534-77db-49fd-aa96-4efd2b19632c", "environmentName": "vRealize Automation Environment Example", ... "products": [ { "id": "vra", "version": "8.6.0", "patchHistory": null, "snapshotHistory": null, "logHistory": null, "clusterVIP": { "clusterVips": [] }, "nodes": [], "collectorGroups": null, "properties": { "deployOption": "standard", "tenantId": "Standalone vRASSC", "fipsMode": "false", "isCaEnabled": "false", "licenseRef": "l" } } ], ...
- Assign the tenantId variable.
tenantId = '<your_tenant_ID>'