New-VBRGoogleCloudFolder
Short Description
Creates Google Cloud folders.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
New-VBRGoogleCloudFolder -Connection <VBRGoogleCloudConnection> -Bucket <VBRGoogleCloudBucket> [-Name <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet creates Google Cloud folders in the selected bucket. Veeam Backup & Replication will use these folders to keep backup files there.
Parameters
Parameter | Description | Type | Required | Position | Accept |
---|---|---|---|---|---|
Connection | Specifies an active session with Google Cloud object storage. The cmdlet will create a new folder in this Google Cloud object storage. | Accepts the VBRGoogleCloudConnection object. To create this object, run the Connect-VBRGoogleCloudService cmdlet. | True | Named | True (ByValue, ByPropertyName) |
Bucket | Specifies a Google Cloud bucket. The cmdlet will add a new Google Cloud folder to this bucket. | Accepts the VBRGoogleCloudBucket object. To create this object, run the Get-VBRGoogleCloudBucket cmdlet. | True | Named | False |
Name | Specifies an array of names for the Google Cloud folder. The cmdlet will create the Google Cloud folder with this name. | String[] | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRGoogleCloudFolder object that contains Google Cloud folders added to the selected bucket.
Examples
Creating Google Cloud Folder
This example shows how to create a new Google Cloud folder.
$account = Get-VBRGoogleCloudAccount -Id "0x0x0xxx-000x-0x0x-000-000x00000x0x" $connection = Connect-VBRGoogleCloudService -Account $account -RegionType Global -ServiceType CapacityTier $bucket = Get-VBRGoogleCloudBucket -Connection $connection -Region $region New-VBRGoogleCloudFolder -Connection $connection -Bucket $bucket -Name "NewFolder" |
Perform the following steps:
- Run the Get-VBRGoogleCloudAccount cmdlet. Specify the Id parameter value. Save the result to the $account variable.
- Run the Connect-VBRGoogleCloudService cmdlet. Specify the Account, RegionType, and ServiceType parameter values. Save the result to the $connection variable.
- Run the Get-VBRGoogleCloudBucket cmdlet. Specify the Connection and Region parameter values. Save the result to the $bucket variable.
- Run the New-VBRGoogleCloudFolder cmdlet. Specify the following settings:
- Set the $connection variable as the Connection parameter value.
- Set the $bucket variable as the Bucket parameter value.
- Specify the Name parameter value.
Related Commands