Exercise 3: Identifying Line Items Mapped to an Instance

Authorization: administration token or client token

Endpoint information: Get a list of line items 

Send a GET request to /provisioning/api/v1.0/instances/{instanceId}/line-items to receive a list of line items that are associated with a specific Elastic Access instance. Pass the {instanceId} as a path parameter to identify the specific instance for which you want to see line items.

List the line items provisioned to an instance

Item

Description

URI

/provisioning/api/v1.0/instances/{instanceId}/line-items 

Method

GET 

Path parameters

instanceId: Use the ID returned by the /provisioning/api/v1.0/instances API

In the Exercise 2: Identifying the Instance, the instance ID d889a651-123a-456b-78d9-60d6de8cfes9 was returned.

Request body

N/A

Note:Calling /provisioning/api/v1.0/instances/{instanceId}/line-items using GET also retrieves the line item status: DEPLOYED, INACTIVE, or OBSOLETE.

Sample Response

If the request was successful, the response returns the line item information. Note that the activation ID and quantity match the values that you provided in the task in Configuring the Elastic Access Line Item.

[

  {

    "activationId": "ACT01-Elastic",

    "instanceId": "64d2028c-ae87-4069-a624-66089d957ef9"

    "start": 1695772800000,

    "end": 1790380800000,

    "quantity": 1000,

    "used": 0,

    "attributes": {

      "elastic": true,

      "rateTableSeries": "PublicationApps"

    }

  }

]

See also