Class ListCompartmentsRequest
Implements
Inherited Members
Namespace: Oci.IdentityService.Requests
Assembly: OCI.DotNetSDK.Identity.dll
Syntax
public class ListCompartmentsRequest : IOciRequest
Examples
Click here to see an example of how to use ListCompartments request.
Properties
AccessLevel
Declaration
[HttpConverter(TargetEnum.Query, "accessLevel")]
public ListCompartmentsRequest.AccessLevelEnum? AccessLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| ListCompartmentsRequest.AccessLevelEnum? | Valid values are |
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[HttpConverter(TargetEnum.Query, "compartmentId")]
public string CompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the compartment (remember that the tenancy is simply the root compartment). |
Remarks
Required
CompartmentIdInSubtree
Declaration
[HttpConverter(TargetEnum.Query, "compartmentIdInSubtree")]
public bool? CompartmentIdInSubtree { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Default is false. Can only be set to true when performing
ListCompartments on the tenancy (root compartment).
When set to true, the hierarchy of compartments is traversed
and all compartments and subcompartments in the tenancy are
returned depending on the the setting of |
LifecycleState
Declaration
[HttpConverter(TargetEnum.Query, "lifecycleState")]
public Compartment.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
| Type | Description |
|---|---|
| Compartment.LifecycleStateEnum? | A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. |
Limit
Declaration
[HttpConverter(TargetEnum.Query, "limit")]
public int? Limit { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | The maximum number of items to return in a paginated "List" call. |
Name
Declaration
[HttpConverter(TargetEnum.Query, "name")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A filter to only return resources that match the given name exactly. |
Page
Declaration
[HttpConverter(TargetEnum.Query, "page")]
public string Page { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The value of the |
SortBy
Declaration
[HttpConverter(TargetEnum.Query, "sortBy")]
public ListCompartmentsRequest.SortByEnum? SortBy { get; set; }
Property Value
| Type | Description |
|---|---|
| ListCompartmentsRequest.SortByEnum? | The field to sort by. You can provide one sort order ( |
SortOrder
Declaration
[HttpConverter(TargetEnum.Query, "sortOrder")]
public ListCompartmentsRequest.SortOrderEnum? SortOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| ListCompartmentsRequest.SortOrderEnum? | The sort order to use, either ascending ( |