list_products
async
¶
list_products(
*,
config_overrides: Optional[AsyncAPIPortalClientConfig] = 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/async_api_portal.py
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 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 | |