1.0

1.0

scpcli application-apigateway stage set configuration
--api_id <value>
--stage_name <value>
--jwt_enabled <value>
--ip_restriction_enabled <value>
--cors_enabled <value>
[--allow_credentials <value>]
[--allow_headers <value>]
[--allow_methods <value>]
[--allow_origins <value>]
[--expose_headers <value>]
[--max_age <value>]

Description

Set stage configuration(Modifying ip_restriction_enabled is no longer supported)

State ACTIVE (DEPRECATED)

VersionSupported Until
1.020251231

Parameters

NameTypeDescriptionExample
api_id
required
stringApi ID27bb070b564349f8a31cc60734cc36a5
stage_name
required
stringStage Nametest-stage
jwt_enabled
required
booleanJWT EnabledFalse
ip_restriction_enabled
required
booleanIP Restriction EnabledFalse
cors_enabled
required
booleanCors EnabledFalse
allow_credentials
optional
booleanAllow CredentialsTrue
allow_headers
optional
arrayAllow HeadersContent-Type
allow_methods
optional
arrayAllow Methods'{}'
allow_origins
optional
arrayAllow Origins*
expose_headers
optional
arrayExpose Headerstest1
max_age
optional
integerMax Age3600