方法路径摘要认证
POST/v1/gateway-bindings/completeGateway installer completes a binding with its one-time token (public, rate limited per source)无需认证

契约文件:api/openapi/v1/control.yaml

接口详情

POST /v1/gateway-bindings/complete

Gateway installer completes a binding with its one-time token (public, rate limited per source)

operationId
completeAgentGatewayBinding
认证
  • 无需认证。
所需权限

契约没有单独标注权限码,权限要求见下方说明与 403 响应。

说明(契约原文)

The installer generated both private keys locally and verified the token's root CA fingerprint against /downloads/gateway-ca.pem first. Returns the client certificate (URI SAN spiffe://cdn-platform/gateway/<gateway_id>, 30 days), the node channel server certificate (90 days), CA bundles and the remote endpoints.

请求体

application/json · 必填:是

completeAgentGatewayBinding 请求体
名称类型必填说明
tokenstring是gwt1.<gateway_id>.<root CA SHA-256 first 16 bytes hex>.<secret>
client_csr_derstring(byte)是Ed25519 CSR.
server_csr_derstring(byte)是ECDSA P-256 CSR.
enrollment_portinteger是—
agent_portinteger是—
versionstring否—

响应

completeAgentGatewayBinding 响应
状态码说明
200Bound.

字段:gateway_id: string(uuid) installation_id: string(uuid) workload_uri_san: string client_certificate_pem: string server_certificate_pem: string root_ca_pem: string node_ca_pem: string endpoints: object

401gateway_binding_token_invalid (unknown
409gateway_remote_access_disabled
422invalid_input (ports
429rate_limited

失败时怎么办

  • 401 检查凭据格式、是否过期或被轮换。
  • 409 先回读资源当前状态;同一操作重试保持原 Idempotency-Key 和原请求内容。
  • 429 被限速:等待后再试,降低并发。

↑ 回到列表