Class ListUsageLedgersRequest
Implements
Inherited Members
Namespace: Oci.OnesubscriptionService.Requests
Assembly: OCI.DotNetSDK.Onesubscription.dll
Syntax
public class ListUsageLedgersRequest : IOciRequest
Examples
Click here to see an example of how to use ListUsageLedgers 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
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. Default: ( |
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 "List" call. |
SortBy
Declaration
[HttpConverter(TargetEnum.Query, "sortBy")]
public ListUsageLedgersRequest.SortByEnum? SortBy { get; set; }
Property Value
| Type | Description |
|---|---|
| ListUsageLedgersRequest.SortByEnum? | The usage-ledger field to sort by. You can provide one sort order ('sortOrder'). |
SortOrder
Declaration
[HttpConverter(TargetEnum.Query, "sortOrder")]
public ListUsageLedgersRequest.SortOrderEnum? SortOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| ListUsageLedgersRequest.SortOrderEnum? | The usage-ledger sort order to use, either ascending ('ASC') or descending ('DESC'). |
SubscriptionId
Declaration
[Required(ErrorMessage = "SubscriptionId is required.")]
[HttpConverter(TargetEnum.Path, "subscriptionId")]
public string SubscriptionId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Subscription identifier. |
Remarks
Required
TimeConsumptionGreaterThanOrEqualTo
Declaration
[HttpConverter(TargetEnum.Query, "timeConsumptionGreaterThanOrEqualTo")]
public DateTime? TimeConsumptionGreaterThanOrEqualTo { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The lower bound of the consumption-date range, expressed in RFC 3339 timestamp format. The value is inclusive (>=). |
TimeConsumptionLessThan
Declaration
[HttpConverter(TargetEnum.Query, "timeConsumptionLessThan")]
public DateTime? TimeConsumptionLessThan { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |