Snapservice. Sites List
List the local and remote sites.
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:
- Operation execution requires
VsanDP.Replication.com.vmware.vsan.snapshotservice.Site.View
.
Specification of matching sites for which information should be returned.
If missing or null
, the behavior is equivalent to a Snapservice.Sites.FilterSpec with all properties missing or null
which means all sites match the filter.
Identifiers of sites that can match the filter.
This property was added in vSphere API 9.0.0.0.
If missing or null
or empty, sites 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.site
. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: com.vmware.snapservice.site
.
Information about the sites matching the Snapservice.Sites.FilterSpec.
"Snapservice.Sites.ListResult Object"
Vapi.Std.Errors.InvalidArgument If validation of the filter fails.
Vapi.Std.Errors.Unsupported If the API is not supported.
"Vapi.Std.Errors.Error Object"
If the caller is not authenticated.
"Vapi.Std.Errors.Unauthenticated Object"
If the caller is not authorized to perform the operation.
"Vapi.Std.Errors.Unauthorized Object"
If there is unknown internal error.
"Vapi.Std.Errors.Error Object"
if the system is unable to communicate with a service to complete the request.
"Vapi.Std.Errors.ServiceUnavailable Object"
curl -H 'Authorization: <value>' https://{api_host}/api/snapservice/sites