Set-CnsVolume

This cmdlet modifies the Cloud Native Storage (CNS) volume metadata of a specified CNS volume.

Syntax

-CnsVolume  <CnsVolume[]>
-CnsVolumeMetadata  <CnsVolumeMetadata>
[-RunAsync]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
CnsVolume
CnsVolume[] named
  • wildcards
  • pipeline
  • Specifies the CNS volumes you want to update.
    required
    CnsVolumeMetadata
    CnsVolumeMetadata named
  • pipeline
  • Specifies the metadata for the CNS volume.
    optional
    RunAsync
    SwitchParameter named
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.Storage.Types.V1.Vsan.Cns.CnsVolume

    Examples


    Example 1

    Set-CnsVolume -CnsVolume $cnsVolume -CnsVolumeMetadata $cnsVolumeMetadata

    Updates the $cnsVolumeMetadata CNS volume metadata to the $cnsVolume CNS volume.

    Related Commands

    Feedback

    Was this page helpful?