Get Descendant Assets

get

/rest/v19/assets/{id}/descendantAssets

This operation retrieves all descendant assets of the specified asset.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Allows expansion of relationships.
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
  • The requested page size, which limits the number of elements the collection should max return.
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Specifies a comma-separated list of pairs to order the response by.
  • Allows to specify one or more filtering criteria. By default, no filtering is applied.
  • Specifies that the total count of records should be included in the response when doing pagination.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : assets-collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Assets
Type: object
Title: Assets
Show Source
Nested Schema : Attributes
Type: object
Title: Attributes
A JSON collection of key/value pair attributes that define the configuration of this asset/component.
Nested Schema : Currency
Type: object
Title: Currency
Currency Code for the asset
Show Source
Nested Schema : descendantAssets-collection
Type: object
Title: descendantAssets-collection
Show Source
Nested Schema : Discount Amount
Type: object
Title: Discount Amount
The amount of discount received.
Show Source
Nested Schema : Fixed Recurring Amount
Type: object
Title: Fixed Recurring Amount
The recurring charge for the product. For example, $10 per month.
Show Source
Nested Schema : One Time Net Amount
Type: object
Title: One Time Net Amount
The price paid to purchase the product.
Show Source
Nested Schema : Parent Asset Id
Type: object
Title: Parent Asset Id
The parent component of the asset tree.
Show Source
  • Title: Asset Key
    An invariant key that uniquely identifies the asset / component for the lifetime of the asset. It will be unique across all asset repositories.
  • Title: Id
    Primary Key of Asset Resource.
Nested Schema : Root Asset Id
Type: object
Title: Root Asset Id
The root component in the asset tree.
Show Source
  • Title: Asset Key
    An invariant key that uniquely identifies the asset / component for the lifetime of the asset. It will be unique across all asset repositories.
  • Title: Id
    Primary Key of Asset Resource.
Nested Schema : Status
Type: object
Title: Status
The status of the asset.
Show Source
  • Title: Display Value
    The translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    The primary key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Usage Net Amount
Type: object
Title: Usage Net Amount
The variable, usage price for the product. For example, $0.10 per Copy.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : descendantAssetsDef
Type: object
Title: descendantAssetsDef
Show Source
Nested Schema : Attributes
Type: object
Title: Attributes
A JSON collection of key/value pair attributes that define the configuration of this asset/component.
Nested Schema : Currency
Type: object
Title: Currency
Currency Code for the asset
Show Source
Nested Schema : Discount Amount
Type: object
Title: Discount Amount
The amount of discount received.
Show Source
Nested Schema : Fixed Recurring Amount
Type: object
Title: Fixed Recurring Amount
The recurring charge for the product. For example, $10 per month.
Show Source
Nested Schema : One Time Net Amount
Type: object
Title: One Time Net Amount
The price paid to purchase the product.
Show Source
Nested Schema : Parent Asset Id
Type: object
Title: Parent Asset Id
The parent component of the asset tree.
Show Source
  • Title: Asset Key
    An invariant key that uniquely identifies the asset / component for the lifetime of the asset. It will be unique across all asset repositories.
  • Title: Id
    Primary Key of Asset Resource.
Nested Schema : Root Asset Id
Type: object
Title: Root Asset Id
The root component in the asset tree.
Show Source
  • Title: Asset Key
    An invariant key that uniquely identifies the asset / component for the lifetime of the asset. It will be unique across all asset repositories.
  • Title: Id
    Primary Key of Asset Resource.
Nested Schema : Status
Type: object
Title: Status
The status of the asset
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    The primary key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Usage Net Amount
Type: object
Title: Usage Net Amount
The variable, usage price for the product. For example, $0.10 per Copy.
Show Source
Back to Top

Examples

The following example shows how to retrieve Descendant Asset items by submitting a GET request to the REST resource using cURL.

curl -X GET -H "Authorization: Bearer <token>" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/18399848/actions/descendantAssets

Example of Response Body

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

{
  "items": [{
      "startDate": null,
      "dateModified": "2017-01-06T10:56:32.707Z",
      "oneTimeNetAmount": {
        "value": 300,
        "currency": "USD"
      },
      "rootDisplay": "display-100-2-1234",
      "parentDisplay": "display-100-2-1234",
      "fixedRecurringPeriod": null,
      "dateAdded": "2017-01-06T10:54:58.703Z",
      "endDate": null,
      "customer": "SpecialAccount100",
      "discountAmount": {
        "value": 15,
        "currency": "USD"
      },
      "rootAsset": {
        "id": 18399848,
        "assetKey": "rootAssetForAll",
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/assets"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/assets/18399848"
          }
        ]
      },
      "currency": {
        "currencyCode": "USD",
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/currencies"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/currencies/USD"
          }
        ]
      },
      "id": 18399853,
      "fixedRecurringAmount": {
        "value": 50,
        "currency": "USD"
      },
      "parentAsset": {
        "id": 18399848,
        "assetKey": "rootAssetForAll",
        "links": [{
            "rel": "domain",
            "href": "https://sitename.oracle.com/rest/v19/assets"
          }, {
            "rel": "canonical",
            "href": "https://sitename.oracle.com/rest/v19/assets/18399848"
          }
        ]
      },
      "rootPartNumber": "part1",
      "quantity": 1,
      "usageNetAmount": null,
      "partNumber": "part1",
      "displayKey": "display-100-2-1234",
      "status": null,
      "parentPartNumber": "part1",
      "paymentTerm": null,
      "usageUnitOfMeasure": null,
      "assetKey": "asset1",
      "attributes": null,
      "discountPercent": 5,
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v19/assets/18399848/descendantAssets/18399853"
        }, {
          "name": "childAssets",
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v19/assets/18399848/descendantAssets/18399853/childAssets",
          "kind": ""
        }, {
          "name": "descendantAssets",
          "rel": "child",
          "href": "https://sitename.oracle.com/rest/v19/assets/18399848/descendantAssets/18399853/descendantAssets",
          "kind": ""
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v19/assets/18399848"
        }
      ]
    }
  ],
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v19/assets/18399848/descendantAssets"
    }
  ]
}
Back to Top