get_resources
async
¶
get_resources(
rest_api_id: String,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
position: Optional[String] = None,
limit: Optional[NullableInteger] = None,
embed: Optional[ListOfString] = None,
) -> Resources
Lists information about a collection of Resource resources.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
position(Optional[String], default:None) –The current pagination position in the paged result set.
-
limit(Optional[NullableInteger], default:None) –The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
-
embed(Optional[ListOfString], default:None) –A query parameter used to retrieve the specified resources embedded in the returned Resources resource in the response. This
embedparameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the"methods"string. For example,GET /restapis/{restapi_id}/resources?embed=methods.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.