×

Description

DeploymentConfigRollback provides the input to rollback generation.

Object Schema

Expand or mouse-over a field for more information about it.

apiVersion:
kind:
name:
spec:
from:
apiVersion:
fieldPath:
kind:
name:
namespace:
resourceVersion:
uid:
includeReplicationMeta:
includeStrategy:
includeTemplate:
includeTriggers:
revision:
updatedAnnotations:
[string]:

Operations

Create a DeploymentConfigRollback

Create a DeploymentConfigRollback

HTTP request

POST /oapi/v1/deploymentconfigrollbacks HTTP/1.1
Authorization: Bearer $TOKEN
Accept: application/json
Connection: close
Content-Type: application/json'

{
  "kind": "DeploymentConfigRollback",
  "apiVersion": "v1",
  ...
}

Curl request

$ curl -k \
    -X POST \
    -d @- \
    -H "Authorization: Bearer $TOKEN" \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    https://$ENDPOINT/oapi/v1/deploymentconfigrollbacks <<'EOF'
{
  "kind": "DeploymentConfigRollback",
  "apiVersion": "v1",
  ...
}
EOF

HTTP body

Parameter Schema

body

v1.DeploymentConfigRollback

Query parameters

Parameter Description

pretty

If 'true', then the output is pretty printed.

Responses

HTTP Code Schema

200 OK

v1.DeploymentConfigRollback

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a DeploymentConfigRollback in a namespace

Create a DeploymentConfigRollback

HTTP request

POST /oapi/v1/namespaces/$NAMESPACE/deploymentconfigrollbacks HTTP/1.1
Authorization: Bearer $TOKEN
Accept: application/json
Connection: close
Content-Type: application/json'

{
  "kind": "DeploymentConfigRollback",
  "apiVersion": "v1",
  ...
}

Curl request

$ curl -k \
    -X POST \
    -d @- \
    -H "Authorization: Bearer $TOKEN" \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/deploymentconfigrollbacks <<'EOF'
{
  "kind": "DeploymentConfigRollback",
  "apiVersion": "v1",
  ...
}
EOF

HTTP body

Parameter Schema

body

v1.DeploymentConfigRollback

Path parameters

Parameter Description

namespace

object name and auth scope, such as for teams and projects

Query parameters

Parameter Description

pretty

If 'true', then the output is pretty printed.

Responses

HTTP Code Schema

200 OK

v1.DeploymentConfigRollback

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf