export_api
async
¶
export_api(
api_id: __string,
specification: __string,
*,
config_overrides: Optional[AsyncApiGatewayV2ClientConfig] = None,
export_version: Optional[__string] = None,
include_extensions: Optional[__boolean] = None,
output_type: Optional[__string] = None,
stage_name: Optional[__string] = None,
) -> ExportApiResponse
export_api
Parameters:
-
api_id(__string) –The API identifier.
-
export_version(Optional[__string], default:None) –The version of the API Gateway export algorithm. API Gateway uses the latest version by default. Currently, the only supported version is 1.0.
-
include_extensions(Optional[__boolean], default:None) –Specifies whether to include API Gateway extensions in the exported API definition. API Gateway extensions are included by default.
-
output_type(Optional[__string], default:None) –The output type of the exported definition file. Valid values are JSON and YAML.
-
specification(__string) –The version of the API specification to use. OAS30, for OpenAPI 3.0, is the only supported value.
-
stage_name(Optional[__string], default:None) –The name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported.
Raises:
-
BadRequestException–The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
NotFoundException–The resource specified in the request was not found. See the message field for more information.
-
TooManyRequestsException–A limit has been exceeded. See the accompanying error message for details.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apigatewayv2/_services/async_api_gateway_v2.py
2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 | |