export_api
¶
export_api(
api_id: __string,
specification: __string,
*,
config_overrides: Optional[ApiGatewayV2ClientConfig] = 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/api_gateway_v2.py
2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 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 | |