Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 1.6 KB

StoragePolicies.md

File metadata and controls

68 lines (41 loc) · 1.6 KB

IStoragePoliciesManager

List storage policies

Fetches all the storage policies in the enterprise.

This operation is performed by calling function GetStoragePolicies.

See the endpoint docs at API Reference.

await client.StoragePolicies.GetStoragePoliciesAsync();

Arguments

  • queryParams GetStoragePoliciesQueryParams
    • Query parameters of getStoragePolicies method
  • headers GetStoragePoliciesHeaders
    • Headers of getStoragePolicies method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type StoragePolicies.

Returns a collection of storage policies.

Get storage policy

Fetches a specific storage policy.

This operation is performed by calling function GetStoragePolicyById.

See the endpoint docs at API Reference.

await client.StoragePolicies.GetStoragePolicyByIdAsync(storagePolicyId: storagePolicy.Id);

Arguments

  • storagePolicyId string
    • The ID of the storage policy. Example: "34342"
  • headers GetStoragePolicyByIdHeaders
    • Headers of getStoragePolicyById method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type StoragePolicy.

Returns a storage policy object.