Get Usage by ID

get

/usage/{id}

Get the specified usage resource.

Request

Path Parameters
  • The ID of the usage resource to get.
    Example:
    0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+32341474824064940
Query Parameters
  • The type of object to return.
    Example:
    Use @type=Usage for a base object, or @type=UsageOracle for an extended object.
  • The list of fields to return in the response.
    Example:
    fields=description,ratedProductUsage

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : Usage
Type: object
Title: Usage
A instance of usage.
Show Source
Nested Schema : ratedProductUsage
Type: array
The usage's rating details.
Show Source
Nested Schema : relatedParty
Type: array
The parties related to the usage.
Show Source
Nested Schema : usageCharacteristic
Type: array
The usage's characteristics.
Show Source
Nested Schema : Usage Specification Ref
Type: object
Title: Usage Specification Ref
A usage specification reference.
Show Source
Nested Schema : Rated Product Usage
Type: object
Title: Rated Product Usage
An instance of rated usage.
Show Source
Nested Schema : Money
Type: object
A base / value business entity used to represent money.
Show Source
Nested Schema : Product Ref
Type: object
Title: Product Ref
A reference to a product.
Show Source
Nested Schema : Related Party
Type: object
Title: Related Party
A party related to another object.
Show Source
Nested Schema : Usage Characteristic
Type: object
Title: Usage Characteristic
A characteristic of usage.
Show Source
Nested Schema : characteristicRelationship
Type: array
The characteristic's relationships.
Show Source
Nested Schema : Any
Type: object
Nested Schema : CharacteristicRelationship
Type: object
A related characteristic.
Show Source

400 Response

Request error

404 Response

Not Found

500 Response

Unexpected server error
Back to Top

Examples

The following example shows how to get a usage object with a specified ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET 'http://host:port/brm/usageManagement/version/usage/0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+323414748240646493'

Example of the Response Body

The following example shows the contents of the response body in JSON format.

{
    "@baseType": "Usage",
    "@schemaLocation": null,
    "@type": "Usage",
    "id": "0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+323414748240646493",
    "href": "http://host:port/brm/usageManagement/version/usage/0.0.0.1+-event-billing-product-fee-cycle-cycle_forward_monthly+323414748240646493",
    "date": "2020-05-02T00:23:54-07:00",
    "usageType": "EventBillingProductFeeCycleCycle_forward_monthly",
    "status": "Rated",
    "usageSpecification": null,
    "usageCharacteristic": null,
    "relatedParty": null,
    "ratedProductUsage": [
        {
            "@baseType": null,
            "@schemaLocation": null,
            "@type": null,
            "ratingDate": "2020-05-02T00:23:54-07:00",
            "usageRatingTag": null,
            "isBilled": null,
            "ratingAmountType": null,
            "taxExcludedAmount": {
                "unit": "USD",
                "value": 0.0
            },
            "taxIncludedAmount": {
                "unit": "USD",
                "value": 0.0
            },
            "taxRate": 0.0,
            "isTaxExempt": null,
            "offerTariffType": null,
            "bucketValueConvertedInAmount": null,
            "productRef": null
        }
    ]
}
Back to Top