Skip to content

list_product_api_pages

list_product_api_pages(
    product_id: ProductId,
    *,
    config_overrides: Optional[APIPortalClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    resource_owner_account_id: Optional[AccountId] = None,
) -> ListProductApiPagesResponse

Lists the API pages in a product. The results do not include page bodies.

Parameters:

  • product_id (ProductId) –

    The identifier of the product.

  • next_token (Optional[NextToken], default: None ) –

    The pagination token returned by a previous call. Omit it to get the first page.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results to return in one page, from 1 to 100.

  • resource_owner_account_id (Optional[AccountId], default: None ) –

    The AWS account ID that owns the product. Supply it to read a product shared with you by another account. Omit it for products in your own account.

Raises:

Source code in docs_src/capo_apiportal/_services/api_portal.py
def list_product_api_pages(
    self,
    product_id: "capo_apiportal.types.product_id.ProductId",
    *,
    config_overrides: Optional[APIPortalClientConfig] = None,
    next_token: Optional["capo_apiportal.types.next_token.NextToken"] = None,
    max_results: Optional["capo_apiportal.types.max_results.MaxResults"] = None,
    resource_owner_account_id: Optional[
        "capo_apiportal.types.account_id.AccountId"
    ] = None,
) -> "capo_apiportal.types.list_product_api_pages_response.ListProductApiPagesResponse":
    """Lists the API pages in a product. The results do not include page bodies.

    Args:
        product_id: The identifier of the product.
        next_token: The pagination token returned by a previous call. Omit it to get the first page.
        max_results: The maximum number of results to return in one page, from 1 to 100.
        resource_owner_account_id: The AWS account ID that owns the product. Supply it to read a product shared with you by another account. Omit it for products in your own account.

    Raises:
        capo_apiportal.errors.access_denied_exception.AccessDeniedException: You do not have permission to perform this operation.
        capo_apiportal.errors.bad_request_exception.BadRequestException: The request is not valid. The message identifies the field or value that failed validation.
        capo_apiportal.errors.limit_exceeded_exception.LimitExceededException: The request rate or a service quota was exceeded. Reduce the request rate or the number of resources and try again.
        capo_apiportal.errors.resource_not_found_exception.ResourceNotFoundException: The requested resource does not exist, or you do not have access to it.
        capo_apiportal.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_apiportal.types.list_product_api_pages_request.ListProductApiPagesRequest]",
    ) -> OperationResponse[
        "capo_apiportal.types.list_product_api_pages_response.ListProductApiPagesResponse"
    ]:
        import capo_apiportal._operations.api_portal_control_service.list_product_api_pages

        output, http_response = (
            capo_apiportal._operations.api_portal_control_service.list_product_api_pages.list_product_api_pages(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListProductApiPages")
    )
    input_: capo_apiportal.types.list_product_api_pages_request.ListProductApiPagesRequest = {
        "product_id": product_id
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if resource_owner_account_id is not None:
        input_["resource_owner_account_id"] = resource_owner_account_id

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output