テレメトリ受信側設定を管理する
POST /api/auth/telemetry/manage
検証済みワークスペース管理者のブラウザーセッションと正確な Origin ヘッダーが必要です。アカウント/データセット/プライバシーの結合は不変です。ローテーションは一度だけ取り込み認証情報を返し、保存時はハッシュ化され、有効期間は 1?365 日です。ローテーション/切断は保留中アップロードを無効にします。アーカイブには切断が必要で、復元しても認証情報は復元しません。作成以外の変更には expectedRevision が必要です。削除は先に切断し、expectedRevision と confirm true を指定する必要があります。アーカイブ済み受信側と同一リビジョンの冪等な再試行に対応します。接続設定と配送診断を削除し、インベントリ、不変の証拠、アーカイブ作業を保持します。重複排除マーカーは通常の三十日期限を保持します。遅れたアップロードやプローブで削除済み受信側は復活しません。通常の読み取り/状態/復元と取り込みは 404 を返します。プロバイダージョブは別に無効化または削除してください。プロバイダー API は呼び出しません。
許可されるロール: admin.
認証
以下の OpenAPI の選択肢は、受け付ける認証方式を示します。ブラウザーからの変更には、正規の Origin ヘッダーも必要です。
[
{
"browserSession": []
}
]
パラメーター
[]
リクエスト本文
{
"required": true,
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "create"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"accountId": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"dataset": {
"type": "string",
"const": "zero_trust_network_sessions"
},
"retainEndpointAddresses": {
"type": "boolean"
},
"consent": {
"type": "boolean",
"const": true
}
},
"required": [
"operation",
"name",
"accountId",
"dataset",
"retainEndpointAddresses",
"consent"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "list"
},
"after": {
"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)$"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"archived": {
"type": "boolean"
}
},
"required": [
"operation"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "read"
},
"connectionId": {
"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": [
"operation",
"connectionId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "rename"
},
"connectionId": {
"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)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
}
},
"required": [
"operation",
"connectionId",
"expectedRevision",
"name"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "rotate"
},
"connectionId": {
"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)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"expiresInDays": {
"default": 90,
"type": "integer",
"minimum": 1,
"maximum": 365
}
},
"required": [
"operation",
"connectionId",
"expectedRevision"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "delete"
},
"connectionId": {
"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)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"confirm": {
"type": "boolean",
"const": true
}
},
"required": [
"operation",
"connectionId",
"expectedRevision",
"confirm"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "disconnect"
},
"connectionId": {
"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)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
}
},
"required": [
"operation",
"connectionId",
"expectedRevision"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "archive"
},
"connectionId": {
"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)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
}
},
"required": [
"operation",
"connectionId",
"expectedRevision"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "restore"
},
"connectionId": {
"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)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
}
},
"required": [
"operation",
"connectionId",
"expectedRevision"
],
"additionalProperties": false
}
]
}
}
}
}
レスポンス
{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"type": "object",
"properties": {
"receiverStatus": {
"enum": [
"ready",
"expired",
"authorization-required",
"credential-required",
"disconnected",
"archived"
]
},
"id": {
"type": "string",
"format": "uuid"
},
"tenantId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"accountId": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"dataset": {
"const": "zero_trust_network_sessions"
},
"retainEndpointAddresses": {
"type": "boolean"
},
"revision": {
"type": "integer"
},
"state": {
"enum": [
"credential-required",
"configured",
"disconnected"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "string"
},
"updatedBy": {
"type": "string"
},
"consentedAt": {
"type": "string",
"format": "date-time"
},
"consentedBy": {
"type": "string"
},
"credentialExpiresAt": {
"type": "string",
"format": "date-time"
},
"revokedAt": {
"type": "string",
"format": "date-time"
},
"archivedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"tenantId",
"name",
"accountId",
"dataset",
"retainEndpointAddresses",
"revision",
"state",
"createdAt",
"updatedAt",
"createdBy",
"updatedBy",
"consentedAt",
"consentedBy"
]
},
{
"type": "object",
"properties": {
"items": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"receiverStatus": {
"enum": [
"ready",
"expired",
"authorization-required",
"credential-required",
"disconnected",
"archived"
]
},
"id": {
"type": "string",
"format": "uuid"
},
"tenantId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"accountId": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"dataset": {
"const": "zero_trust_network_sessions"
},
"retainEndpointAddresses": {
"type": "boolean"
},
"revision": {
"type": "integer"
},
"state": {
"enum": [
"credential-required",
"configured",
"disconnected"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "string"
},
"updatedBy": {
"type": "string"
},
"consentedAt": {
"type": "string",
"format": "date-time"
},
"consentedBy": {
"type": "string"
},
"credentialExpiresAt": {
"type": "string",
"format": "date-time"
},
"revokedAt": {
"type": "string",
"format": "date-time"
},
"archivedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"tenantId",
"name",
"accountId",
"dataset",
"retainEndpointAddresses",
"revision",
"state",
"createdAt",
"updatedAt",
"createdBy",
"updatedBy",
"consentedAt",
"consentedBy"
]
}
},
"nextCursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextCursor"
]
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"deleted": {
"const": true
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"maximum": 1000000000
},
"deletedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"deleted",
"expectedRevision",
"deletedAt"
]
},
{
"type": "object",
"properties": {
"connection": {
"type": "object",
"properties": {
"receiverStatus": {
"enum": [
"ready",
"expired",
"authorization-required",
"credential-required",
"disconnected",
"archived"
]
},
"id": {
"type": "string",
"format": "uuid"
},
"tenantId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"accountId": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"dataset": {
"const": "zero_trust_network_sessions"
},
"retainEndpointAddresses": {
"type": "boolean"
},
"revision": {
"type": "integer"
},
"state": {
"enum": [
"credential-required",
"configured",
"disconnected"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "string"
},
"updatedBy": {
"type": "string"
},
"consentedAt": {
"type": "string",
"format": "date-time"
},
"consentedBy": {
"type": "string"
},
"credentialExpiresAt": {
"type": "string",
"format": "date-time"
},
"revokedAt": {
"type": "string",
"format": "date-time"
},
"archivedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"tenantId",
"name",
"accountId",
"dataset",
"retainEndpointAddresses",
"revision",
"state",
"createdAt",
"updatedAt",
"createdBy",
"updatedBy",
"consentedAt",
"consentedBy"
]
},
"token": {
"type": "string",
"description": "One-time receiver credential. Store securely; never logged or returned again."
}
},
"required": [
"connection",
"token"
]
}
]
}
}
}
},
"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 を説明します。