Get-VBROracleCloudCompartment
Short Description
Returns compartments in Oracle Cloud Infrastructure.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBROracleCloudCompartment -Account <VBROracleCloudAccount> [-Name <String[]>] [-AccessibleOnly] [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of compartments that belong to the tenancy of the specified Oracle Cloud Infrastructure account.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AccessibleOnly |
Defines that the cmdlet will return only compartments that the OCI account can access. If you do not provide this parameter, the cmdlet will return all compartments of the tenancy. |
|
False |
Named |
False |
|
Account |
Specifies the OCI account. The cmdlet will return compartments of the tenancy that this account belongs to.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Name |
Specifies an array of names of compartments. The cmdlet will return compartments with these names. You can use wildcard characters in the names. |
|
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 VBROracleCloudCompartment object that contains the compartment settings.
Examples
Example 1. Getting All Compartments
|
This example shows how to get all compartments of the Oracle Cloud Infrastructure account.
Perform the following steps:
|
Example 2. Getting Accessible Compartment by Name
|
This example shows how to get a compartment by its name. The cmdlet will return the compartment only if the account has access to it.
Perform the following steps:
|