The following document describes the v2 api for the scheduler.
Projects API
Projects are new concept that has been introduced in the v2 api. They allow multi-tenancy in the application from a user perspective.
POST
Code Block |
---|
language | bash |
---|
title | POST |
---|
linenumbers | true |
---|
|
POST
URL: /v2/project
POST BODY:
{
name: "Name of Project" //must be unique
}
RETURN STATUS: 201
RETURN BODY:
{
name: "name of the project"
} |
GET, DELETE
Code Block |
---|
language | bash |
---|
title | GET, DELETE |
---|
linenumbers | true |
---|
|
GET
URL: /v2/project/{project-name}
RETURN STATUS: 200
RETURN BODY: {
name: "Name of Project" //must be unique
}
DELETE
URL: /v2/project/{project-name}
RETURN STATUS: 204 |
Resource Bundle API
The resource bundle API is now keyed off the Project API
Code Block |
---|
language | js |
---|
linenumbers | true |
---|
|
{
"rb-name": "test-rbdef",
"rb-version": "v1",
"chart-name": "vault-consul-dev", //optional field. chart-name will be detected if this is not provided.
"description": "testing resource bundle definition api",
"labels": {
}
} |