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

デバイス登録を引き換える

POST /api/deployment-enrollment/{tenantId}/{grantId}/redeem

正規 HTTPS ネイティブクライアントルートです。Origin、Cookie、Authorization、コンテンツエンコーディングなしで JSON を POST します。デバイス別の独立した秘密情報、アクティブテナント、期限内で未取り消しのデプロイ、現在の作成者認可が必要です。引き換えはアトミックで、確認応答までは再実行できます。確認前に認証情報を永続保存してください。確認応答は復元可能な暗号文を削除します。期限切れ暗号文は限定クリーンアップで削除します。取り消し済みエージェントは再送で再登録できません。

認証​

この操作に認証済みセッションは不要です。Origin 検査とリクエスト制限は引き続き適用されます。

[]

パラメーター​

[
{
"name": "tenantId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "grantId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]

リクエスト本文​

{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"deviceSecret": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"deviceSecret"
]
}
}
}
}

レスポンス​

{
"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 を説明します。