Get-VBRvCDCloudStoragePolicy

Short Description

Returns Cloud Director storage policies.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides parameter sets that allow you to:

  • Get Cloud Director storage policies by name.

Get-VBRvCDCloudOrganizationvDC [-Name <string[]>]  [<CommonParameters>]

  • Get Cloud Director storage policies by ID.

Get-VBRvCDCloudOrganizationvDC [-Id <guid[]>]  [<CommonParameters>]

  • Get Cloud Director storage policies for the specified organization VDC.

Get-VBRvCDCloudOrganizationvDC [-OrganizationvDC <VBRvCDCloudOrganizationvDC>]  [<CommonParameters>]

Detailed Description

This cmdlet returns Cloud Director storage policies. The service provider must configure a storage policy in VMware Cloud Director beforehand.

Get-VBRvCDCloudStoragePolicy Important!

This cmdlet is available for tenants only.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

Name

Specifies a name of a Cloud Director storage policy that you want to get.

String[]

False

Named

True (ByValue,
ByPropertyName)

Id

Specifies an IDs of Organizations VDCs that you want to get.

Guid[]

False

Named

True (ByValue,
ByPropertyName)

OrganizationvDC

Specifies an organization VDC. The cmdlet will return storage policies for the specified organization VDC.

Accepts the VBRvCDCloudOrganizationvDC object. To get this object, run the Get-VBRvCDCloudOrganizationvDC cmdlet.

False

Named

True (ByValue,
ByPropertyName)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRvCDCloudStoragePolicy

Examples

Get-VBRvCDCloudStoragePolicyExample 1. Getting Cloud Director Cloud Storage Policy

This command gets a Cloud Director cloud storage policy.

Get-VBRvCDCloudStoragePolicy -Name "Silver policy"

Get-VBRvCDCloudStoragePolicyExample 2. Getting Cloud Director Cloud Storage Policy Assigned to Selected Organization VDC

This example shows how to get the Cloud Director cloud storage policy that is assigned to the specific organization VDC.

$vdc = Get-VBRvCDCloudOrganizationvDC -Name "Organization VDC"

Get-VBRvCDCloudStoragePolicy -Name "Silver Policy" -OrganizationvDC $vdc

Perform the following steps:

  1. Run the Get-VBRvCDCloudOrganizationvDC cmdlet. Specify the Name parameter value. Save the result to the $vdc variable.
  2. Run the Get-VBRvCDCloudStoragePolicy cmdlet. Specify the Name parameter value. Set the $vdc variable as the OrganizationvDC parameter value.

Related Commands

Get-VBRvCDCloudOrganizationvDC

Page updated 4/24/2024

Page content applies to build 12.1.1.56