Project Deployment Rule

Create a deployment rule

Create a deployment rule

post/project/{projectId}/deploymentRule

Request

Path parameters

projectIdstring uuid required

Project ID

Request body

namestring required

name is case insensitive

descriptionstring nullable
mode'DEVELOPMENT' | 'PREVIEW' | 'PRODUCTION' | 'STAGING' required
cluster_idstring uuid required
auto_stopboolean
timezonestring required
start_timestring date-time required
stop_timestring date-time required
weekdaysWeekdayEnum[] required
wildcardstring required

wildcard pattern composed of '?' and/or '*' used to target new created environments

Example request

{
  "name": "project-rule",
  "description": "description project rule",
  "mode": "PRODUCTION",
  "timezone": "UTC",
  "start_time": "1970-01-01T08:00:00.000Z",
  "stop_time": "1970-01-01T19:00:00.000Z",
  "weekdays": [
    "MONDAY"
  ]
}

Response

Create deployment rule

idstring uuid required
created_atstring date-time required
updated_atstring date-time
namestring required

name is case insensitive

descriptionstring nullable
mode'DEVELOPMENT' | 'PREVIEW' | 'PRODUCTION' | 'STAGING' required
cluster_idstring uuid required
auto_stopboolean
timezonestring required
start_timestring date-time required
stop_timestring date-time required
weekdaysWeekdayEnum[] required
wildcardstring required

wildcard pattern composed of '?' and/or '*' used to target new created environments

priority_indexinteger

used to select the first deployment rule to match new created environments

Example response

{
  "name": "project-rule",
  "description": "description project rule",
  "mode": "PRODUCTION",
  "timezone": "UTC",
  "start_time": "1970-01-01T08:00:00.000Z",
  "stop_time": "1970-01-01T19:00:00.000Z",
  "weekdays": [
    "MONDAY"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.