ルートのクロスオリジンリソース共有 (CORS) ポリシーを変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:UpdateGatewayRouteCORS |
update |
*Gateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Id |
integer |
必須 |
関連するレコードの ID。 |
55 |
| GatewayId |
integer |
任意 |
ゲートウェイの ID。 |
85 |
| CorsJSON |
object |
任意 |
CORS ポリシーに関する情報。 |
|
| Status |
string |
任意 |
ポリシーのステータス。 |
off |
| AllowOrigins |
string |
任意 |
アクセスが許可されているオリジン。 |
https://api.aliyun-inc.com/ |
| AllowMethods |
string |
任意 |
許可されている HTTP メソッド。 |
GET,POST |
| AllowHeaders |
string |
任意 |
許可されているリクエストヘッダー。 |
content-type |
| ExposeHeaders |
string |
任意 |
許可されているレスポンスヘッダー。 |
* |
| TimeUnit |
string |
任意 |
時間の単位。 |
h |
| UnitNum |
integer |
任意 |
時間の値。 |
24 |
| AllowCredentials |
boolean |
任意 |
許可されている認証情報。 |
true |
| GatewayUniqueId |
string |
必須 |
ゲートウェイの一意の ID。 |
gw-f70a6ddf2f0941a2bb997b2d16028f37 |
| AcceptLanguage |
string |
任意 |
レスポンスの言語。 RFC 7231 に準拠し、バックエンドサービスはユーザーの使用言語に応じてレスポンスを返す必要があります。
|
zh |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ。 |
||
| RequestId |
string |
リクエストの ID。 |
41BE990E-44E4-5ED3-AEEB-A276941B1854 |
| HttpStatusCode |
integer |
返される HTTP ステータスコード。 |
200 |
| Message |
string |
エラーメッセージ。 |
You are not authorized to perform this operation. |
| Code |
integer |
返されるステータスコード。 |
200 |
| Success |
boolean |
リクエストが成功したかどうかを示します。 有効な値:
|
true |
| Data |
integer |
更新されたゲートウェイルートの ID。 |
618 |
例
成功レスポンス
JSONJSON
{
"RequestId": "41BE990E-44E4-5ED3-AEEB-A276941B1854",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation. ",
"Code": 200,
"Success": true,
"Data": 618
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。