ServiceCatalog / Client / list_portfolio_access

list_portfolio_access#

ServiceCatalog.Client.list_portfolio_access(**kwargs)#

Lists the account IDs that have access to the specified portfolio.

A delegated admin can list the accounts that have access to the shared portfolio. Note that if a delegated admin is de-registered, they can no longer perform this operation.

See also: AWS API Documentation

Request Syntax

response = client.list_portfolio_access(
    AcceptLanguage='string',
    PortfolioId='string',
    OrganizationParentId='string',
    PageToken='string',
    PageSize=123
)
Parameters:
  • AcceptLanguage (string) –

    The language code.

    • jp - Japanese

    • zh - Chinese

  • PortfolioId (string) –

    [REQUIRED]

    The portfolio identifier.

  • OrganizationParentId (string) – The ID of an organization node the portfolio is shared with. All children of this node with an inherited portfolio share will be returned.

  • PageToken (string) – The page token for the next set of results. To retrieve the first set of results, use null.

  • PageSize (integer) – The maximum number of items to return with this call.

Return type:

dict

Returns:

Response Syntax

{
    'AccountIds': [
        'string',
    ],
    'NextPageToken': 'string'
}

Response Structure

  • (dict) –

    • AccountIds (list) –

      Information about the Amazon Web Services accounts with access to the portfolio.

      • (string) –

    • NextPageToken (string) –

      The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

Exceptions

  • ServiceCatalog.Client.exceptions.ResourceNotFoundException

  • ServiceCatalog.Client.exceptions.InvalidParametersException