AWS Outposts

2022/05/02 - AWS Outposts - 1 new api methods

Changes  This release adds a new API called ListAssets to the Outposts SDK, which lists the hardware assets in an Outpost.

ListAssets (new) Link ΒΆ

Lists the hardware assets in an Outpost. If you are using Dedicated Hosts on Amazon Web Services Outposts, you can filter your request by host ID to return a list of hardware assets that allocate resources for Dedicated Hosts.

See also: AWS API Documentation

Request Syntax

client.list_assets(
    OutpostIdentifier='string',
    HostIdFilter=[
        'string',
    ],
    MaxResults=123,
    NextToken='string'
)
type OutpostIdentifier

string

param OutpostIdentifier

[REQUIRED]

The ID or the Amazon Resource Name (ARN) of the Outpost.

type HostIdFilter

list

param HostIdFilter

A filter for the host ID of Dedicated Hosts on the Outpost.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR , and the request returns all results that match any of the specified values.

  • (string) --

type MaxResults

integer

param MaxResults

The maximum page size.

type NextToken

string

param NextToken

The pagination token.

rtype

dict

returns

Response Syntax

{
    'Assets': [
        {
            'AssetId': 'string',
            'RackId': 'string',
            'AssetType': 'COMPUTE',
            'ComputeAttributes': {
                'HostId': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Assets (list) --

      Information about 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 any Dedicated Hosts on the asset.

    • NextToken (string) --

      The pagination token.