StoragePoliciesManager

July 28, 2025 ยท View on GitHub

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.getStoragePolicies();

Arguments

  • queryParams GetStoragePoliciesQueryParams
    • Query parameters of getStoragePolicies method
  • headersInput GetStoragePoliciesHeadersInput
    • Headers of getStoragePolicies method
  • cancellationToken undefined | 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.getStoragePolicyById(storagePolicy.id);

Arguments

  • storagePolicyId string
    • The ID of the storage policy. Example: "34342"
  • optionalsInput GetStoragePolicyByIdOptionalsInput

Returns

This function returns a value of type StoragePolicy.

Returns a storage policy object.