list_products
¶
list_products(
*,
config_overrides: Optional[APIPortalClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
resource_owner: Optional[ResourceOwner] = None,
managed_api_id: Optional[ManagedApiId] = None,
) -> ListProductsResponse
Lists products you own, products shared with you, or both.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in one page, from 1 to 100.
-
next_token(Optional[NextToken], default:None) –The pagination token returned by a previous call. Omit it to get the first page.
-
resource_owner(Optional[ResourceOwner], default:None) –Whose products to return:
SELFfor your own,OTHER_ACCOUNTSfor products shared with you, orALL. Defaults toALL, or toSELFwhenmanagedApiIdis supplied. -
managed_api_id(Optional[ManagedApiId], default:None) –Optional filter: when supplied, only Products this Managed API is associated with are returned.
Raises:
-
AccessDeniedException–You do not have permission to perform this operation.
-
BadRequestException–The request is not valid. The message identifies the field or value that failed validation.
-
LimitExceededException–The request rate or a service quota was exceeded. Reduce the request rate or the number of resources and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apiportal/_services/api_portal.py
2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 | |