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

Patch a resource of an environment that belongs to a project.

Patch a resource.

Patch a resource of an environment that belongs to a project.

Path Parameters
    project string required
    environment string required
    resource string required
Request Body required
    annotations object
    property name* string
    attributes object
    property name* byte
    changeComment string
    computedAttributes object
    property name* byte
    createTime date-time
    description string
    draft boolean

    Default value: false

    endpoints object[]
  • Array [
  • name string required
    url string required
  • ]
  • labels object
    property name* string
    name string
    preview boolean

    Default value: false

    resourceDefinitionMatchingRule object
    id string
    name string
    runLabels object
    property name* string
    status object
    conditions object[]
  • Array [
  • lastUpdateTime date-time
    message string
    reason string required
    status string
    type string
  • ]
  • error boolean
    inactive boolean
    summaryStatus string
    summaryStatusMessage string
    transitioning boolean
    warning boolean
    template object
    id string
    name string
    project object
    id string
    name string
    version string
    type string
    updateTime date-time
Responses

Accepted


Schema
    message string
    status integer

    Default value: 202

    statusText string

    Default value: Accepted

PATCH /v1/projects/:project/environments/:environment/resources/:resource

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
environment — path required
resource — path required
Body required
{
"annotations": {},
"attributes": {},
"changeComment": "string",
"computedAttributes": {},
"createTime": "2024-03-21T10:37:38.952Z",
"description": "string",
"draft": false,
"endpoints": [
{
"name": "string",
"url": "string"
}
],
"labels": {},
"name": "string",
"preview": false,
"resourceDefinitionMatchingRule": {
"id": "string",
"name": "string"
},
"runLabels": {},
"status": {
"conditions": [
{
"lastUpdateTime": "2024-03-21T10:37:38.952Z",
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"error": true,
"inactive": true,
"summaryStatus": "string",
"summaryStatusMessage": "string",
"transitioning": true,
"warning": true
},
"template": {
"id": "string",
"name": "string",
"project": {
"id": "string",
"name": "string"
},
"version": "string"
},
"type": "string",
"updateTime": "2024-03-21T10:37:38.952Z"
}
curl / cURL
curl -L -X PATCH 'https://seal-io.github.io/v1/projects/:project/environments/:environment/resources/:resource' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"annotations": {},
"attributes": {},
"changeComment": "string",
"computedAttributes": {},
"createTime": "2024-03-21T10:37:38.952Z",
"description": "string",
"draft": false,
"endpoints": [
{
"name": "string",
"url": "string"
}
],
"labels": {},
"name": "string",
"preview": false,
"resourceDefinitionMatchingRule": {
"id": "string",
"name": "string"
},
"runLabels": {},
"status": {
"conditions": [
{
"lastUpdateTime": "2024-03-21T10:37:38.952Z",
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"error": true,
"inactive": true,
"summaryStatus": "string",
"summaryStatusMessage": "string",
"transitioning": true,
"warning": true
},
"template": {
"id": "string",
"name": "string",
"project": {
"id": "string",
"name": "string"
},
"version": "string"
},
"type": "string",
"updateTime": "2024-03-21T10:37:38.952Z"
}'