跳到主要内容
版本:v0.4

Create project subjects.

Create project subjects.

Create project subjects.

Path Parameters
    project string required
Request Body required
    items object[] required
  • Array [
  • role object required
    id string required
    subject object required
    domain string
    id string
    kind string
    name string
  • ]
Responses

Created


Schema
    items object[]
  • Array [
  • createTime date-time
    id string
    project object
    createTime date-time
    description string
    id string
    labels object
    property name* string
    name string
    updateTime date-time
    role object
    applicableEnvironmentTypes string[]
    builtin boolean
    createTime date-time
    description string
    id string
    kind string
    policies object[]
  • Array [
  • actions string[]
    paths string[]
    resourceRefers string[]
    resources string[]
  • ]
  • updateTime date-time
    subject object
    builtin boolean
    createTime date-time
    description string
    domain string
    id string
    kind string
    name string
    roles object[]
  • Array [
  • createTime date-time
    id string
    project object
    createTime date-time
    description string
    id string
    labels object
    property name* string
    name string
    updateTime date-time
    role object
    applicableEnvironmentTypes string[]
    builtin boolean
    createTime date-time
    description string
    id string
    kind string
    policies object[]
  • Array [
  • actions string[]
    paths string[]
    resourceRefers string[]
    resources string[]
  • ]
  • updateTime date-time
    subject object
    builtin boolean
    createTime date-time
    description string
    domain string
    id string
    kind string
    name string
    roles undefined[]
    updateTime date-time
  • ]
  • updateTime date-time
  • ]
POST /v1/projects/:project/subjects/_/batch

Authorization

name: BasicAuthtype: httpdescription: Basic Authentication, in form of base64(<username>:<password>), the password must be a valid Seal API token.in: headerscheme: basic

Request

Security Scheme
Username
Password
project — path required
Body required
{
"items": [
{
"role": {
"id": "string"
},
"subject": {
"domain": "string",
"id": "string",
"kind": "string",
"name": "string"
}
}
]
}
curl / cURL
curl -L -X POST 'https://seal-io.github.io/v1/projects/:project/subjects/_/batch' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"items": [
{
"role": {
"id": "string"
},
"subject": {
"domain": "string",
"id": "string",
"kind": "string",
"name": "string"
}
}
]
}'