Class ListResourcesRequest
Implements
Inherited Members
Namespace: Oci.UsageService.Requests
Assembly: OCI.DotNetSDK.Usage.dll
Syntax
public class ListResourcesRequest : IOciRequest
Examples
Click here to see an example of how to use ListResources request.
Properties
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 root compartment. |
Remarks
Required
EntitlementId
Declaration
[HttpConverter(TargetEnum.Query, "entitlementId")]
public string EntitlementId { get; set; }
Property Value
Type | Description |
---|---|
string | Subscription or entitlement Id. |
Limit
Declaration
[HttpConverter(TargetEnum.Query, "limit")]
public int? Limit { get; set; }
Property Value
Type | Description |
---|---|
int? | The maximum number of items to return in the paginated response. |
OpcRequestId
Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
Type | Description |
---|---|
string | Unique, Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
Page
Declaration
[HttpConverter(TargetEnum.Query, "page")]
public string Page { get; set; }
Property Value
Type | Description |
---|---|
string | The value of the 'opc-next-page' response header from the previous call. |
ServiceName
Declaration
[Required(ErrorMessage = "ServiceName is required.")]
[HttpConverter(TargetEnum.Query, "serviceName")]
public string ServiceName { get; set; }
Property Value
Type | Description |
---|---|
string | Service Name. |
Remarks
Required
SortBy
Declaration
[HttpConverter(TargetEnum.Query, "sortBy")]
public ListResourcesRequest.SortByEnum? SortBy { get; set; }
Property Value
Type | Description |
---|---|
ListResourcesRequest.SortByEnum? | The field to sort by. Supports one sort order. |
SortOrder
Declaration
[HttpConverter(TargetEnum.Query, "sortOrder")]
public ListResourcesRequest.SortOrderEnum? SortOrder { get; set; }
Property Value
Type | Description |
---|---|
ListResourcesRequest.SortOrderEnum? | The sort order to use, which can be ascending (ASC) or descending (DESC). |