getGraphqlApiEnvironmentVariables method
Future<GetGraphqlApiEnvironmentVariablesResponse>
getGraphqlApiEnvironmentVariables({
- required String apiId,
Retrieves the list of environmental variable key-value pairs associated with an API by its ID value.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalFailureException.
May throw NotFoundException.
May throw UnauthorizedException.
Parameter apiId :
The ID of the API from which the environmental variable list will be
retrieved.
Implementation
Future<GetGraphqlApiEnvironmentVariablesResponse>
getGraphqlApiEnvironmentVariables({
required String apiId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v1/apis/${Uri.encodeComponent(apiId)}/environmentVariables',
exceptionFnMap: _exceptionFns,
);
return GetGraphqlApiEnvironmentVariablesResponse.fromJson(response);
}