Snapservice. Reports. Clusters. Protection Groups. Snapshots List

Snapservice. Reports. Clusters. Protection Groups. Snapshots List

Paginated list of protection group snapshots for the given cluster used for reports which contains historical data.

This operation was added in vSphere API 9.0.0.0.

Returns an authorization error if you do not have all of the privileges described as follows:

  • The resource ClusterComputeResource referenced by the parameter cluster requires System.Read.
Request
URI
GET
https://{host}/api/snapservice/reports/clusters/{cluster}/protection-groups/snapshots
COPY
Path Parameters
string
cluster
Required

Identifier of the cluster.

The parameter must be an identifier for the resource type: ClusterComputeResource.

Query Parameters
filter
Optional

Contains arguments to filter the list result.

If missing or null, the behavior is equivalent to a Snapservice.Reports.Clusters.ProtectionGroups.Snapshots.FilterSpec with all properties missing or null which means all protection groups match the filter.

string of array
pgs
Optional

Identifiers of protection groups that can match the filter.

This property was added in vSphere API 9.0.0.0.

If missing or null or empty, protection groups with any identifier match the filter.

When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: com.vmware.snapservice.protection_group. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: com.vmware.snapservice.protection_group.

iterate
Optional

The specification of a page to be retrieved.

If missing or null, the first page will be retrieved.


Authentication
This operation uses the following authentication methods.
Responses
200

List of protection group snapshots for report matching the Snapservice.Reports.Clusters.ProtectionGroups.Snapshots.FilterSpec for the given cluster.

Returns Snapservice.Reports.Clusters.ProtectionGroups.Snapshots.ListResult of type(s) application/json
"Snapservice.Reports.Clusters.ProtectionGroups.Snapshots.ListResult Object"

400

Vapi.Std.Errors.InvalidArgument If validation of the filter or iterate fails.

Vapi.Std.Errors.Unsupported If the API is not supported.

Returns Vapi.Std.Errors.Error of type(s) application/json
"Vapi.Std.Errors.Error Object"

401

If the caller is not authenticated.

Returns Vapi.Std.Errors.Unauthenticated of type(s) application/json
"Vapi.Std.Errors.Unauthenticated Object"

403

If the caller is not authorized to perform the operation.

Returns Vapi.Std.Errors.Unauthorized of type(s) application/json
"Vapi.Std.Errors.Unauthorized Object"

404

If there is no cluster associated with cluster in the system.

Returns Vapi.Std.Errors.NotFound of type(s) application/json
"Vapi.Std.Errors.NotFound Object"

500

If there is unknown internal error.

Returns Vapi.Std.Errors.Error of type(s) application/json
"Vapi.Std.Errors.Error Object"

503

If the service is not available.

Returns Vapi.Std.Errors.ServiceUnavailable of type(s) application/json
"Vapi.Std.Errors.ServiceUnavailable Object"

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/snapservice/reports/clusters/{cluster}/protection-groups/snapshots