This API will return all the labels available in the database.
token required | string Authentication token. |
{- "code": 0,
- "status": "string",
- "result": {
- "appId": 0,
- "key": "string",
- "value": "string",
- "propagate": true
}
}
Application basic info, projects and labels
appId required | integer <int64> application id |
token required | string Authentication token. |
{- "code": 0,
- "status": "string",
- "result": {
- "appId": 0,
- "projectId": 0,
- "appName": "string",
- "projectName": "string",
- "labels": [
- {
- "key": "string",
- "value": "string",
- "propagate": true
}
], - "createdOn": "string",
- "createdBy": "string"
}
}
Application info for all types of Helm apps
appId required | string application id |
token required | string Authentication token. |
{- "code": 0,
- "status": "string",
- "result": {
- "appId": 0,
- "projectId": 0,
- "appName": "string",
- "projectName": "string",
- "labels": [
- {
- "key": "string",
- "value": "string",
- "propagate": true
}
], - "createdOn": "string",
- "createdBy": "string"
}
}
Create and clone a job
appName | string Used to give the name of the job |
isJob | boolean States whether its a job or an app |
teamId | integer Used to give project id |
templateId | integer Used to give the id of the job it wants to clone |
Array of objects | |
description | string Used to give the description of the job once it is made. |
{- "appName": "my-job-1",
- "isJob": true,
- "teamId": 1,
- "templateId": 18,
- "labels": [
- {
- "key": "hello",
- "value": "world",
- "propogate": false
}
], - "description": "This is my first Job"
}
{- "id": 25,
- "appName": "my-job-1",
- "material": [
- {
- "name": "string",
- "url": "string",
- "id": 0,
- "gitProviderId": 0,
- "checkoutPath": "string",
- "fetchSubmodules": true,
- "isUsedInCiConfig": true
}
], - "teamId": 1,
- "templateId": 0,
- "description": "This is my first Job",
- "isJob": true
}
Get the list of all the jobs by applying filter
teams | Array of integers used to give the project id |
appStatuses | Array of strings used to give the filter of app ci-build status |
sortBy | string used to give the sort by constraint |
sortOrder | string used to give the sort order |
offset | integer used to give the number from which we want our job (if the offset is 20 means we want list of jobs from 20) |
size | integer used to give the number of jobs we want |
{- "teams": [
- 1,
- 2
], - "appStatuses": [
- "Succeeded",
- "Starting"
], - "sortBy": "appNameSort",
- "sortOrder": "ASC",
- "offset": 0,
- "size": 20
}
{- "jobContainers": [
- {
- "jobId": 0,
- "jobName": "string",
- "description": "string",
- "ciPipelines": [
- {
- "ciPipelineId": 0,
- "status": "string",
- "lastRunAt": "2019-08-24T14:15:22Z",
- "lastSuccessAt": "2019-08-24T14:15:22Z"
}
]
}
], - "jobCount": 0
}
deployed chart listing, with search filters
envs | Array of strings environment ids |
chartRepoId | Array of strings chart repo ids |
appStoreName | string chart name |
appName | string chart name as app name for devtron |
onlyDeprecated | boolean show only deprecated or all |
offset | integer offset for result set |
size | integer total request size. |
token required | string Authentication token. |
{- "code": 0,
- "status": "string",
- "result": [
- {
- "installedAppId": 0,
- "environmentId": 0,
- "installedAppVersionId": 0,
- "appStoreApplicationVersionId": 0,
- "appStoreApplicationName": "string",
- "chartName": "string",
- "icon": "string",
- "status": "string",
- "appName": "string",
- "environmentName": "string",
- "deployedAt": "string",
- "deployedBy": "string",
- "readme": "string",
- "deprecated": true
}
]
}
Used to fetch notes.txt for helm charts deployed via gitOps
env-id required | integer it is an environment id of app |
installed-app-id required | integer it is a installed application id |
token required | string Authentication token. |
{- "notes": "string"
}
list of namespaces group by clusters
appName | string Example: appName=abc app name, wildcard query |
teamId | integer Example: teamId=1 project id |
token required | string Authentication token. |
{- "code": 0,
- "status": "string",
- "result": [ ]
}
create new application
json as request body
appName required | string app name |
teamId required | integer project id |
templateId required | integer reference app id, used for clone, set default value 0 for blank app. |
Array of objects (AppLabel) each apps may have multiple labels. these are optional. |
{- "appName": "string",
- "teamId": 0,
- "templateId": 0,
- "labels": [
- {
- "key": "string",
- "value": "string",
- "propagate": true
}
]
}
{- "code": 0,
- "status": "string",
- "result": {
- "id": 0,
- "appName": "string",
- "teamId": 0,
- "templateId": 0,
- "labels": [
- {
- "key": "string",
- "value": "string",
- "propagate": true
}
]
}
}
update application projects and labels
json as request body
appName required | string app name |
teamId required | integer project id |
templateId required | integer reference app id, used for clone, set default value 0 for blank app. |
Array of objects (AppLabel) each apps may have multiple labels. these are optional. |
{- "appName": "string",
- "teamId": 0,
- "templateId": 0,
- "labels": [
- {
- "key": "string",
- "value": "string",
- "propagate": true
}
]
}
{- "code": 0,
- "status": "string",
- "result": {
- "id": 0,
- "appName": "string",
- "teamId": 0,
- "templateId": 0,
- "labels": [
- {
- "key": "string",
- "value": "string",
- "propagate": true
}
]
}
}
app listing, collection of deployed applications or undeployed or incomplete configured apps.
json as request body
appNameSearch | string app name search, wildcard match |
offset required | integer offset |
size required | integer result size |
sortBy | string sort by |
sortOrder | string sort order |
environments | Array of integers environment id |
teams | Array of integers team id, teams ids are projects ids |
labels | Array of strings app labels |
statuses | Array of strings status |
{- "appNameSearch": "string",
- "offset": 0,
- "size": 0,
- "sortBy": "string",
- "sortOrder": "string",
- "environments": [
- 0
], - "teams": [
- 0
], - "labels": [
- "string"
], - "statuses": [
- "string"
]
}
{- "code": 0,
- "status": "string",
- "result": {
- "appCount": 0,
- "appContainers": [
- {
- "appId": 0,
- "appName": "string",
- "environments": [
- {
- "appId": 0,
- "appName": "string",
- "cdStageStatus": "string",
- "dataSource": "string",
- "ciArtifactId": 0,
- "deleted": true,
- "environmentId": 0,
- "environmentName": "string",
- "status": "string",
- "appStatus": "string",
- "postStageStatus": "string",
- "preStageStatus": "string",
- "lastDeployedTime": "string",
- "materialInfo": [
- { }
]
}
]
}
], - "deploymentGroup": {
- "id": 0,
- "ciPipelineId": 0,
- "environmentId": 0,
- "appCount": 0,
- "name": "string",
- "noOfApps": "string"
}
}
}
update project for app
json as request body
teamId required | integer project id |
appId required | Array of integers team id, teams ids are projects ids |
{- "teamId": 0,
- "appId": [
- 0
]
}
{- "code": 0,
- "status": "string",
- "result": {
- "teamId": 0,
- "appId": [
- 0
]
}
}
Retrieves a list of application labels. By default, returns all labels.
Use the showPropagatedOnly
parameter to filter for labels where propagate = true.
Required Token Permission:
showPropagatedOnly | boolean Default: false If true, only returns labels where propagate = true. If false or not provided, all labels are returned. |
token required | string Authentication token. |
Example response when showPropagatedOnly is false or not provided
{- "code": 200,
- "status": "OK",
- "result": [
- {
- "key": "environment",
- "value": "production",
- "propagate": true,
- "appId": 1234,
- "appName": "web-service"
}, - {
- "key": "team",
- "value": "backend",
- "propagate": false,
- "appId": 1234,
- "appName": "web-service"
}
]
}
Returns Readme for bulk update for different resource in the url
apiVersion required | string apiVersion of the resource |
kind required | string kind of the resource |
token required | string Authentication token. |
{- "resource": "string",
- "script": {
- "apiVersion": [
- "v1beta1"
], - "kind": [
- "application"
], - "spec": {
- "includes": {
- "names": [
- "string"
]
}, - "excludes": {
- "names": [
- "string"
]
}, - "envIds": [
- 0
], - "global": true,
- "DeploymentTemplate": {
- "spec": {
- "patchData": "string"
}
}, - "ConfigMaps": {
- "names": [
- "string"
], - "tasks": {
- "patchData": "string"
}
}, - "Secrets": {
- "names": [
- "string"
], - "tasks": {
- "patchData": "string"
}
}
}
}, - "readMe": "string"
}
Returns details(id, name, envId) of all apps to be impacted with bulk update
A JSON object containing information by which apps will be filtered
apiVersion | string Api version from url |
kind | string Kind |
object (BulkUpdatePayload) |
{- "apiVersion": [
- "v1beta1"
], - "kind": [
- "application"
], - "spec": {
- "includes": {
- "names": [
- "string"
]
}, - "excludes": {
- "names": [
- "string"
]
}, - "envIds": [
- 0
], - "global": true,
- "DeploymentTemplate": {
- "spec": {
- "patchData": "string"
}
}, - "ConfigMaps": {
- "names": [
- "string"
], - "tasks": {
- "patchData": "string"
}
}, - "Secrets": {
- "names": [
- "string"
], - "tasks": {
- "patchData": "string"
}
}
}
}
[- {
- "deploymentTemplate": [
- {
- "appId": 0,
- "appName": "string",
- "envId": "string"
}
], - "configMap": [
- {
- "appId": 0,
- "appName": "string",
- "envId": "string",
- "names": [
- "string"
]
}
], - "secret": [
- {
- "appId": 0,
- "appName": "string",
- "envId": "string",
- "names": [
- "string"
]
}
]
}
]
Bulk Hibernates applications
A JSON object containing information about applications and environments to hibernate.
object (NameIncludesExcludes) | |
object (NameIncludesExcludes) | |
envIds | Array of integers All Env Id's for the bulk action |
appIds | Array of integers All App Id's for the bulk action (alternative to includes/excludes by name) |
projectIds | Array of integers All Project Id's for the bulk action |
{- "includes": {
- "names": [
- "string"
]
}, - "excludes": {
- "names": [
- "string"
]
}, - "envIds": [
- 0
], - "appIds": [
- 0
], - "projectIds": [
- 0
]
}
{- "message": [
- "string"
], - "failure": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
], - "successful": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
]
}
Bulk Un-Hibernates applications
A JSON object containing information about applications and environments to un-hibernate.
object (NameIncludesExcludes) | |
object (NameIncludesExcludes) | |
envIds | Array of integers All Env Id's for the bulk action |
appIds | Array of integers All App Id's for the bulk action (alternative to includes/excludes by name) |
projectIds | Array of integers All Project Id's for the bulk action |
{- "includes": {
- "names": [
- "string"
]
}, - "excludes": {
- "names": [
- "string"
]
}, - "envIds": [
- 0
], - "appIds": [
- 0
], - "projectIds": [
- 0
]
}
{- "message": [
- "string"
], - "failure": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
], - "successful": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
]
}
Bulk Triggers deployment of applications
A JSON object containing information for bulk deployment.
object (NameIncludesExcludes) | |
object (NameIncludesExcludes) | |
envIds required | Array of integers All Env Id's for the bulk deployment |
appIds | Array of integers All App Id's for the bulk deployment (alternative to includes/excludes by name) |
projectIds | Array of integers All Project Id's for the bulk deployment |
artifactId | integer ID of the CI artifact to be deployed |
releaseId | integer ID of the release to be deployed |
deploymentStrategy | string Deployment strategy to use (e.g., blue-green, canary, recreate) |
{- "includes": {
- "names": [
- "string"
]
}, - "excludes": {
- "names": [
- "string"
]
}, - "envIds": [
- 0
], - "appIds": [
- 0
], - "projectIds": [
- 0
], - "artifactId": 0,
- "releaseId": 0,
- "deploymentStrategy": "string"
}
{- "message": [
- "string"
], - "failure": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
], - "successful": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
]
}
Bulk Triggers build of applications
A JSON object containing information for bulk build trigger.
object (NameIncludesExcludes) | |
object (NameIncludesExcludes) | |
appIds | Array of integers All App Id's for the bulk build trigger (alternative to includes/excludes by name) |
projectIds | Array of integers All Project Id's for the bulk build trigger |
ciPipelineId required | integer ID of the CI pipeline to trigger builds for |
{- "includes": {
- "names": [
- "string"
]
}, - "excludes": {
- "names": [
- "string"
]
}, - "appIds": [
- 0
], - "projectIds": [
- 0
], - "ciPipelineId": 0
}
{- "message": [
- "string"
], - "failure": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
], - "successful": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
]
}
Bulk Updates (Edit) all impacted apps. This endpoint can be used for bulk editing application configurations like deployment templates, configmaps, and secrets.
A JSON object containing information about update changes and by which apps will be filtered for bulk editing.
apiVersion | string Api version from url |
kind | string Kind |
object (BulkUpdatePayload) |
{- "apiVersion": [
- "v1beta1"
], - "kind": [
- "application"
], - "spec": {
- "includes": {
- "names": [
- "string"
]
}, - "excludes": {
- "names": [
- "string"
]
}, - "envIds": [
- 0
], - "global": true,
- "DeploymentTemplate": {
- "spec": {
- "patchData": "string"
}
}, - "ConfigMaps": {
- "names": [
- "string"
], - "tasks": {
- "patchData": "string"
}
}, - "Secrets": {
- "names": [
- "string"
], - "tasks": {
- "patchData": "string"
}
}
}
}
{- "deploymentTemplate": {
- "message": [
- "string"
], - "failure": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
], - "successful": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "message": "string"
}
]
}, - "configMap": {
- "message": [
- "string"
], - "failure": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "names": [
- "string"
], - "message": "string"
}
], - "successful": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "names": [
- "string"
], - "message": "string"
}
]
}, - "secret": {
- "message": [
- "string"
], - "failure": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "names": [
- "string"
], - "message": "string"
}
], - "successful": [
- {
- "appId": 0,
- "appName": "string",
- "envId": 0,
- "names": [
- "string"
], - "message": "string"
}
]
}
}
SSO Login Configuration object
name required | string Type of auth ie google/github |
label | string or null |
url required | string or null <url> Devtron Dashboard Url |
config required | object Configuration for the SSO provider (Dex connector config). Structure varies. |
active required | boolean |
{- "name": "string",
- "label": "string",
- "config": { },
- "active": true
}
{- "id": 0,
- "name": "string",
- "label": "string",
- "config": { },
- "active": true
}
SSO Login Configuration object
name required | string Type of auth ie google/github |
label | string or null |
url required | string or null <url> Devtron Dashboard Url |
config required | object Configuration for the SSO provider (Dex connector config). Structure varies. |
active required | boolean |
{- "name": "string",
- "label": "string",
- "config": { },
- "active": true
}
{- "id": 0,
- "name": "string",
- "label": "string",
- "config": { },
- "active": true
}
[- {
- "id": 0,
- "name": "string",
- "label": "string",
- "config": { },
- "active": true
}
]
id required | integer <int32> Identifier (typically integer ID). |
token required | string Authentication token. |
{- "id": 0,
- "name": "string",
- "label": "string",
- "config": { },
- "active": true
}
name required | string Name of the SSO configuration. |
token required | string Authentication token. |
{- "id": 0,
- "name": "string",
- "label": "string",
- "config": { },
- "active": true
}
searchKey | string Search term. |
sortOrder | string Enum: "ASC" "DESC" Sort order (ASC or DESC). |
sortBy | string Enum: "email_id" "last_login" Field to sort users by (e.g., email_id, last_login). |
offset | integer <int32> >= 0 Offset for pagination. |
size | integer <int32> >= 1 Default: 20 Number of items per page. |
token required | string Authentication token. |
{- "users": [
- {
- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
], - "totalCount": 0
}
User Information object
id | integer <int32> User ID. Should not be set for new user creation if auto-generated. Not allowed to be system-admin-userid (1 or 2) by validation. |
email_id required | string <email> User's email address. Cannot be system admin user email by validation. |
roles | Array of strings or null List of direct roles assigned to the user (deprecated in favor of roleFilters and userRoleGroups). |
Array of objects (RoleFilter) | |
groups | Array of strings or null Deprecated field for user groups. Use userRoleGroups instead. |
Array of objects or null (UserRoleGroup) | |
superAdmin | boolean Indicates if the user has super admin privileges. |
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true
}
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
User Information object
id | integer <int32> User ID. Should not be set for new user creation if auto-generated. Not allowed to be system-admin-userid (1 or 2) by validation. |
email_id required | string <email> User's email address. Cannot be system admin user email by validation. |
roles | Array of strings or null List of direct roles assigned to the user (deprecated in favor of roleFilters and userRoleGroups). |
Array of objects (RoleFilter) | |
groups | Array of strings or null Deprecated field for user groups. Use userRoleGroups instead. |
Array of objects or null (UserRoleGroup) | |
superAdmin | boolean Indicates if the user has super admin privileges. |
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true
}
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
[- {
- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
]
User Information object
id | integer <int32> User ID. Should not be set for new user creation if auto-generated. Not allowed to be system-admin-userid (1 or 2) by validation. |
email_id required | string <email> User's email address. Cannot be system admin user email by validation. |
roles | Array of strings or null List of direct roles assigned to the user (deprecated in favor of roleFilters and userRoleGroups). |
Array of objects (RoleFilter) | |
groups | Array of strings or null Deprecated field for user groups. Use userRoleGroups instead. |
Array of objects or null (UserRoleGroup) | |
superAdmin | boolean Indicates if the user has super admin privileges. |
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true
}
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
User Information object
id | integer <int32> User ID. Should not be set for new user creation if auto-generated. Not allowed to be system-admin-userid (1 or 2) by validation. |
email_id required | string <email> User's email address. Cannot be system admin user email by validation. |
roles | Array of strings or null List of direct roles assigned to the user (deprecated in favor of roleFilters and userRoleGroups). |
Array of objects (RoleFilter) | |
groups | Array of strings or null Deprecated field for user groups. Use userRoleGroups instead. |
Array of objects or null (UserRoleGroup) | |
superAdmin | boolean Indicates if the user has super admin privileges. |
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true
}
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
id required | integer <int32> Identifier (typically integer ID). |
token required | string Authentication token. |
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
id required | integer <int32> Identifier (typically integer ID). |
token required | string Authentication token. |
{- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
[- {
- "id": 0,
- "email_id": "user@example.com",
- "roles": [
- "string"
], - "accessToken": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "groups": [
- "string"
], - "userRoleGroups": [
- {
- "roleGroup": {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
}
], - "superAdmin": true,
- "lastLoginTime": "2019-08-24T14:15:22Z"
}
]
searchKey | string Search term. |
sortOrder | string Enum: "ASC" "DESC" Sort order (ASC or DESC). |
sortBy | string Value: "name" Field to sort role groups by (e.g., name). |
offset | integer <int32> >= 0 Offset for pagination. |
size | integer <int32> >= 1 Default: 20 Number of items per page. |
token required | string Authentication token. |
{- "roleGroups": [
- {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
], - "totalCount": 0
}
Role Group object
name required | string Name of the Role group |
description | string or null Descrition fo Role group |
required | Array of objects (RoleFilter) Role filters |
superAdmin | boolean Indicates if this role group grants super admin privileges. |
{- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
Role Group object
name required | string Name of the Role group |
description | string or null Descrition fo Role group |
required | Array of objects (RoleFilter) Role filters |
superAdmin | boolean Indicates if this role group grants super admin privileges. |
{- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
]
Role Group object
name required | string Name of the Role group |
description | string or null Descrition fo Role group |
required | Array of objects (RoleFilter) Role filters |
superAdmin | boolean Indicates if this role group grants super admin privileges. |
{- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
Role Group object
name required | string Name of the Role group |
description | string or null Descrition fo Role group |
required | Array of objects (RoleFilter) Role filters |
superAdmin | boolean Indicates if this role group grants super admin privileges. |
{- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
{- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
id required | integer <int32> Identifier (typically integer ID). |
token required | string Authentication token. |
{- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
id required | integer <int32> Identifier (typically integer ID). |
token required | string Authentication token. |
{- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
{- "roleGroups": [
- {
- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
], - "totalCount": 0
}
name required | string Name of the role group to search for. |
token required | string Authentication token. |
{- "id": 0,
- "name": "string",
- "description": "string",
- "roleFilters": [
- {
- "entity": "apps",
- "team": "string",
- "entityName": "string",
- "environment": "string",
- "action": "string",
- "accessType": "devtron-app",
- "cluster": "string",
- "namespace": "string",
- "group": "string",
- "kind": "string",
- "resource": "string",
- "workflow": "string"
}
], - "superAdmin": true
}
Authenticates a user and returns a session token.
Username and password for login.
username required | string Username |
password required | string <password> Password |
{- "username": "admin",
- "password": "password123"
}
{- "token": "string"
}
Creates default policies and roles based on team, app, and environment. This is a specialized endpoint.
team required | string Project Id |
app required | string Application Id |
env required | string Environment Id |
token required | string Authentication token. |
{- "code": 0,
- "status": "string",
- "result": { },
- "errors": [
- {
- "userMessage": "string",
- "internalMessage": "string"
}
]
}
Provides a list of all clusters and the environments within each.
[- {
- "id": 0,
- "cluster_name": "string",
- "server_url": "string",
- "active": true,
- "environments": [
- {
- "environmentId": 0,
- "environmentName": "string",
- "environmentIdentifier": "string",
- "namespace": "string",
- "active": true
}
], - "prometheus_url": "string",
- "k8sVersion": "string"
}
]
Provides a list of all environments for a given cluster ID.
cluster_id required | integer ID of the cluster |
token required | string Authentication token. |
[- {
- "environmentId": 0,
- "environmentName": "string",
- "environmentIdentifier": "string",
- "namespace": "string",
- "active": true
}
]
Delete an existing cluster.
A JSON object containing the cluster config (primarily ID is used for deletion)
id | integer Id of the cluster |
cluster_name | string Name of the cluster |
server_url | string Server Url of the cluster |
prometheus_url | string Prometheus Endpoint of cluster |
active | boolean |
object | |
object (PrometheusAuthGet) | |
Array of objects (DefaultClusterComponentGet) | |
k8sversion | string K8s version of the cluster |
{- "id": 0,
- "cluster_name": "string",
- "server_url": "string",
- "prometheus_url": "string",
- "active": true,
- "config": {
- "bearer_token": "string"
}, - "prometheusAuth": {
- "userName": "string",
- "password": "string",
- "tlsClientCert": "string",
- "tlsClientKey": "string"
}, - "defaultClusterComponents": [
- {
- "name": "string",
- "appId": 0,
- "installedAppId": 0,
- "envId": 0,
- "envname": "string",
- "status": "string"
}
], - "k8sversion": "string"
}
{- "message": "Cluster deleted successfully."
}
Update an existing cluster's configuration.
A JSON object containing the cluster config
id | integer Id of the cluster |
cluster_name | string Name of the cluster |
server_url | string Server Url of the cluster |
prometheus_url | string Prometheus Endpoint of cluster |
active | boolean |
object | |
object (PrometheusAuthGet) | |
Array of objects (DefaultClusterComponentGet) | |
k8sversion | string K8s version of the cluster |
{- "id": 0,
- "cluster_name": "string",
- "server_url": "string",
- "prometheus_url": "string",
- "active": true,
- "config": {
- "bearer_token": "string"
}, - "prometheusAuth": {
- "userName": "string",
- "password": "string",
- "tlsClientCert": "string",
- "tlsClientKey": "string"
}, - "defaultClusterComponents": [
- {
- "name": "string",
- "appId": 0,
- "installedAppId": 0,
- "envId": 0,
- "envname": "string",
- "status": "string"
}
], - "k8sversion": "string"
}
{- "id": 0,
- "cluster_name": "string",
- "server_url": "string",
- "prometheus_url": "string",
- "active": true,
- "config": {
- "bearer_token": "string"
}, - "prometheusAuth": {
- "userName": "string",
- "password": "string",
- "tlsClientCert": "string",
- "tlsClientKey": "string"
}, - "defaultClusterComponents": [
- {
- "name": "string",
- "appId": 0,
- "installedAppId": 0,
- "envId": 0,
- "envname": "string",
- "status": "string"
}
], - "k8sversion": "string"
}
Get details of a specific cluster by ID.
id required | integer cluster id. |
token required | string Authentication token. |
{- "id": 0,
- "cluster_name": "string",
- "server_url": "string",
- "prometheus_url": "string",
- "active": true,
- "config": {
- "bearer_token": "string"
}, - "prometheusAuth": {
- "userName": "string",
- "password": "string",
- "tlsClientCert": "string",
- "tlsClientKey": "string"
}, - "defaultClusterComponents": [
- {
- "name": "string",
- "appId": 0,
- "installedAppId": 0,
- "envId": 0,
- "envname": "string",
- "status": "string"
}
], - "k8sversion": "string"
}
Validate a cluster configuration using kubeconfig.
required | object (Kubeconfig) Kube config of target cluster |
{- "kubeconfig": {
- "config": "string"
}
}
{- "userInfos": {
- "property1": {
- "userName": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "errorInConnecting": "string"
}, - "property2": {
- "userName": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "errorInConnecting": "string"
}
}, - "id": 0,
- "cluster_name": "string",
- "server_url": "string",
- "prometheus_url": "string",
- "active": true,
- "config": {
- "bearer_token": "string",
- "tls_key": "string",
- "cert_data": "string",
- "cert_auth_data": "string"
}, - "prometheusAuth": {
- "type": "basic",
- "basic": {
- "username": "string",
- "password": "string"
}, - "bearer": {
- "token": "string"
}
}, - "defaultClusterComponent": [
- {
- "id": "string",
- "name": "string",
- "version": "string",
- "status": "string",
- "configuration": {
- "type": "yaml"
}
}
], - "agentInstallationStage": 0,
- "k8sVersion": "string",
- "userName": "string",
- "insecure-skip-tls-verify": true
}
Save configurations for multiple clusters.
object | |
id | integer Cluster Id |
cluster_name required | string Name of the cluster |
server_url required | string Server Url of the cluster |
prometheus_url | string Prometheus Endpoint of the cluster |
active | boolean |
object | |
object (PrometheusAuthAdd) | |
Array of objects (DefaultClusterComponentAdd) | |
agentInstallationStage | integer |
k8sVersion | string K8s version of the cluster |
userName | string |
insecure-skip-tls-verify | boolean |
[- {
- "userInfos": {
- "property1": {
- "userName": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "errorInConnecting": "string"
}, - "property2": {
- "userName": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "errorInConnecting": "string"
}
}, - "id": 0,
- "cluster_name": "string",
- "server_url": "string",
- "prometheus_url": "string",
- "active": true,
- "config": {
- "bearer_token": "string",
- "tls_key": "string",
- "cert_data": "string",
- "cert_auth_data": "string"
}, - "prometheusAuth": {
- "type": "basic",
- "basic": {
- "username": "string",
- "password": "string"
}, - "bearer": {
- "token": "string"
}
}, - "defaultClusterComponent": [
- {
- "id": "string",
- "name": "string",
- "version": "string",
- "status": "string",
- "configuration": {
- "type": "yaml"
}
}
], - "agentInstallationStage": 0,
- "k8sVersion": "string",
- "userName": "string",
- "insecure-skip-tls-verify": true
}
]
[- {
- "userInfos": {
- "property1": {
- "userName": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "errorInConnecting": "string"
}, - "property2": {
- "userName": "string",
- "config": {
- "property1": "string",
- "property2": "string"
}, - "errorInConnecting": "string"
}
}, - "id": 0,
- "cluster_name": "string",
- "server_url": "string",
- "prometheus_url": "string",
- "active": true,
- "config": {
- "bearer_token": "string",
- "tls_key": "string",
- "cert_data": "string",
- "cert_auth_data": "string"
}, - "prometheusAuth": {
- "type": "basic",
- "basic": {
- "username": "string",
- "password": "string"
}, - "bearer": {
- "token": "string"
}
}, - "defaultClusterComponent": [
- {
- "id": "string",
- "name": "string",
- "version": "string",
- "status": "string",
- "configuration": {
- "type": "yaml"
}
}
], - "agentInstallationStage": 0,
- "k8sVersion": "string",
- "userName": "string",
- "insecure-skip-tls-verify": true
}
]
Create a new environment within a cluster.
Environment details
environment_name required | string <= 50 characters Name of the Environment |
cluster_id required | integer Id of the target Cluster |
active | boolean Default: true |
default | boolean Default: false |
prometheus_endpoint | string Prometheus Endpoint of cluster |
namespace | string <= 50 characters Name of the Namespace which will point to environment |
isClusterCdActive | boolean |
description | string <= 40 characters |
isVirtualEnvironment | boolean Default: false |
allowedDeploymentTypes | Array of strings Items Enum: "helm" "argo_cd" |
{- "environment_name": "string",
- "cluster_id": 0,
- "active": true,
- "default": false,
- "prometheus_endpoint": "string",
- "namespace": "string",
- "isClusterCdActive": true,
- "description": "string",
- "isVirtualEnvironment": false,
- "allowedDeploymentTypes": [
- "helm"
]
}
{- "id": 0,
- "environment_name": "string",
- "cluster_id": 0,
- "cluster_name": "string",
- "active": true,
- "default": true,
- "prometheus_endpoint": "string",
- "namespace": "string",
- "isClusterCdActive": true,
- "environmentIdentifier": "string",
- "description": "string",
- "appCount": 0,
- "isVirtualEnvironment": true,
- "allowedDeploymentTypes": [
- "helm"
]
}
Update an existing environment.
Environment details to update
id required | integer |
environment_name required | string <= 50 characters Name of the Environment |
cluster_id required | integer Id of the target Cluster |
active | boolean |
default | boolean |
prometheus_endpoint | string Prometheus Endpoint of cluster |
namespace | string <= 50 characters Name of the Namespace pointing to environment |
isClusterCdActive | boolean |
description | string <= 40 characters |
isVirtualEnvironment | boolean |
allowedDeploymentTypes | Array of strings Items Enum: "helm" "argo_cd" |
{- "id": 0,
- "environment_name": "string",
- "cluster_id": 0,
- "active": true,
- "default": true,
- "prometheus_endpoint": "string",
- "namespace": "string",
- "isClusterCdActive": true,
- "description": "string",
- "isVirtualEnvironment": true,
- "allowedDeploymentTypes": [
- "helm"
]
}
{- "id": 0,
- "environment_name": "string",
- "cluster_id": 0,
- "cluster_name": "string",
- "active": true,
- "default": true,
- "prometheus_endpoint": "string",
- "namespace": "string",
- "isClusterCdActive": true,
- "environmentIdentifier": "string",
- "description": "string",
- "appCount": 0,
- "isVirtualEnvironment": true,
- "allowedDeploymentTypes": [
- "helm"
]
}
Get detailed information for a specific environment by its ID.
id required | integer ID of the environment |
token required | string Authentication token. |
{- "id": 0,
- "environment_name": "string",
- "cluster_id": 0,
- "cluster_name": "string",
- "active": true,
- "default": true,
- "prometheus_endpoint": "string",
- "namespace": "string",
- "isClusterCdActive": true,
- "environmentIdentifier": "string",
- "description": "string",
- "appCount": 0,
- "isVirtualEnvironment": true,
- "allowedDeploymentTypes": [
- "helm"
]
}
Delete an existing environment using POST method.
A JSON object containing the env config (primarily ID is used for deletion)
id | integer |
environment_name | string Name of the Environment |
cluster_id | integer Id of the target Cluster |
cluster_name | string Name of the cluster |
active | boolean |
default | boolean |
prometheus_endpoint | string Prometheus Endpoint of cluster |
namespace | string Name of the Namespace pointing to environment |
isClusterCdActive | boolean |
environmentIdentifier | string |
description | string |
appCount | integer |
isVirtualEnvironment | boolean |
allowedDeploymentTypes | Array of strings Items Enum: "helm" "argo_cd" |
{- "id": 0,
- "environment_name": "string",
- "cluster_id": 0,
- "cluster_name": "string",
- "active": true,
- "default": true,
- "prometheus_endpoint": "string",
- "namespace": "string",
- "isClusterCdActive": true,
- "environmentIdentifier": "string",
- "description": "string",
- "appCount": 0,
- "isVirtualEnvironment": true,
- "allowedDeploymentTypes": [
- "helm"
]
}
{- "message": "Environment deleted successfully."
}
change the deployment template for an app and environment
envId | integer Environment Id |
appId | integer Application Id |
targetChartRefId | integer Chart ref Id of template |
{- "envId": 0,
- "appId": 0,
- "targetChartRefId": 0
}
Clones an application workflow from a source environment to a target environment
A JSON object containing the details required to clone the workflow
appId | integer ID of the application |
appName | string Name of the application |
sourceEnvironmentId | integer ID of the source environment |
sourceEnvironmentName | string Name of the source environment |
targetEnvironmentId | integer ID of the target environment |
targetEnvironmentName | string Name of the target environment |
cloneEnvInSameWorkflow | boolean Flag indicating if the environment should be cloned in the same workflow |
{- "appId": 0,
- "appName": "string",
- "sourceEnvironmentId": 0,
- "sourceEnvironmentName": "string",
- "targetEnvironmentId": 0,
- "targetEnvironmentName": "string",
- "cloneEnvInSameWorkflow": true
}
{- "code": 200,
- "status": "OK",
- "result": {
- "status": "SUCCESS",
- "message": "string"
}
}
Retrieves the deployment history for a specific CD pipeline based on various filter criteria.
Retrieves the deployment history for a specific CD pipeline based on various filter criteria.
filterCriteria required | Array of strings Filter criteria for deployment history. Example:
|
offset | integer The starting point for fetching records (pagination). |
limit | integer The number of records to return (pagination). |
token required | string Authentication token. |
{- "code": 200,
- "status": "OK",
- "result": {
- "cdWorkflows": [
- {
- "id": 19752,
- "cd_workflow_id": 19561,
- "name": "cd-1064-nu4s",
- "status": "Failed",
- "pod_status": "",
- "message": "Unable to continue with install: could not get information about the resource Job \"\" in namespace \"devtroncd\": resource name may not be empty",
- "started_on": "2024-07-25T08:26:21.792068Z",
- "finished_on": "2024-07-25T08:26:23.855384Z",
- "pipeline_id": 2082,
- "namespace": "devtron-cd",
- "log_file_path": "",
- "triggered_by": 23,
- "email_id": "deepak@devtron.ai",
- "image": "devtroninc.azurecr.io/test:8a0c2298-fc94fa4b-956-18655",
- "ci_artifact_id": 14593,
- "workflow_type": "DEPLOY",
- "blobStorageEnabled": true,
- "userApprovalMetadata": null,
- "gitTriggers": {
- "1013": {
- "Commit": "8a0c22983ae7acae10abe7569026ae25d889e159",
- "Author": "jatin-jangir-0220 <122791251+jatin-jangir-0220@users.noreply.github.com>",
- "Date": "2024-04-29T18:49:39Z",
- "Message": "Update Dockerfile (#19)\n\n",
- "Changes": null,
- "WebhookData": {
- "id": 0,
- "eventActionType": "",
- "data": null
}, - "CiConfigureSourceValue": "main",
- "GitRepoName": "casbin-enterprise",
- "CiConfigureSourceType": "SOURCE_TYPE_BRANCH_FIXED"
}, - "2072": {
- "Commit": "fc94fa4bad21460e822ce896b5166273aa3df1a8",
- "Author": "Gireesh Naidu <111440205+gireesh-naidu@users.noreply.github.com>",
- "Date": "2024-07-23T18:13:18+05:30",
- "Message": "fix: getting 500 while updating the branch of linked CI (#1424)\n\n* fix: sync ci pipeline materials for linked pipelines\r\n\r\n* fix: sync ci pipeline materials for linked pipelines\r\n\r\n* fix: null column fix\r\n\r\n* fix: null column fix\r\n\r\n* fix: able to delete ci pipeline though it has linked ci's using API",
- "Changes": null,
- "WebhookData": {
- "id": 0,
- "eventActionType": "",
- "data": null
}, - "CiConfigureSourceValue": "main",
- "GitRepoName": "devtron-enterprise",
- "CiConfigureSourceType": "SOURCE_TYPE_BRANCH_FIXED"
}
}, - "ciMaterials": [
- {
- "id": 1013,
- "gitMaterialId": 411,
- "gitMaterialUrl": "",
- "gitMaterialName": "casbin-enterprise",
- "type": "SOURCE_TYPE_BRANCH_FIXED",
- "value": "main",
- "active": true,
- "lastFetchTime": "0001-01-01T00:00:00Z",
- "isRepoError": false,
- "repoErrorMsg": "",
- "isBranchError": false,
- "branchErrorMsg": "",
- "regex": ""
}, - {
- "id": 2072,
- "gitMaterialId": 1286,
- "gitMaterialUrl": "",
- "gitMaterialName": "devtron-enterprise",
- "type": "SOURCE_TYPE_BRANCH_FIXED",
- "value": "main",
- "active": true,
- "lastFetchTime": "0001-01-01T00:00:00Z",
- "isRepoError": false,
- "repoErrorMsg": "",
- "isBranchError": false,
- "branchErrorMsg": "",
- "regex": ""
}
], - "imageReleaseTags": null,
- "imageComment": null,
- "referenceCdWorkflowRunnerId": 0,
- "appliedFilters": null,
- "appliedFiltersState": 0,
- "appliedFiltersTimestamp": "0001-01-01T00:00:00Z",
- "promotionApprovalMetadata": null,
- "runSource": {
- "kind": "release",
- "version": "alpha1",
- "id": 203,
- "identifier": "qa-releases-track-0.0.2",
- "releaseVersion": "0.0.2",
- "name": "deepak-qa-release",
- "releaseTrackName": "qa-releases-track"
}, - "targetConfig": {
- "tenantId": "qa-devtroncd-x",
- "tenantName": "QA Devtron Env",
- "installationId": "qa-devtroncd-2",
- "installationName": "qa-devtroncd-2",
- "releaseChannelId": "beta",
- "releaseChannelName": "beta-channel"
}
}
]
}
}
fetch detail of a history on the basis of the history component and it's name
appId required | integer |
pipelineId required | integer |
id required | integer |
historyComponent required | string Enum: "DEPLOYMENT_TEMPLATE" "CONFIGMAP" "SECRET" "PIPELINE_STRATEGY" |
historyComponentName | string name of config-map, secret |
token required | string Authentication token. |
{- "values": [
- {
- "fieldName": {
- "displayName": "string",
- "value": "string"
}
}
], - "codeEditorValue": {
- "displayName": "string",
- "value": "string"
}
}
fetch deployed history details list
appId required | integer |
pipelineId required | integer |
historyComponent required | string Enum: "DEPLOYMENT_TEMPLATE" "CONFIGMAP" "SECRET" "PIPELINE_STRATEGY" |
historyComponentName | string name of config-map, secret |
baseConfigurationId required | integer id of base configuration |
token required | string Authentication token. |
[- {
- "id": 0,
- "deployedOn": "string",
- "deployedBy": "string",
- "deploymentStatus": "string"
}
]
fetch all deployed configurations history (deployment template, pipeline strategy, configmaps, secrets)
appId required | integer |
pipelineId required | integer |
wfrId required | integer |
token required | string Authentication token. |
[- [
- {
- "id": 0,
- "name": "DEPLOYMENT_TEMPLATE",
- "childList": [
- "string"
]
}
]
]
This API is used for fetching the manifest of a specified Kubernetes resource.
JSON payload specifying the resource to fetch.
appId | string Application ID. Used when the request is context-specific to an application. |
clusterId | number Cluster ID. Used when the request is for a direct cluster resource (appId is not supplied). |
object (K8sRequestObject) |
{- "appId": "my-app/env-1",
- "clusterId": 1,
- "k8sRequest": {
- "resourceIdentifier": {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "default",
- "name": "my-deployment"
}, - "podLogsRequest": {
- "containerName": "my-container"
}, - "patch": "[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]"
}
}
{- "code": 0,
- "status": "string",
- "result": {
- "manifestResponse": {
- "recommendedManifest": { },
- "manifest": { }
}, - "secretViewAccess": true
}
}
This API is used for editing the manifest of a specified Kubernetes resource.
JSON payload containing the resource identifier and the patch.
appId | string Application ID. Used when the request is context-specific to an application. |
clusterId | number Cluster ID. Used when the request is for a direct cluster resource (appId is not supplied). |
object (K8sRequestObject) |
{- "appId": "my-app/env-1",
- "clusterId": 1,
- "k8sRequest": {
- "resourceIdentifier": {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "default",
- "name": "my-deployment"
}, - "podLogsRequest": {
- "containerName": "my-container"
}, - "patch": "[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]"
}
}
{- "code": 0,
- "status": "string",
- "result": {
- "manifestResponse": {
- "recommendedManifest": { },
- "manifest": { }
}, - "secretViewAccess": true
}
}
This API is used for applying a desired manifest to create a Kubernetes resource.
JSON payload containing the resource manifest to apply.
appId | string Application ID. Used when the request is context-specific to an application. |
clusterId | number Cluster ID. Used when the request is for a direct cluster resource (appId is not supplied). |
object (K8sRequestObject) |
{- "appId": "my-app/env-1",
- "clusterId": 1,
- "k8sRequest": {
- "resourceIdentifier": {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "default",
- "name": "my-deployment"
}, - "podLogsRequest": {
- "containerName": "my-container"
}, - "patch": "[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]"
}
}
{- "code": 0,
- "status": "string",
- "result": {
- "manifestResponse": {
- "recommendedManifest": { },
- "manifest": { }
}, - "secretViewAccess": true
}
}
This API is used for deleting a specified Kubernetes resource.
JSON payload specifying the resource to delete.
appId | string Application ID. Used when the request is context-specific to an application. |
clusterId | number Cluster ID. Used when the request is for a direct cluster resource (appId is not supplied). |
object (K8sRequestObject) |
{- "appId": "my-app/env-1",
- "clusterId": 1,
- "k8sRequest": {
- "resourceIdentifier": {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "default",
- "name": "my-deployment"
}, - "podLogsRequest": {
- "containerName": "my-container"
}, - "patch": "[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]"
}
}
{- "code": 0,
- "status": "string",
- "result": {
- "manifestResponse": {
- "recommendedManifest": { },
- "manifest": { }
}, - "secretViewAccess": true
}
}
This API is used for fetching events for Kubernetes resources.
appId | string Application ID. Used when the request is context-specific to an application. |
clusterId | number Cluster ID. Used when the request is for a direct cluster resource (appId is not supplied). |
object (K8sRequestObject) |
{- "appId": "my-app/env-1",
- "clusterId": 1,
- "k8sRequest": {
- "resourceIdentifier": {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "default",
- "name": "my-deployment"
}, - "podLogsRequest": {
- "containerName": "my-container"
}, - "patch": "[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]"
}
}
This API is used for fetching logs for a specified container within a pod.
podName required | string Name of the pod. |
containerName required | string Name of the container within the pod. |
appId | string Application ID. |
clusterId | integer Cluster ID. |
namespace | string Namespace of the pod. Required if clusterId is passed. |
follow | boolean Default: false Whether to follow the log stream. |
sinceSeconds | integer Return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs. |
tailLines | integer If set, the number of lines from the end of the logs to show. |
token required | string Authentication token. |
This API establishes a session for executing commands in a pod's container (terminal access).
identifier required | string Application ID or Cluster ID. Example '2|devtroncd|devtron' or '3'. |
namespace required | string Example: devtroncd Namespace of the pod. |
pod required | string Example: inception-58d44d99fd-tfw4s Name of the pod. |
shell required | string Enum: "bash" "sh" "powershell" "cmd" Example: bash Shell to invoke. |
container required | string Example: devtron Name of the container. |
token required | string Authentication token. |
{- "Op": "stdin",
- "Data": "ls -l",
- "SessionID": "unique-session-id-123"
}
Get all available API resources for a given cluster ID.
clusterId required | integer <int64> ID of the cluster. |
token required | string Authentication token. |
{- "apiResources": [
- {
- "gvk": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespaced": true
}
], - "allowedAll": true
}
This API is used for fetching a list of Kubernetes resources based on the request criteria.
JSON payload specifying the criteria for listing resources.
appId | string Application ID. Used when the request is context-specific to an application. |
clusterId | number Cluster ID. Used when the request is for a direct cluster resource (appId is not supplied). |
object (K8sRequestObject) |
{- "appId": "my-app/env-1",
- "clusterId": 1,
- "k8sRequest": {
- "resourceIdentifier": {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "default",
- "name": "my-deployment"
}, - "podLogsRequest": {
- "containerName": "my-container"
}, - "patch": "[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]"
}
}
{- "code": 0,
- "status": "string",
- "result": [
- {
- "headers": [
- "NAME",
- "NAMESPACE",
- "KIND",
- "AGE"
], - "data": [
- [
- {
- "NAME": "my-pod-1",
- "NAMESPACE": "default",
- "KIND": "Pod",
- "AGE": "2d"
}, - {
- "NAME": "my-service-abc",
- "NAMESPACE": "kube-system",
- "KIND": "Service",
- "AGE": "10h"
}
]
]
}
]
}
This API is used to rotate (restart) pods for the provided resources.
appId required | string Application ID. |
token required | string Authentication token. |
JSON payload specifying the resources for which pods should be rotated.
clusterId required | number ID of the cluster where resources reside. |
required | Array of objects |
{- "clusterId": 1,
- "resources": [
- {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "production",
- "name": "my-app-deployment"
}
]
}
{- "containsError": false,
- "responses": [
- {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "string",
- "name": "string",
- "errorResponse": "failed to find resource"
}
]
}
This API is used to apply (create or update) Kubernetes resources in a cluster.
JSON payload containing the manifest of resources to apply.
clusterId required | number ID of the cluster where resources will be applied. |
manifest required | string A string containing one or more Kubernetes resource manifests, separated by '---'. |
{- "clusterId": 1,
- "manifest": "apiVersion: v1\nkind: ConfigMap\nmetadata:\n name: my-cm\ndata:\n key: value\n---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: my-app\nspec:\n replicas: 1\n selector:\n matchLabels:\n app: my-app\n template:\n metadata:\n labels:\n app: my-app\n spec:\n containers:\n - name: nginx\n image: nginx\n"
}
[- {
- "kind": "Deployment",
- "name": "my-app",
- "error": null,
- "isUpdate": true
}
]
Operations related to resource recommendations for Kubernetes workloads.
This API will be used to sync resource recommendations for a cluster
A JSON object containing the details required to sync cluster resource recommendations
clusterId required | number ID of the target cluster |
{- "clusterId": 0
}
"string"
This API will fetch resource recommendations metadata for a cluster
clusterId required | number ID of the target cluster |
{- "supportedGVKs": [
- {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}
], - "lastScannedOn": "2019-08-24T14:15:22Z"
}
This API will be used for fetching all workloads and their resource recommendations
A JSON object containing the details required to fetch cluster resource recommendations
appId | string Application ID. Used when the request is context-specific to an application. |
clusterId | number Cluster ID. Used when the request is for a direct cluster resource (appId is not supplied). |
object (K8sRequestObject) |
{- "appId": "my-app/env-1",
- "clusterId": 1,
- "k8sRequest": {
- "resourceIdentifier": {
- "groupVersionKind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}, - "namespace": "default",
- "name": "my-deployment"
}, - "podLogsRequest": {
- "containerName": "my-container"
}, - "patch": "[{\"op\": \"replace\", \"path\": \"/spec/replicas\", \"value\": 3}]"
}
}
{- "headers": [
- "name"
], - "data": [
- {
- "name": "string",
- "namespace": "string",
- "kind": "string",
- "apiVersion": "string",
- "containerName": "string",
- "cpuRequest": {
- "delta": 0,
- "current": "string",
- "recommended": "string"
}, - "cpuLimit": {
- "delta": 0,
- "current": "string",
- "recommended": "string"
}, - "memoryRequest": {
- "delta": 0,
- "current": "string",
- "recommended": "string"
}, - "memoryLimit": {
- "delta": 0,
- "current": "string",
- "recommended": "string"
}
}
]
}
Creates a new workflow for a given application.
name | string Name of the workflow. |
appId | integer ID of the application this workflow belongs to. |
Array of objects (AppWorkflowMappingDto) |
{- "name": "string",
- "appId": 0,
- "tree": [
- {
- "appWorkflowId": 0,
- "type": "string",
- "componentId": 0,
- "parentId": 0,
- "parentType": "string",
- "deploymentAppDeleteRequest": true,
- "isLast": true
}
]
}
{- "id": 0,
- "name": "string",
- "appId": 0,
- "tree": [
- {
- "id": 0,
- "appWorkflowId": 0,
- "type": "string",
- "componentId": 0,
- "parentId": 0,
- "parentType": "string",
- "deploymentAppDeleteRequest": true,
- "isLast": true
}
]
}
Deletes an existing workflow for a given application.
app-wf-id required | integer ID of the application workflow to delete. |
app-id required | integer ID of the application. |
token required | string Authentication token. |
{- "status": "OK"
}
Validate gitops configuration by dry run
A JSON object containing the gitops configuration
id | integer GitOps Id (null for new configuration) |
provider | string Gitops provider |
username | string Username of GitOps provider |
token | string Authentication token of GitOps provider |
gitLabGroupId | string Group Id of gitLab |
gitHubOrgId | string Group Id of gitHub |
host | string Host of GitOps provider |
active | boolean |
azureProjectName | string Project Name of Azure |
userId | integer User Id of GitOps provider |
{- "id": 0,
- "provider": "github,gitlabs",
- "username": "string",
- "token": "string",
- "gitLabGroupId": "string",
- "gitHubOrgId": "string",
- "host": "string",
- "active": true,
- "azureProjectName": "string",
- "userId": 0
}
{- "successfulStages": [
- "string"
], - "validatedOn": "string",
- "stageErrorMap": [
- {
- "stage": "string",
- "error": "string"
}
]
}
create/save new configuration and validate them before saving
A JSON object containing the gitops configuration
id | integer GitOps Id (null for new configuration) |
provider | string Gitops provider |
username | string Username of GitOps provider |
token | string Authentication token of GitOps provider |
gitLabGroupId | string Group Id of gitLab |
gitHubOrgId | string Group Id of gitHub |
host | string Host of GitOps provider |
active | boolean |
azureProjectName | string Project Name of Azure |
userId | integer User Id of GitOps provider |
{- "id": 0,
- "provider": "github,gitlabs",
- "username": "string",
- "token": "string",
- "gitLabGroupId": "string",
- "gitHubOrgId": "string",
- "host": "string",
- "active": true,
- "azureProjectName": "string",
- "userId": 0
}
{- "successfulStages": [
- "string"
], - "validatedOn": "string",
- "stageErrorMap": [
- {
- "stage": "string",
- "error": "string"
}
]
}
update configuration and validate them before saving(if last validation is within 30 seconds then do not validate)
A JSON object containing the gitops configuration
id | integer GitOps Id (null for new configuration) |
provider | string Gitops provider |
username | string Username of GitOps provider |
token | string Authentication token of GitOps provider |
gitLabGroupId | string Group Id of gitLab |
gitHubOrgId | string Group Id of gitHub |
host | string Host of GitOps provider |
active | boolean |
azureProjectName | string Project Name of Azure |
userId | integer User Id of GitOps provider |
{- "id": 0,
- "provider": "github,gitlabs",
- "username": "string",
- "token": "string",
- "gitLabGroupId": "string",
- "gitHubOrgId": "string",
- "host": "string",
- "active": true,
- "azureProjectName": "string",
- "userId": 0
}
{- "successfulStages": [
- "string"
], - "validatedOn": "string",
- "stageErrorMap": [
- {
- "stage": "string",
- "error": "string"
}
]
}
Returns all notification settings
offset required | integer value can be regex search string. |
size required | integer value can be regex search string. |
token required | string Authentication token. |
{- "id": 0,
- "configName": "string",
- "appId": 0,
- "envId": 0,
- "pipelineIds": [
- 0
], - "eventTypeIds": [
- 0
], - "pipelineType": "string",
- "providers": [
- {
- "dest": "string",
- "rule": "string",
- "configId": 0
}
]
}
create NotificationSetting api.
json as request body
id | integer Unique id |
configName required | string Unique name of group |
appId | integer app id |
envId | integer env id |
pipelineIds | Array of integers |
eventTypeIds | Array of integers |
pipelineType | string pipeline type CI or CD |
Array of objects (providers) role filters objects |
{- "id": 0,
- "configName": "string",
- "appId": 0,
- "envId": 0,
- "pipelineIds": [
- 0
], - "eventTypeIds": [
- 0
], - "pipelineType": "string",
- "providers": [
- {
- "dest": "string",
- "rule": "string",
- "configId": 0
}
]
}
{- "id": 0,
- "configName": "string",
- "appId": 0,
- "envId": 0,
- "pipelineIds": [
- 0
], - "eventTypeIds": [
- 0
], - "pipelineType": "string",
- "providers": [
- {
- "dest": "string",
- "rule": "string",
- "configId": 0
}
]
}
Update NotificationSetting api either recipients or events(trigger/success/failed).
json as request body
id | integer Unique id |
configName required | string Unique name of group |
appId | integer app id |
envId | integer env id |
pipelineIds | Array of integers |
eventTypeIds | Array of integers |
pipelineType | string pipeline type CI or CD |
Array of objects (providers) role filters objects |
{- "id": 0,
- "configName": "string",
- "appId": 0,
- "envId": 0,
- "pipelineIds": [
- 0
], - "eventTypeIds": [
- 0
], - "pipelineType": "string",
- "providers": [
- {
- "dest": "string",
- "rule": "string",
- "configId": 0
}
]
}
{- "id": 0,
- "configName": "string",
- "appId": 0,
- "envId": 0,
- "pipelineIds": [
- 0
], - "eventTypeIds": [
- 0
], - "pipelineType": "string",
- "providers": [
- {
- "dest": "string",
- "rule": "string",
- "configId": 0
}
]
}
delete notification setting.
json as request body
id | integer Unique id |
configName required | string Unique name of group |
appId | integer app id |
envId | integer env id |
pipelineIds | Array of integers |
eventTypeIds | Array of integers |
pipelineType | string pipeline type CI or CD |
Array of objects (providers) role filters objects |
{- "id": 0,
- "configName": "string",
- "appId": 0,
- "envId": 0,
- "pipelineIds": [
- 0
], - "eventTypeIds": [
- 0
], - "pipelineType": "string",
- "providers": [
- {
- "dest": "string",
- "rule": "string",
- "configId": 0
}
]
}
{- "id": 0,
- "configName": "string",
- "appId": 0,
- "envId": 0,
- "pipelineIds": [
- 0
], - "eventTypeIds": [
- 0
], - "pipelineType": "string",
- "providers": [
- {
- "dest": "string",
- "rule": "string",
- "configId": 0
}
]
}
recipients fetch by string search, it will return slacks providers and email ids
value required | string value can be regex search string. |
token required | string Authentication token. |
{- "code": 0,
- "message": "string"
}
{- "slackConfigs": [
- {
- "id": 0,
- "type": "string",
- "configName": "string",
- "secretKey": "string",
- "accessKey": "string",
- "fromEmail": "string",
- "region": "string",
- "webhookUrl": "string",
- "teamId": 0,
- "userId": 0
}
], - "sesConfigs": [
- {
- "id": 0,
- "type": "string",
- "configName": "string",
- "secretKey": "string",
- "accessKey": "string",
- "fromEmail": "string",
- "region": "string",
- "webhookUrl": "string",
- "teamId": 0,
- "userId": 0
}
]
}
create NotificationSettingConfig, Slack or SES
json as request body
channel required | string Enum: "slack" "ses" channel type |
Array of objects (configs) config holds for either slack or ses |
{- "channel": "slack",
- "configs": [
- {
- "id": 0,
- "type": "string",
- "configName": "string",
- "secretKey": "string",
- "accessKey": "string",
- "fromEmail": "string",
- "region": "string",
- "webhookUrl": "string",
- "teamId": 0,
- "userId": 0
}
]
}
{- "slackConfigs": [
- {
- "id": 0,
- "type": "string",
- "configName": "string",
- "secretKey": "string",
- "accessKey": "string",
- "fromEmail": "string",
- "region": "string",
- "webhookUrl": "string",
- "teamId": 0,
- "userId": 0
}
], - "sesConfigs": [
- {
- "id": 0,
- "type": "string",
- "configName": "string",
- "secretKey": "string",
- "accessKey": "string",
- "fromEmail": "string",
- "region": "string",
- "webhookUrl": "string",
- "teamId": 0,
- "userId": 0
}
]
}