New-VBRGoogleCloudFolder
Short Description
Creates Google Cloud folders.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRGoogleCloudFolder -Connection <IVBRGoogleCloudConnection> -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 Pipeline Input |
|---|---|---|---|---|---|
|
Bucket |
Specifies a Google Cloud bucket. The cmdlet will add a new Google Cloud folder to this bucket.
Accepts the |
True |
Named |
False |
|
|
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 |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Name |
Specifies an array of names for the Google Cloud folder. The cmdlet will create the Google Cloud folder with this name. |
|
True |
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-VBRGoogleCloudAccountReturns Google Cloud credentials records. cmdlet. Specify theIdparameter value. Save the result to the$accountvariable. - Run the
Connect-VBRGoogleCloudServiceConnects to Google Cloud object storage. cmdlet. Specify theAccount,RegionType, andServiceTypeparameter values. Save the result to the$connectionvariable. - Run the
Get-VBRGoogleCloudBucketReturns Google Cloud buckets. cmdlet. Specify theConnectionandRegionparameter values. Save the result to the$bucketvariable. - Run the
New-VBRGoogleCloudFoldercmdlet. Specify the following settings:- Set the
$connectionvariable as theConnectionparameter value. - Set the
$bucketvariable as theBucketparameter value. - Specify the
Nameparameter value.
- Set the
Related Commands
Get-VBRGoogleCloudAccountReturns Google Cloud credentials records.Connect-VBRGoogleCloudServiceConnects to Google Cloud object storage.Get-VBRGoogleCloudBucketReturns Google Cloud buckets.