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

Rollback for a resource of an environment that belongs to a project.

Rollback for a resource.

Rollback for a resource of an environment that belongs to a project.

Path Parameters
    project string required
    environment string required
    resource string required
Query Parameters
    revisionID string required
Request Body required
    changeComment string required
Responses

OK


Schema
    message string
    status integer

    Default value: 200

    statusText string

    Default value: OK

POST /v1/projects/:project/environments/:environment/resources/:resource/rollback

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
revisionID — query required
Body required
{
"changeComment": "string"
}
curl / cURL
curl -L -X POST 'https://seal-io.github.io/v1/projects/:project/environments/:environment/resources/:resource/rollback' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"changeComment": "string"
}'