Get an asset status
get
/services/rest/connect/v1.4/assetStatuses/{id}
Request
Path Parameters
-
id(required): integer
The unique identifier of the asset status.
Response
Default Response
Root Schema : assetStatuses
Type:
objectThe status of the assets, namely product and services that are registered and tracked in Oracle B2C Service. The default asset statuses are active, retired, and unregistered.
Show Source
-
createdTime:
string
The date and time when the asset status was created. This attribute is read-only.
-
displayOrder:
integer
Minimum Value:
1Maximum Value:2147483647The display position relative to other asset statuses. -
id:
integer
Minimum Value:
1Maximum Value:9223372036854776000The unique identifier of the asset status. -
lookupName:
string
Maximum Length:
255The name used to look up the asset status. -
name:
string
Maximum Length:
80The name of the asset status in the language of the current interface. -
names:
object assetStatuses-names
The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
-
statusType:
object namedIDs-assetStatuses-statusType
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
-
updatedTime:
string
The date and time when the asset status was last updated. This attribute is read-only.
Nested Schema : assetStatuses-names
Type:
objectThe language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
Show Source
-
labelText:
string
Maximum Length:
80The language-specific label text. The value cannot be null or empty. -
language:
object namedIDs-assetStatuses-names-language
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Nested Schema : namedIDs-assetStatuses-statusType
Type:
objectAn ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id:
integer
Minimum Value:
0ID value -
lookupName:
string
Maximum Length:
255Name used to lookup this object
Nested Schema : namedIDs-assetStatuses-names-language
Type:
objectAn ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id:
integer
Minimum Value:
0ID value -
lookupName:
string
Maximum Length:
255Name used to lookup this object
Examples
Use GET with the following syntax to retrieve data for an asset status object:
https://your_site_interface/services/rest/connect/version/assetStatuses/asset_status_idRequest URI example
https://mysite.example.com/services/rest/connect/v1.4/assetStatuses/26Response body example
{
"id": 26,
"lookupName": "Active",
"displayOrder": 1,
"name": "Active",
"names": {
"links": [
{
"rel": "self",
"href": "https://mysite.example.comservices/rest/connect/v1.4/assetStatuses/26/names"
}
]
},
"statusType": {
"id": 19,
"lookupName": "Active"
},
"links": [
{
"rel": "self",
"href": "https://mysite.example.comservices/rest/connect/v1.4/assetStatuses/26"
},
{
"rel": "canonical",
"href": "https://mysite.example.comservices/rest/connect/v1.4/assetStatuses/26"
},
{
"rel": "describedby",
"href": "https://mysite.example.comservices/rest/connect/v1.4/metadata-catalog/assetStatuses",
"mediaType": "application/schema+json"
}
]
}