文档API 参考

Rust · 0.1.0

Create Identity Provider

POST /api/v1/identity-providers

IdentityProviderService · IdentityProviderService_CreateIdentityProvider

基于协议生成的参考。授权与实例策略仍然生效。结构描述继承自 MIT 许可的应用接口定义;本站不会向真实服务执行示例。

访问权限

需要实例管理员;普通已认证账号不能执行此操作。

请求

CreateIdentityProvider creates an identity provider.

POST/api/v1/identity-providers

参数

名称 / 位置类型 / 是否必需描述
identityProviderId
query
string
OpenAPI 未标记为必需
Optional. The ID to use for the identity provider, which will become the final component of the resource name. If not provided, the system will generate one. Format: ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$

请求体

必需

application/json · IdentityProvider

响应

200 · OK

application/json · IdentityProvider

default · Default error response

application/json · Status

完整操作定义

下方保留全部已声明约束、媒体类型和响应细节。结构引用链接到完整定义。

展开 JSON 定义
{
  "tags": [
    "IdentityProviderService"
  ],
  "description": "CreateIdentityProvider creates an identity provider.",
  "operationId": "IdentityProviderService_CreateIdentityProvider",
  "parameters": [
    {
      "name": "identityProviderId",
      "in": "query",
      "description": "Optional. The ID to use for the identity provider, which will become the final component of the resource name.\n If not provided, the system will generate one.\n Format: ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$",
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/IdentityProvider"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/IdentityProvider"
          }
        }
      }
    },
    "default": {
      "description": "Default error response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Status"
          }
        }
      }
    }
  }
}