Get Descendant Assets

get

/rest/v7/assets/{id}/descendantAssets

This operation retrieves all descendant assets of the specified asset.

Request

Path Parameters
Query Parameters
Back to Top

Response

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 : Currency
Type: object
Title: Currency
Currency Code for the asset
Show Source
Nested Schema : DiscountAmount
Type: object
Title: DiscountAmount
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 bill of materials 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 bill of materials 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
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 -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json"
https://sitename.oracle.com/rest/v7/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/v7/assets"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v7/assets/18399848"
}
]
},
"currency": {
"currencyCode": "USD",
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v7/currencies"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v7/currencies/USD"
}
]
},
"id": 18399853,
"fixedRecurringAmount": {
"value": 50,
"currency": "USD"
},
"parentAsset": {
"id": 18399848,
"assetKey": "rootAssetForAll",
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v7/assets"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v7/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/v7/assets/18399848/descendantAssets/18399853"
}, {
"name": "childAssets",
"rel": "child",
"href": "https://sitename.oracle.com/rest/v7/assets/18399848/descendantAssets/18399853/childAssets",
"kind": ""
}, {
"name": "descendantAssets",
"rel": "child",
"href": "https://sitename.oracle.com/rest/v7/assets/18399848/descendantAssets/18399853/descendantAssets",
"kind": ""
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v7/assets/18399848"
}
]
}
],
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v7/assets/18399848/descendantAssets"
}
]
}
Back to Top