メインコンテンツまでスキップ

一つのデバイス用リレー登録配送を準備する

POST /api/v1/agent-deployments/{id}/devices/{deviceId}/relay-package

リレー認可されたデプロイ向けのコントローラー専用準備です。個別エージェント認証情報、リレー承認、十分間・八回使用のブートストラップ許可をアトミックに作成します。デバイス別の保護配送用秘密情報を返します。通常の再試行は同じ有効な暗号化配送を返します。明示的復旧には新しい requestId とレビュー済み expectedBootstrapId が必要です。ブートストラップ権限のみを置き換え、古い許可を取り消し、エージェント認証情報を保持します。完全一致する復旧再試行は有効期間内なら同じ代替を返します。復旧は取り消し済み経路を復元せず、計画範囲を変更しません。対象ホストはデバイス証明を引き換えるために直接接続する必要はありません。エージェントをインストールせず、デバイスアクセスを証明しません。

許可されるロール: admin.

認証​

以下の OpenAPI の選択肢は、受け付ける認証方式を示します。ブラウザーからの変更には、正規の Origin ヘッダーも必要です。

[
{
"organizationCredential": []
},
{
"browserSession": []
}
]

パラメーター​

[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "deviceId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]

リクエスト本文​

{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"recovery": {
"type": "object",
"properties": {
"requestId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedBootstrapId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"requestId",
"expectedBootstrapId"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
}

レスポンス​

{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"description": "Validation error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing/expired/revoked credential",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Insufficient role",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"409": {
"description": "State or idempotency conflict",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"413": {
"description": "Body too large",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Unsupported media type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Request budget exhausted; respect Retry-After",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"schema": {
"type": "integer",
"minimum": 1
},
"description": "Seconds until sufficient budget is expected; concurrent traffic may consume replenished capacity."
}
}
},
"500": {
"description": "Internal error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"503": {
"description": "Not configured",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}

#/components/schemas/Asset などの参照は、共有スキーマで解決されます。クライアント生成には OpenAPI コントラクトをダウンロードしてください。このページは生成されたもので、計画中のエンドポイントではなく、実装済みの開発 API を説明します。