Outposts.Client.
list_assets
(**kwargs)¶Lists the hardware assets for the specified Outpost.
Use filters to return specific results. If you specify multiple filters, the results include only the resources that match all of the specified filters. For a filter where you can specify multiple values, the results include items that match any of the values that you specify for the filter.
See also: AWS API Documentation
Request Syntax
response = client.list_assets(
OutpostIdentifier='string',
HostIdFilter=[
'string',
],
MaxResults=123,
NextToken='string',
StatusFilter=[
'ACTIVE'|'RETIRING',
]
)
[REQUIRED]
The ID or the Amazon Resource Name (ARN) of the Outpost.
Filters the results by the host ID of a Dedicated Host.
Filters the results by state.
dict
Response Syntax
{
'Assets': [
{
'AssetId': 'string',
'RackId': 'string',
'AssetType': 'COMPUTE',
'ComputeAttributes': {
'HostId': 'string',
'State': 'ACTIVE'|'ISOLATED'|'RETIRING'
},
'AssetLocation': {
'RackElevation': ...
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Assets (list) --
Information about the hardware assets.
(dict) --
Information about hardware assets.
AssetId (string) --
The ID of the asset.
RackId (string) --
The rack ID of the asset.
AssetType (string) --
The type of the asset.
ComputeAttributes (dict) --
Information about compute hardware assets.
HostId (string) --
The host ID of the Dedicated Host on the asset.
State (string) --
The state.
AssetLocation (dict) --
The position of an asset in a rack.
RackElevation (float) --
The position of an asset in a rack measured in rack units.
NextToken (string) --
The pagination token.
Exceptions
Outposts.Client.exceptions.ValidationException
Outposts.Client.exceptions.AccessDeniedException
Outposts.Client.exceptions.NotFoundException
Outposts.Client.exceptions.InternalServerException