AWS Outposts

2023/07/06 - AWS Outposts - 1 updated api methods

Changes  Added paginator support to several APIs. Added the ISOLATED enum value to AssetState.

ListAssets (updated) Link ΒΆ
Changes (request)
{'StatusFilter': {'ISOLATED'}}

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

client.list_assets(
    OutpostIdentifier='string',
    HostIdFilter=[
        'string',
    ],
    MaxResults=123,
    NextToken='string',
    StatusFilter=[
        'ACTIVE'|'RETIRING'|'ISOLATED',
    ]
)
type OutpostIdentifier:

string

param OutpostIdentifier:

[REQUIRED]

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

type HostIdFilter:

list

param HostIdFilter:

Filters the results by the host ID of a Dedicated Host.

  • (string) --

type MaxResults:

integer

param MaxResults:

The maximum page size.

type NextToken:

string

param NextToken:

The pagination token.

type StatusFilter:

list

param StatusFilter:

Filters the results by state.

  • (string) --

rtype:

dict

returns:

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.

            • ACTIVE - The asset is available and can provide capacity for new compute resources.

            • ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.

            • RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.

        • 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.