Resources
Authentication
This resource represents Authentication. Use it to obtain authentication info, authenticate or log out from Kobee.
Post an Authentication View for login
POST /auth
Description
Post an Authentication View containing filled in username and password. If the credentials match those of the connected Security System, the user is logged in and gets a Session. The response will contain some information about this session of the user.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
xmlAuthenticationView |
The Authentication View containing the credentials (username and password) of the user that tries to log in. |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 201
{
"email-address" : "user@example.com",
"is-administrator" : false,
"is-reserved-user" : true,
"locale" : "en",
"login-date" : "2019-11-22T08:17:39",
"login-host-ip" : "0:0:0:0:0:0:0:1",
"login-hostname" : "localhost",
"password" : "user",
"user-fullname" : "User",
"username" : "user"
}
Get an Authentication View
GET /auth
Description
Get an Authentication View. If you do not have a valid session, it will return an empty View that can be filled in and posted to authenticate to Kobee. If you have a valid session, it will return information about this session.
Approvals
This resource represents Approvals. Use it to obtain details of the existing Approvals and approve/reject them.
Get Approvals paginated
GET /approvals
Description
Get a paginated list of Approvals, optionally filtered by approvalstatus or whether the approval can be/has been approved by the current user (myapprovals parameter). Sorting can be done by: * levelrequest.oid; * levelapproval.status; * levelapproval.type; * project.name; * scmlevel.name; * levelrequest.status; * levelrequest.vcrtag; * levelrequest.creationdatetime; * levelrequest.requesteddatetime.
The Outstanding Approvals can be obtained by setting following parameters: myapprovals=true and approvalstatuses=1.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
approvalstatuses |
The status to filter the Approvals by. Allowed values are 0 to 6, inclusive. Multiple values allowed when separated by commas (not functional in the try it out input). |
integer (int32) |
|
Query |
approvedbyuserid |
The User ID to filter the Approvals by, based on who approved or rejected the Approval. |
string |
|
Query |
myapprovals |
Whether to show only the approvals the current user has/had approval rights on, or (value false) to show all approvals. |
enum (true, on, yes, 1, false, off, no, 0) |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
view |
Whether to show only a list of Approval links or also all the Approval attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"approvals" : [ {
"approve-datetime" : "2019-11-22T08:17:39",
"approved-by-user" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"id" : "urn:alm:viewName:1:1",
"level-id" : "1",
"levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"reason" : "Approved By User X",
"sequence-number" : 1,
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
}
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Approval
GET /approvals/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Approval to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"approve-datetime" : "2019-11-22T08:17:39",
"approved-by-user" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"id" : "urn:alm:viewName:1:1",
"level-id" : "1",
"levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"reason" : "Approved By User X",
"sequence-number" : 1,
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
}
}
Approve or reject Approval
PATCH /approvals/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
If-Match |
A header parameter that should contain the value of the latest ETag header for the Approval to approve or reject. The latest ETag can be retrieved by a Get Approval action. |
string |
Path |
id |
The identifier of the Approval to approve or reject. |
integer (int32) |
Body |
approveView |
The view to submit in order to approve or reject the Approval. |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
Example HTTP response
Response 200
{
"approve-datetime" : "2019-11-22T08:17:39",
"approved-by-user" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"id" : "urn:alm:viewName:1:1",
"level-id" : "1",
"levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"reason" : "Approved By User X",
"sequence-number" : 1,
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
}
}
Builds
This resource represents Builds. Use it to obtain details of the existing Builds.
Get Phases of Build
GET /builds/{buildId}/phases
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
buildId |
The identifier of the Build to retrieve the Phases for. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"phases" : [ {
"display-name" : "Execute Script Phase",
"duration" : 178890402,
"end-datetime" : "2019-11-22T08:17:50",
"formattingData" : "/xslt/ant/log.xsl",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"log-format" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"message" : "Message",
"phase-name" : "be.ikan.scm4all.phases.core.executeScript",
"phase-version" : "5.9.0",
"stackTrace" : "Stack trace",
"start-datetime" : "2019-11-22T08:17:39",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
}
} ],
"total" : 0
}
Constants
This resource represents Constants. Use it to obtain details of constants used in Kobee.
Get Approval Statuses
GET /constants/approvals/approvalstatuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"approvalstatuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ]
}
Get Approval Status by Identifier
GET /constants/approvals/approvalstatuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Approval Types
GET /constants/approvals/approvaltypes
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"approvaltypes" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ]
}
Get Approval Type by Identifier
GET /constants/approvals/approvaltypes/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Build Archive Statuses
GET /constants/builds/archivestatuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"archivestatuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ]
}
Get Build Archive Status by Identifier
GET /constants/builds/archivestatuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Build Statuses
GET /constants/builds/statuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"statuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Build Status by Identifier
GET /constants/builds/statuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Deploy Statuses
GET /constants/deploys/statuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"statuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Deploy Status by Identifier
GET /constants/deploys/statuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Level Request Action Types
GET /constants/levelrequests/actiontypes
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"actiontypes" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ]
}
Get Level Request Action Type by Identifier
GET /constants/levelrequests/actiontypes/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Level Request Statuses
GET /constants/levelrequests/statuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"statuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Level Request Status by Identifier
GET /constants/levelrequests/statuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Level Request Types
GET /constants/levelrequests/types
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"types" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Level Request Type by Identifier
GET /constants/levelrequests/types/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Machine Agent Statuses
GET /constants/machines/agentstatuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"agentstatuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ]
}
Get Machine Agent Status by Identifier
GET /constants/machines/agentstatuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Machine Operating Systems
GET /constants/machines/operatingsystems
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"operatingsystems" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Machine Operating System by Identifier
GET /constants/machines/operatingsystems/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Machine Server Statuses
GET /constants/machines/serverstatuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"serverstatuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Machine Server Status by Identifier
GET /constants/machines/serverstatuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Package Statuses
GET /constants/packages/statuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"statuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Package Status by Identifier
GET /constants/packages/statuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Phase Log Format Types
GET /constants/phases/formattypes
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"formattypes" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ]
}
Get Phase Log Format Type by Identifier
GET /constants/phases/formattypes/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Phase Log Statuses
GET /constants/phases/statuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"statuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Phase Log Status by Identifier
GET /constants/phases/statuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Project Types
GET /constants/projects/projecttypes
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"projecttypes" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Project Type by Identifier
GET /constants/projects/projecttypes/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Project Stream Build Types
GET /constants/projectstreams/buildtypes
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"buildtypes" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ]
}
Get Project Stream Build Types by Identifier
GET /constants/projectstreams/buildtypes/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Project Stream Statuses
GET /constants/projectstreams/statuses
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"statuses" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Project Stream Status by Identifier
GET /constants/projectstreams/statuses/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Get Subversion Repository Layouts
GET /constants/subversions/repository-layouts
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"repository-layouts" : [ {
"id" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"text" : "string"
} ]
}
Get Subversion Repository Layout by Identifier
GET /constants/subversions/repository-layouts/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The Identifier of the constant to retrieve. |
integer (int32) |
Create Level Requests
This resource may be used to Create a Level Request.
Post a Create Level Request View to Create a Level Request
POST /createlevelrequest
Description
Post a Create Level Request View containing settings for a Level Request. If the settings are valid, the Level Request will be created. The response will contain some information about the newly created Level Request.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
xmlCLRView |
The Create Level Request View containing the settings for creating a Level Request. |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP request
Request body
{
"build-number" : "30",
"deploys-to-execute" : "DeployEnv1,DeployEnv2",
"description" : "Level Request description",
"id" : "urn:alm:viewName:1:1",
"level" : "LevelName",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"package" : "PackageName",
"parameters" : {
"string" : "string"
},
"project" : "ProjectName",
"projectstream" : "1-0",
"redeliver" : "true",
"start-date" : "2019-11-22T08:17:39+0000",
"tag" : "B1-0_1"
}
Example HTTP response
Response 201
{
"buildnumber" : 1,
"description" : "The description of the created Level Request",
"id" : "urn:alm:viewName:1:1",
"level-id" : 1,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"package-id" : 1,
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"requested-datetime" : "2019-11-22T08:17:39",
"tag" : "B1-0_1",
"user" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
}
}
Get Empty Create Level Request View
GET /createlevelrequest
Description
Get an empty Create Level Request View that can be filled in to create a new Level Request.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"build-number" : "30",
"deploys-to-execute" : "DeployEnv1,DeployEnv2",
"description" : "Level Request description",
"id" : "urn:alm:viewName:1:1",
"level" : "LevelName",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"package" : "PackageName",
"parameters" : {
"string" : "string"
},
"project" : "ProjectName",
"projectstream" : "1-0",
"redeliver" : "true",
"start-date" : "2019-11-22T08:17:39+0000",
"tag" : "B1-0_1"
}
Deploys
This resource represents Deploys. Use it to obtain details of the existing Deploys.
Get Phases of Deploy
GET /deploys/{deployId}/phases
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
deployId |
The identifier of the Deploy to retrieve the Phases for. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"phases" : [ {
"display-name" : "Execute Script Phase",
"duration" : 178890402,
"end-datetime" : "2019-11-22T08:17:50",
"formattingData" : "/xslt/ant/log.xsl",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"log-format" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"message" : "Message",
"phase-name" : "be.ikan.scm4all.phases.core.executeScript",
"phase-version" : "5.9.0",
"stackTrace" : "Stack trace",
"start-datetime" : "2019-11-22T08:17:39",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
}
} ],
"total" : 0
}
Git Repositories
This resource represents Git Repositories. Use it to obtain details of the existing Git Repositories.
Get Git Repositories paginated
GET /gits
Description
Get a paginated list of Git Repositories, optionally filtered by name or userid. Sorting can be done by name.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
name |
The name to filter the Git Repositories by. |
string |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
userid |
The userid to filter the Git Repositories by. |
string |
|
Query |
view |
Whether to show only a list of Git Repository links or also all the Git Repository attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"gits" : [ {
"cache-location" : "file:///C:/almdemo/repository/git/",
"clone-with-filter-blob-none" : true,
"command-path" : "c:/vcrs/git/bin",
"default-branch-name" : "main",
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "GITRepository",
"password" : "********",
"repository-push-url" : "file:///C:/almdemo/repository/git/",
"repository-url" : "file:///C:/almdemo/repository/git/",
"timeout" : 30,
"type" : "git",
"user-id" : "gituser"
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Git Repository
GET /gits/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Git Repository to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"cache-location" : "file:///C:/almdemo/repository/git/",
"clone-with-filter-blob-none" : true,
"command-path" : "c:/vcrs/git/bin",
"default-branch-name" : "main",
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "GITRepository",
"password" : "********",
"repository-push-url" : "file:///C:/almdemo/repository/git/",
"repository-url" : "file:///C:/almdemo/repository/git/",
"timeout" : 30,
"type" : "git",
"user-id" : "gituser"
}
Get Projects connected to a Git Repository.
GET /gits/{id}/projects
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Git Repository to retrieve the Projects for. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"projects" : [ {
"admingroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"archived" : true,
"buildscript" : "build.xml",
"deployscript" : "deploy.xml",
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"issuetrackingsystem" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "name",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr-projectname" : "Customers"
} ],
"total" : 0
}
Issue Tracking Systems
This resource represents Issue Tracking Systems. Use it to obtain details of the existing Issue Tracking Systems.
Get Issue Tracking Systems paginated
GET /issuetrackingsystems
Description
Get a paginated list of Issue Tracking Systems, optionally filtered by name, pluginfactoryclass or url. Sorting can be done by name.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
name |
The name to filter the Issue Tracking Systems by. |
string |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
pluginfactoryclass |
The Plugin Factory Class to filter the Issue Tracking Systems by. |
string |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
url |
The URL to filter the Issue Tracking Systems by. |
string |
|
Query |
view |
Whether to show only a list of Issue Tracking System links or also all the Issue Tracking System attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"issuetrackingsystems" : [ {
"add-comments" : true,
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"issue-id-pattern" : "[0-9]+",
"issue-pattern" : "[0-9A-Z][0-9A-Z][0-9A-Z]*-[0-9]+",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "ALM Issues System",
"password" : "p@ssw0rd",
"plugin-factory-class" : "string",
"url" : "http://example.com/issues/${issueId}",
"user" : "username"
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Issue Tracking System
GET /issuetrackingsystems/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Issue Tracking System to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"add-comments" : true,
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"issue-id-pattern" : "[0-9]+",
"issue-pattern" : "[0-9A-Z][0-9A-Z][0-9A-Z]*-[0-9]+",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "ALM Issues System",
"password" : "p@ssw0rd",
"plugin-factory-class" : "string",
"url" : "http://example.com/issues/${issueId}",
"user" : "username"
}
Get Issue Tracking Systems Properties
GET /issuetrackingsystems/{id}/issuetrackingsystemproperties
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Issue Tracking System to retrieve the properties for. |
integer (int32) |
Query |
view |
Whether to show only a list of Issue Tracking System Property links or also all the Issue Tracking System Property attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"issuetrackingsystems" : [ {
"add-comments" : true,
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"issue-id-pattern" : "[0-9]+",
"issue-pattern" : "[0-9A-Z][0-9A-Z][0-9A-Z]*-[0-9]+",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "ALM Issues System",
"password" : "p@ssw0rd",
"plugin-factory-class" : "string",
"url" : "http://example.com/issues/${issueId}",
"user" : "username"
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Projects connected to the Issue Tracking System
GET /issuetrackingsystems/{id}/projects
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Issue Tracking System to get the connected Projects for. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"projects" : [ {
"admingroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"archived" : true,
"buildscript" : "build.xml",
"deployscript" : "deploy.xml",
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"issuetrackingsystem" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "name",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr-projectname" : "Customers"
} ],
"total" : 0
}
Get Issue Tracking System Property
GET /issuetrackingsystems/{issueTrackingSystemId}/issuetrackingsystemproperties/{issueTrackingSystemPropertyId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
issueTrackingSystemId |
The identifier of the Issue Tracking System to retrieve the Property of. |
integer (int32) |
Path |
issueTrackingSystemPropertyId |
The identifier of the Issue Tracking System Property to retrieve. |
integer (int32) |
Level Requests
This resource represents Level Requests. Use it to patch or obtain details of existing Level Requests.
Get Level Requests paginated
GET /levelrequests
Description
Get a paginated list of Level Requests, optionally filtered by one or more of the following attributes: * projectname; * projectstreamprefix; * projectstreamsuffix; * projectstreamshowhidden; * levelname; * packagename; * packageshowhidden; * levelrequeststatus; * levelrequestid; * levelrequestactiontypes; * requesteddatetimefrom; * requesteddatetimeto; * enddatetimefrom; * enddatetimeto; * resultlimit.
Sorting can be done by any of the following attributes: * levelrequest.oid; * project.name; * buildnumber; * or startdatetime.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
enddatetimefrom |
The earliest Date and Time the Level Request can end at. |
string |
|
Query |
enddatetimeto |
The latest Date and Time the Level Request can end at. |
string |
|
Query |
levelname |
The Level Name to filter the Level Request by. |
string |
|
Query |
levelrequestactiontypes |
The Action Type to filter the Level Request by. Allowed values are between 0 and 6, inclusive. Multiple values allowed when separated by commas (not functional in the try it out input). |
string |
|
Query |
levelrequestid |
The Identifier to filter the Level Request by. |
integer (int32) |
|
Query |
levelrequeststatus |
The Status to filter the Level Request by. Allowed values are between 0 and 11, inclusive. Multiple values allowed when separated by commas (not functional in the try it out input). |
string |
|
Query |
packagename |
The Package Name to filter the Level Request by. |
string |
|
Query |
packageshowhidden |
Whether to show Level Requests created on hidden Packages. |
boolean |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
projectname |
The Project Name to filter the Level Request by. |
string |
|
Query |
projectstreamprefix |
The Project Stream Prefix to filter the Level Request by. |
string |
|
Query |
projectstreamshowhidden |
Whether to show Level Requests created on hidden Project Streams. |
boolean |
|
Query |
projectstreamsuffix |
The Project Stream Suffix to filter the Level Request by. |
string |
|
Query |
requesteddatetimefrom |
The earliest Date and Time the Level Request can be requested at. |
string |
|
Query |
requesteddatetimeto |
The latest Date and Time the Level Request can be requested at. |
string |
|
Query |
resultlimit |
The maximum amount of Level Requests to search for (defaulted to 1000). Can be used to speed up requests on ALM installations with a lot of Level Requests. |
integer (int32) |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
view |
Whether to show only a list of Level Request links or also all the Level Request attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"levelrequests" : [ {
"action-type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"build-number" : 1,
"created-by-user" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"created-on-datetime" : "2019-11-22T08:17:39",
"createdby-user-id" : "global",
"description" : "Build Level Request for Example Project",
"end-datetime" : "2019-11-22T08:17:39",
"id" : "urn:alm:viewName:1:1",
"level-id" : 1,
"level-name" : "Build",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"package" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "Example_Project",
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"projectstream-short-notation" : "Example_Project H_1-0",
"requested-datetime" : "2019-11-22T08:17:39",
"start-datetime" : "2019-11-22T08:17:39",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"vcr-tag" : "H_1-0_1"
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Level Request
GET /levelrequests/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Level Request to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"action-type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"build-number" : 1,
"created-by-user" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"created-on-datetime" : "2019-11-22T08:17:39",
"createdby-user-id" : "global",
"description" : "Build Level Request for Example Project",
"end-datetime" : "2019-11-22T08:17:39",
"id" : "urn:alm:viewName:1:1",
"level-id" : 1,
"level-name" : "Build",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"package" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "Example_Project",
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"projectstream-short-notation" : "Example_Project H_1-0",
"requested-datetime" : "2019-11-22T08:17:39",
"start-datetime" : "2019-11-22T08:17:39",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"vcr-tag" : "H_1-0_1"
}
Patch Level Request.
PATCH /levelrequests/{id}
Description
Update the Description or Requested Date and Time to start a not yet running Level Request, Cancel a not yet running Level Request, or Abort a running Level Request. This can be done by * Update: patching the Description and/or Requested Date and Time; * Cancel: patching the Status to 8; * Abort: patching the Status to 10;
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
If-Match |
A header parameter that should contain the value of the latest ETag header of the Level Request to patch. The latest ETag can be retrieved by a Get Level Request action. |
string |
Path |
id |
The identifier of the Level Request to patch. |
integer (int32) |
Body |
patchView |
patchView |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
Example HTTP response
Response 200
{
"action-type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"build-number" : 1,
"created-by-user" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"created-on-datetime" : "2019-11-22T08:17:39",
"createdby-user-id" : "global",
"description" : "Build Level Request for Example Project",
"end-datetime" : "2019-11-22T08:17:39",
"id" : "urn:alm:viewName:1:1",
"level-id" : 1,
"level-name" : "Build",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"package" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "Example_Project",
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"projectstream-short-notation" : "Example_Project H_1-0",
"requested-datetime" : "2019-11-22T08:17:39",
"start-datetime" : "2019-11-22T08:17:39",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"vcr-tag" : "H_1-0_1"
}
Get Level Request Approvals
GET /levelrequests/{id}/approvals
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Level Request for which to retrieve the Approvals. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"approvals" : [ {
"approve-datetime" : "2019-11-22T08:17:39",
"approved-by-user" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"id" : "urn:alm:viewName:1:1",
"level-id" : "1",
"levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"reason" : "Approved By User X",
"sequence-number" : 1,
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"type" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
}
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Level Request Builds
GET /levelrequests/{id}/builds
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Level Request for which to retrieve the Builds. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"builds" : [ {
"archived-status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"build-environment-id" : 1,
"build-environment-name" : "CONTBUILD",
"build-number" : 1,
"duration" : 1000,
"end-datetime" : "2019-11-22T08:17:39",
"file-name" : "result.zip",
"file-size" : 178890402,
"id" : "urn:alm:viewName:1:1",
"is-tagged-build" : true,
"levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"machine-name" : "ALMServer",
"start-datetime" : "2019-11-22T08:17:39",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
}
} ],
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Level Request Deploys
GET /levelrequests/{id}/deploys
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Level Request for which to retrieve the Deploys. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"deploys" : [ {
"deploy-environment-id" : 1,
"deploy-environment-name" : "ALMServer",
"duration" : 1000,
"end-datetime" : "2019-11-22T08:17:39",
"id" : "urn:alm:viewName:1:1",
"levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"machine-name" : "ALMServer",
"sequence-number" : 1,
"start-datetime" : "2019-11-22T08:17:39",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
}
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Level Request Issues
GET /levelrequests/{id}/issues
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Level Request for which to retrieve the Issues. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"issues" : [ {
"description" : "Example Issue Description",
"id" : "urn:alm:viewName:1:1",
"issue-id" : "Example Issue Id",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"owner" : "Example Issue Owner",
"priority" : "Example Issue Priority",
"status" : "Example Issue Status",
"url" : "Example Issue Url"
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Level Request Phases
GET /levelrequests/{id}/phases
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Level Request for which to retrieve the Phases. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"phases" : [ {
"display-name" : "Execute Script Phase",
"duration" : 178890402,
"end-datetime" : "2019-11-22T08:17:50",
"formattingData" : "/xslt/ant/log.xsl",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"log-format" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"message" : "Message",
"phase-name" : "be.ikan.scm4all.phases.core.executeScript",
"phase-version" : "5.9.0",
"stackTrace" : "Stack trace",
"start-datetime" : "2019-11-22T08:17:39",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
}
} ],
"total" : 0
}
Lifecycles
This resource represents Lifecycles. Use it to obtain details of the existing Lifecycles.
Get Lifecycles paginated
GET /lifecycles
Description
Get a paginated list of Lifecycles, optionally filtered by name, description, isbase, projectname or projectid. Sorting can be done by name.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
description |
The description to filter the Lifecycles by. |
string |
|
Query |
isbase |
Whether the Lifecycle is a base or branch Lifecycle. |
enum (true, on, yes, 1, false, off, no, 0) |
|
Query |
name |
The name to filter the Lifecycles by. |
string |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
projectid |
The Project Identifier to filter the Lifecycles by. |
integer (int32) |
|
Query |
projectname |
The Project Name to filter the Lifecycles by. |
string |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
view |
Whether to show only a list of Lifecycles links or also all the Lifecycle attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"lifecycles" : [ {
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"is-base" : true,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "maintenancelifecycle",
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
}
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Lifecycle
GET /lifecycles/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Lifecycle to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"is-base" : true,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "maintenancelifecycle",
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
}
}
Get Project Streams connected to a Lifecycle
GET /lifecycles/{id}/projectstreams
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Lifecycle to retrieve connected Project Streams for. |
integer (int32) |
Query |
view |
Whether to show only a list of Project Streams connected links connected to a Lifecycle or also all the Project Stream attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"projectstreams" : [ {
"accept-forced-build" : true,
"archived" : true,
"buildprefix" : "string",
"buildsuffix" : "string",
"buildtype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"description" : "string",
"highest-buildnumber" : 0,
"id" : "urn:alm:viewName:1:1",
"is-head" : true,
"is-tagbased" : true,
"lifecycle" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"lifecycle-name" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"partial-build-tag" : "string",
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "string",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"tag-template" : "string",
"vcr-branch-id" : "string"
} ],
"total" : 0
}
Machines
This resource represents Machines. Use it to obtain details of the existing Machines.
Get Machines paginated
GET /machines
Description
Get a paginated list of Machines, optionally filtered by name, operatingsystem, transporterprotocolid or transporterprotocolname. Sorting can be done by name.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
name |
The name to filter the Machines by. |
string |
|
Query |
operatingsystem |
The Operating System to filter the Machines by (0=Windows; 1=Unix; 2=Linux; 3=z/OS). |
enum (0, 1, 2, 3) |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
transporterprotocolid |
The Transporter Protocol ID to filter the Machines by. |
integer (int32) |
|
Query |
transporterprotocolname |
The Transporter Protocol Name to filter the Machines by. |
string |
|
Query |
view |
Whether to show only a list of Machine links or also all the Machine attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"machines" : [ {
"agent-port" : 20020,
"description" : "description",
"dhcp-enabled" : true,
"dhcp-name" : "almserver.example.com",
"id" : "urn:alm:viewName:1:1",
"ip-address" : "127.0.0.1",
"job-limit" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "ALMServer",
"operatingsystem" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"server-port" : 20021,
"transporterprotocol-id" : 1,
"transporterprotocol-name" : "Local FileCopy"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Machine
GET /machines/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Machine to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"agent-port" : 20020,
"description" : "description",
"dhcp-enabled" : true,
"dhcp-name" : "almserver.example.com",
"id" : "urn:alm:viewName:1:1",
"ip-address" : "127.0.0.1",
"job-limit" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "ALMServer",
"operatingsystem" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"server-port" : 20021,
"transporterprotocol-id" : 1,
"transporterprotocol-name" : "Local FileCopy"
}
Get Machine Agent Log
GET /machines/{id}/agentlog
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Machine to retrieve the Agent log. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"agent-log" : "string",
"agentstatus" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"dhcp-enabled" : true,
"dhcp-name" : "string",
"id" : "urn:alm:viewName:1:1",
"ip-address" : "127.0.0.1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "ALMServer",
"serverstatus" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
}
}
Get Machine Status
GET /machines/{id}/status
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Machine to verify the status. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"agent-log" : "string",
"agentstatus" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"dhcp-enabled" : true,
"dhcp-name" : "string",
"id" : "urn:alm:viewName:1:1",
"ip-address" : "127.0.0.1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "ALMServer",
"serverstatus" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
}
}
Packages
This resource represents Packages. Use it to create, update or obtain details of Packages.
Create Package
POST /packages
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
xmlCreatePackageView |
The details of the Package to create. |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP request
Request body
{
"archived" : false,
"description" : "Description for the new package",
"filerevisions" : [ {
"action" : "create",
"name" : "readme.txt",
"path" : "/demo/",
"revision" : "1"
} ],
"name" : "example_package",
"owner" : 1,
"project" : "package_project",
"projectstream" : "1-0",
"status" : 0,
"target-release-date" : "2060-10-31"
}
Example HTTP response
Response 200
{
"id" : "urn:alm:viewName:1:1",
"package" : {
"archived" : false,
"description" : "Description for the package",
"id" : "urn:alm:viewName:1:1",
"latest-levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "example_package",
"owner" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "H_1-0",
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"projectstream-short-notation" : "H_1-0",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"target-release-date" : "2030-11-22"
},
"packagecru-report" : [ "string" ],
"validation-errors" : {
"string" : "string"
}
}
Get Packages paginated
GET /packages
Description
Get a paginated list of Packages, optionally filtered by name, projectname, packageshowhidden, projectstreamshowhidden or description. Sorting can be done by name and description.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
description |
The Description to filter the Package by. |
string |
|
Query |
name |
The Name to filter the Packages by. |
string |
|
Query |
packageshowhidden |
Whether to show hidden Packages or not (defaults to false). |
boolean |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
projectname |
The Project Name to filter the Packages by. |
string |
|
Query |
projectstreamshowhidden |
Whether to show Packages for hidden Project Streams (defaults to false). |
boolean |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
view |
Whether to show only a list of Package links or also all the Package attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"packages" : [ {
"archived" : false,
"description" : "Description for the package",
"id" : "urn:alm:viewName:1:1",
"latest-levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "example_package",
"owner" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "H_1-0",
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"projectstream-short-notation" : "H_1-0",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"target-release-date" : "2030-11-22"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0
}
Get Package
GET /packages/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Package to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"archived" : false,
"description" : "Description for the package",
"id" : "urn:alm:viewName:1:1",
"latest-levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "example_package",
"owner" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "H_1-0",
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"projectstream-short-notation" : "H_1-0",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"target-release-date" : "2030-11-22"
}
Update Package
PATCH /packages/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
If-Match |
A header parameter that should contain the value of the latest ETag header of the Package to update. The latest ETag can be retrieved by a Get Package action. |
string |
Header |
If-Match-Contents |
A header parameter that should contain the value of the latest ETag header of the Package File Revisions to update. The latest ETag can be retrieved by a Get File Revisions action. |
string |
Path |
id |
The identifier of the Package to update. |
integer (int32) |
Body |
xmlCRUPackageView |
The updated details and/or file revisions of the Package. |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
Example HTTP request
Request body
{
"archived" : false,
"description" : "Description for the new package",
"filerevisions" : [ {
"action" : "create",
"name" : "readme.txt",
"path" : "/demo/",
"revision" : "1"
} ],
"name" : "example_package",
"owner" : 1,
"project" : "package_project",
"projectstream" : "1-0",
"status" : 0,
"target-release-date" : "2060-10-31"
}
Example HTTP response
Response 200
{
"id" : "urn:alm:viewName:1:1",
"package" : {
"archived" : false,
"description" : "Description for the package",
"id" : "urn:alm:viewName:1:1",
"latest-levelrequest" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "example_package",
"owner" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "H_1-0",
"projectstream" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"projectstream-short-notation" : "H_1-0",
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"target-release-date" : "2030-11-22"
},
"packagecru-report" : [ "string" ],
"validation-errors" : {
"string" : "string"
}
}
Get Package File Revisions
GET /packages/{id}/filerevisions
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Package for which to retrieve the File Revisions. |
integer (int32) |
Projects
This resource represents Projects. Use it to obtain details of the existing Projects.
Get Projects paginated
GET /projects
Description
Get a paginated list of Projects, optionally filtered by name, projecttype or locked value. Sorting can be done by name.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
locked |
Whether the Project is Locked or not. |
enum (true, on, yes, 1, false, off, no, 0) |
|
Query |
name |
The name to filter the Projects by. |
string |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
projecttype |
The Project Type to filter the Projects by (0=Release-based, 1=Package-based). |
enum (0, 1) |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
view |
Whether to show only a list of Project links or also all the Project attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"projects" : [ {
"admingroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"archived" : true,
"buildscript" : "build.xml",
"deployscript" : "deploy.xml",
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"issuetrackingsystem" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "name",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr-projectname" : "Customers"
} ],
"total" : 0
}
Get Project
GET /projects/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Project to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"admingroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"archived" : true,
"buildscript" : "build.xml",
"deployscript" : "deploy.xml",
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"issuetrackingsystem" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "name",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr-projectname" : "Customers"
}
Project Export
This resource enables to export the data of an existing Project.
Export the full project structure with sub entities and references to global objects
GET /projectexport/{name}
Description
Export the complete project tree as a JSON or XML structure. It will contain all major/minor elements (Project Streams/Phase Parameters, …) and references to global objects (Build Tools,…) so that it can be used as input to import and create a new Project.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
name |
The Name of the Project to export. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"globalreferences" : [ {
"attributes" : {
"string" : "string"
},
"refid" : 1,
"type" : "vcr"
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"projecttree" : {
"levels" : [ {
"buildenvironments" : [ {
"build-script" : "string",
"build-suffix" : "string",
"buildenvironmentparameters" : [ {
"description" : "string",
"dynamic" : true,
"editable" : true,
"id" : "urn:alm:viewName:1:1",
"key" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"mandatory" : true,
"oid" : 0,
"secured" : true,
"user-controlled" : true,
"value" : "string"
} ],
"buildtoolref" : "string",
"debug" : true,
"downloadable-build" : true,
"id" : "urn:alm:viewName:1:1",
"level-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"machineref" : "string",
"name" : "string",
"oid" : 0,
"phases" : [ {
"description" : "string",
"environment-oid" : 0,
"environment-type" : 0,
"fail-on-error" : true,
"firstphase" : true,
"globalphase" : "string",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"next-phase-on-fail-oid" : 0,
"next-phase-on-success-oid" : 0,
"next-phase-on-warning-oid" : 0,
"oid" : 0,
"parameters" : [ {
"globalphaseparameter" : "string",
"id" : "urn:alm:viewName:1:1",
"integrationref" : "string",
"integrationtype" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "string",
"oid" : 0,
"value" : "string"
} ],
"phase-name" : "string",
"phase-version" : "string"
} ],
"source-location" : "string",
"target-location" : "string",
"user-parameters" : true
} ],
"debug" : true,
"deployenvironments" : [ {
"build-environment-oid" : 0,
"debug" : true,
"deploy-script" : "string",
"deployenvironmentparameters" : [ {
"description" : "string",
"dynamic" : true,
"editable" : true,
"id" : "urn:alm:viewName:1:1",
"key" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"mandatory" : true,
"oid" : 0,
"secured" : true,
"user-controlled" : true,
"value" : "string"
} ],
"deploytoolref" : "string",
"id" : "urn:alm:viewName:1:1",
"level-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"machineref" : "string",
"name" : "string",
"oid" : 0,
"partial-deploy" : true,
"phases" : [ {
"description" : "string",
"environment-oid" : 0,
"environment-type" : 0,
"fail-on-error" : true,
"firstphase" : true,
"globalphase" : "string",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"next-phase-on-fail-oid" : 0,
"next-phase-on-success-oid" : 0,
"next-phase-on-warning-oid" : 0,
"oid" : 0,
"parameters" : [ {
"globalphaseparameter" : "string",
"id" : "urn:alm:viewName:1:1",
"integrationref" : "string",
"integrationtype" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "string",
"oid" : 0,
"value" : "string"
} ],
"phase-name" : "string",
"phase-version" : "string"
} ],
"sequence-number" : 0,
"source-location" : "string",
"target-location" : "string",
"user-parameters" : true
} ],
"description" : "string",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "string",
"notification-criteria" : 0,
"notification-type" : 0,
"oid" : 0,
"phases" : [ {
"description" : "string",
"environment-oid" : 0,
"environment-type" : 0,
"fail-on-error" : true,
"firstphase" : true,
"globalphase" : "string",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"next-phase-on-fail-oid" : 0,
"next-phase-on-success-oid" : 0,
"next-phase-on-warning-oid" : 0,
"oid" : 0,
"parameters" : [ {
"globalphaseparameter" : "string",
"id" : "urn:alm:viewName:1:1",
"integrationref" : "string",
"integrationtype" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "string",
"oid" : 0,
"value" : "string"
} ],
"phase-name" : "string",
"phase-version" : "string"
} ],
"post-notification-criteria" : 0,
"postapprovals" : [ {
"controlled-by-usergroup" : "string",
"id" : "urn:alm:viewName:1:1",
"level-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"oid" : 0,
"sequencenumber" : 0
} ],
"postnotification-usergroupref" : "string",
"preapprovals" : [ {
"controlled-by-usergroup" : "string",
"id" : "urn:alm:viewName:1:1",
"levelOid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"oid" : 0,
"sequencenumber" : 0
} ],
"prenotification-usergroupref" : "string",
"requester-usergroupref" : "string",
"scheduleref" : "string",
"type" : 0
} ],
"lifecycles" : [ {
"description" : "string",
"id" : "urn:alm:viewName:1:1",
"is-base" : true,
"lifecycle-associations" : [ {
"id" : "urn:alm:viewName:1:1",
"level-oid" : 0,
"lifecycle-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"oid" : 0,
"optional" : true,
"optional-deploy" : true,
"sequence-number" : 0
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "string",
"oid" : 0
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"project" : {
"admingroupref" : "string",
"archived" : true,
"buildscript" : "string",
"deployscript" : "string",
"description" : "string",
"id" : "urn:alm:viewName:1:1",
"issuetrackingsystemref" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "string",
"oid" : 0,
"projecttype" : 0,
"usergroupref" : "string",
"vcr-projectname" : "string",
"vcrref" : "string"
},
"projectstreams" : [ {
"accept-forced-build" : true,
"archived" : true,
"buildprefix" : "string",
"buildsuffix" : "string",
"buildtype" : 0,
"description" : "string",
"highest-buildnumber" : 0,
"id" : "urn:alm:viewName:1:1",
"is-head" : true,
"is-tagbased" : true,
"lifecycle-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"oid" : 0,
"partial-build-tag" : "string",
"status" : 0,
"tag-template" : "string",
"vcr-branch-id" : "string"
} ]
},
"version" : "5-9.0"
}
Project Import
This resource enables to import a complete new Project.
Import and create a complete project structure with sub entities and references to global objects
POST /projectimport
Description
Import the project tree that is submitted as a JSON or XML structure. The Project can be created with all its major and minor elements (from Project Streams to Phase Parameters) and set links to existing global references (like Build Tools, VCRs, ) so that a full functional Project is obtained. The input can be tested without a real import by using the dry-run parameter.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
dry-run |
Whether to just validate the submitted project tree and global references without actually importing the project. |
enum (true, on, yes, 1, false, off, no, 0) |
Body |
exportView |
exportView |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP request
Request body
{
"globalreferences" : [ {
"attributes" : {
"string" : "string"
},
"refid" : 1,
"type" : "vcr"
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"projecttree" : {
"levels" : [ {
"buildenvironments" : [ {
"build-script" : "string",
"build-suffix" : "string",
"buildenvironmentparameters" : [ {
"description" : "string",
"dynamic" : true,
"editable" : true,
"id" : "urn:alm:viewName:1:1",
"key" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"mandatory" : true,
"oid" : 0,
"secured" : true,
"user-controlled" : true,
"value" : "string"
} ],
"buildtoolref" : "string",
"debug" : true,
"downloadable-build" : true,
"id" : "urn:alm:viewName:1:1",
"level-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"machineref" : "string",
"name" : "string",
"oid" : 0,
"phases" : [ {
"description" : "string",
"environment-oid" : 0,
"environment-type" : 0,
"fail-on-error" : true,
"firstphase" : true,
"globalphase" : "string",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"next-phase-on-fail-oid" : 0,
"next-phase-on-success-oid" : 0,
"next-phase-on-warning-oid" : 0,
"oid" : 0,
"parameters" : [ {
"globalphaseparameter" : "string",
"id" : "urn:alm:viewName:1:1",
"integrationref" : "string",
"integrationtype" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "string",
"oid" : 0,
"value" : "string"
} ],
"phase-name" : "string",
"phase-version" : "string"
} ],
"source-location" : "string",
"target-location" : "string",
"user-parameters" : true
} ],
"debug" : true,
"deployenvironments" : [ {
"build-environment-oid" : 0,
"debug" : true,
"deploy-script" : "string",
"deployenvironmentparameters" : [ {
"description" : "string",
"dynamic" : true,
"editable" : true,
"id" : "urn:alm:viewName:1:1",
"key" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"mandatory" : true,
"oid" : 0,
"secured" : true,
"user-controlled" : true,
"value" : "string"
} ],
"deploytoolref" : "string",
"id" : "urn:alm:viewName:1:1",
"level-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"machineref" : "string",
"name" : "string",
"oid" : 0,
"partial-deploy" : true,
"phases" : [ {
"description" : "string",
"environment-oid" : 0,
"environment-type" : 0,
"fail-on-error" : true,
"firstphase" : true,
"globalphase" : "string",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"next-phase-on-fail-oid" : 0,
"next-phase-on-success-oid" : 0,
"next-phase-on-warning-oid" : 0,
"oid" : 0,
"parameters" : [ {
"globalphaseparameter" : "string",
"id" : "urn:alm:viewName:1:1",
"integrationref" : "string",
"integrationtype" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "string",
"oid" : 0,
"value" : "string"
} ],
"phase-name" : "string",
"phase-version" : "string"
} ],
"sequence-number" : 0,
"source-location" : "string",
"target-location" : "string",
"user-parameters" : true
} ],
"description" : "string",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "string",
"notification-criteria" : 0,
"notification-type" : 0,
"oid" : 0,
"phases" : [ {
"description" : "string",
"environment-oid" : 0,
"environment-type" : 0,
"fail-on-error" : true,
"firstphase" : true,
"globalphase" : "string",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"next-phase-on-fail-oid" : 0,
"next-phase-on-success-oid" : 0,
"next-phase-on-warning-oid" : 0,
"oid" : 0,
"parameters" : [ {
"globalphaseparameter" : "string",
"id" : "urn:alm:viewName:1:1",
"integrationref" : "string",
"integrationtype" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "string",
"oid" : 0,
"value" : "string"
} ],
"phase-name" : "string",
"phase-version" : "string"
} ],
"post-notification-criteria" : 0,
"postapprovals" : [ {
"controlled-by-usergroup" : "string",
"id" : "urn:alm:viewName:1:1",
"level-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"oid" : 0,
"sequencenumber" : 0
} ],
"postnotification-usergroupref" : "string",
"preapprovals" : [ {
"controlled-by-usergroup" : "string",
"id" : "urn:alm:viewName:1:1",
"levelOid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"oid" : 0,
"sequencenumber" : 0
} ],
"prenotification-usergroupref" : "string",
"requester-usergroupref" : "string",
"scheduleref" : "string",
"type" : 0
} ],
"lifecycles" : [ {
"description" : "string",
"id" : "urn:alm:viewName:1:1",
"is-base" : true,
"lifecycle-associations" : [ {
"id" : "urn:alm:viewName:1:1",
"level-oid" : 0,
"lifecycle-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"oid" : 0,
"optional" : true,
"optional-deploy" : true,
"sequence-number" : 0
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "string",
"oid" : 0
} ],
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"project" : {
"admingroupref" : "string",
"archived" : true,
"buildscript" : "string",
"deployscript" : "string",
"description" : "string",
"id" : "urn:alm:viewName:1:1",
"issuetrackingsystemref" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "string",
"oid" : 0,
"projecttype" : 0,
"usergroupref" : "string",
"vcr-projectname" : "string",
"vcrref" : "string"
},
"projectstreams" : [ {
"accept-forced-build" : true,
"archived" : true,
"buildprefix" : "string",
"buildsuffix" : "string",
"buildtype" : 0,
"description" : "string",
"highest-buildnumber" : 0,
"id" : "urn:alm:viewName:1:1",
"is-head" : true,
"is-tagbased" : true,
"lifecycle-oid" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"oid" : 0,
"partial-build-tag" : "string",
"status" : 0,
"tag-template" : "string",
"vcr-branch-id" : "string"
} ]
},
"version" : "5-9.0"
}
Example HTTP response
Response 200
{
"imported-project" : {
"admingroupref" : "string",
"archived" : true,
"buildscript" : "string",
"deployscript" : "string",
"description" : "string",
"id" : "urn:alm:viewName:1:1",
"issuetrackingsystemref" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "string",
"oid" : 0,
"projecttype" : 0,
"usergroupref" : "string",
"vcr-projectname" : "string",
"vcrref" : "string"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"validation-errors" : {
"string" : "string"
},
"validation-report" : [ "string" ]
}
Project Streams
This resource represents Project Streams. Use it to obtain details of the existing Project Streams.
Create Project Stream
POST /projectstreams
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
xmlCreateProjectStreamView |
The Projectstream to create. |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
201 |
Created |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP request
Request body
{
"accept-forced-build" : true,
"archived" : false,
"buildprefix" : "1-0",
"buildsuffix" : "1-1",
"buildtype" : 1,
"description" : "description",
"highest-buildnumber" : 0,
"is-head" : false,
"is-tagbased" : false,
"lifecycle-oid" : 1,
"locked" : false,
"project-oid" : 1,
"status" : 1,
"tag-template" : "${streamType}_${prefix}_${suffix}_b${buildNumber}",
"vcr-branch-id" : "COMMON/branches/JDK11"
}
Example HTTP response
Response 200
{
"accept-forced-build" : true,
"archived" : true,
"buildprefix" : "string",
"buildsuffix" : "string",
"buildtype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"description" : "string",
"highest-buildnumber" : 0,
"id" : "urn:alm:viewName:1:1",
"is-head" : true,
"is-tagbased" : true,
"lifecycle" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"lifecycle-name" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"partial-build-tag" : "string",
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "string",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"tag-template" : "string",
"vcr-branch-id" : "string"
}
Get Project Streams paginated
GET /projectstreams
Description
Get a paginated list of Project Streams, optionally filtered by prefix, suffix, vcrbranchid, projectid, projectname or ishead value.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
ishead |
Whether the Project is a Head or Branch stream. |
enum (true, on, yes, 1, false, off, no, 0) |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
prefix |
The Prefix to filter the Project Streams by. |
string |
|
Query |
projectid |
The Project identifier to filter the Project Streams by. |
integer (int32) |
|
Query |
projectname |
The Project Name to filter the Project Streams by. |
string |
|
Query |
suffix |
The Suffix to filter the Project Streams by. |
string |
|
Query |
vcrbranchid |
The VCR Branch ID to filter the Project Streams by. |
string |
|
Query |
view |
Whether to show only a list of Project Stream links or also all the Project Stream attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"projectstreams" : [ {
"accept-forced-build" : true,
"archived" : true,
"buildprefix" : "string",
"buildsuffix" : "string",
"buildtype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"description" : "string",
"highest-buildnumber" : 0,
"id" : "urn:alm:viewName:1:1",
"is-head" : true,
"is-tagbased" : true,
"lifecycle" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"lifecycle-name" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"partial-build-tag" : "string",
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "string",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"tag-template" : "string",
"vcr-branch-id" : "string"
} ],
"total" : 0
}
Get Project Stream
GET /projectstreams/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Project Stream to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"accept-forced-build" : true,
"archived" : true,
"buildprefix" : "string",
"buildsuffix" : "string",
"buildtype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"description" : "string",
"highest-buildnumber" : 0,
"id" : "urn:alm:viewName:1:1",
"is-head" : true,
"is-tagbased" : true,
"lifecycle" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"lifecycle-name" : "string",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"partial-build-tag" : "string",
"project" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"project-name" : "string",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"status" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"tag-template" : "string",
"vcr-branch-id" : "string"
}
Subversion Repositories
This resource represents Subversion Repositories. Use it to obtain details of the existing Subversion Repositories.
Get Subversion Repositories paginated
GET /subversions
Description
Get a paginated list of Subversion Repositories, optionally filtered by name or userid. Sorting can be done by name.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
name |
The name to filter the Subversion Repositories by. |
string |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
userid |
The userid to filter the Subversion Repositories by. |
string |
|
Query |
view |
Whether to show only a list of Subversion Repository links or also all the Subversion Repository attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"subversions" : [ {
"command-path" : "c:/vcrs/svn/bin",
"description" : "description",
"fetch-meta-properties" : true,
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "SVNRepository",
"password" : "********",
"repository-layout" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"repository-url" : "file:///C:/almdemo/repository/svn/",
"tags-directory" : "tags",
"timeout" : 30,
"trunk-directory" : "trunk",
"type" : "svn",
"user-id" : "svnuser"
} ],
"total" : 0
}
Get Subversion Repository
GET /subversions/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Subversion Repository to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"command-path" : "c:/vcrs/svn/bin",
"description" : "description",
"fetch-meta-properties" : true,
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "SVNRepository",
"password" : "********",
"repository-layout" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"repository-url" : "file:///C:/almdemo/repository/svn/",
"tags-directory" : "tags",
"timeout" : 30,
"trunk-directory" : "trunk",
"type" : "svn",
"user-id" : "svnuser"
}
Get Projects connected to a Subversion Repository.
GET /subversions/{id}/projects
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the Subversion Repository to retrieve the Projects for. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"projects" : [ {
"admingroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"archived" : true,
"buildscript" : "build.xml",
"deployscript" : "deploy.xml",
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"issuetrackingsystem" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locked" : true,
"name" : "name",
"projecttype" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Value for 0"
},
"usergroup" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr" : {
"id" : 0,
"link" : {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
},
"text" : "Other Resource"
},
"vcr-projectname" : "Customers"
} ],
"total" : 0
}
User Groups
This resource represents User Groups. Use it to obtain details of the existing User Groups.
Get User Groups paginated
GET /usergroups
Description
Get a paginated list of User Groups, optionally filtered by name, description or types. Sorting can be done by name or type.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
description |
The description to filter the User Groups by. |
string |
|
Query |
name |
The name to filter the User Groups by. |
string |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
type |
The type to filter the User Groups by (0=external; 1=internal). |
enum (0, 1) |
|
Query |
view |
Whether to show only a list of User Group links or also all the User Group attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0,
"usergroups" : [ {
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "ALM Administrator",
"type" : 0
} ]
}
Get User Group
GET /usergroups/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the User Group to retrieve. |
integer (int32) |
Get Users connected to a User Group.
GET /usergroups/{id}/users
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the User Group to retrieve the Users for. |
integer (int32) |
Query |
view |
Whether to show only a list of User links that are connected to a User Group or also all the User attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0,
"users" : [ {
"archived" : true,
"browserID" : "string",
"description" : "description",
"email-address" : "user@example.com",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locale" : "en",
"location" : "UserHouse",
"login-date" : "1574353976919",
"login-hostIP" : "0:0:0:0:0:0:0:1",
"login-hostname" : "localhost",
"mobile-number" : "+32 (0)11 22 33 44",
"name" : "User",
"reserved" : true,
"tel-number" : "+32 (0)11 22 33 44",
"user-id" : "user"
} ]
}
Users
This resource represents Users. Use it to obtain details of the existing Users.
Get Users paginated
GET /users
Description
Get a paginated list of Users, optionally filtered by name, userid or connection. Sorting can be done by name or userid.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
connectedusers |
Whether to show a list of Users that are currently connected to Kobee. |
boolean |
|
Query |
name |
The name to filter the User by. |
string |
|
Query |
page |
The page to retrieve, defaulted to 1. |
string |
|
Query |
pagesize |
The page size to retrieve, defaulted to 10. |
string |
|
Query |
sortcolumn |
The attribute to sort the result by, check the endpoint description for the possible values. |
string |
|
Query |
sortdirection |
The sort direction to order the result, defaulted to ascending. |
enum (desc, descending, true, asc, ascending, false) |
|
Query |
userid |
The userid to filter the Users by. |
string |
|
Query |
view |
Whether to show only a list of User links or also all the User attributes. |
enum (links, all) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0,
"users" : [ {
"archived" : true,
"browserID" : "string",
"description" : "description",
"email-address" : "user@example.com",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locale" : "en",
"location" : "UserHouse",
"login-date" : "1574353976919",
"login-hostIP" : "0:0:0:0:0:0:0:1",
"login-hostname" : "localhost",
"mobile-number" : "+32 (0)11 22 33 44",
"name" : "User",
"reserved" : true,
"tel-number" : "+32 (0)11 22 33 44",
"user-id" : "user"
} ]
}
Get User
GET /users/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the User to retrieve. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"archived" : true,
"browserID" : "string",
"description" : "description",
"email-address" : "user@example.com",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"locale" : "en",
"location" : "UserHouse",
"login-date" : "1574353976919",
"login-hostIP" : "0:0:0:0:0:0:0:1",
"login-hostname" : "localhost",
"mobile-number" : "+32 (0)11 22 33 44",
"name" : "User",
"reserved" : true,
"tel-number" : "+32 (0)11 22 33 44",
"user-id" : "user"
}
Get User Groups the User is connected to.
GET /users/{id}/usergroups
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
The identifier of the User to retrieve the User Groups for. |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Not Found |
No Content |
Example HTTP response
Response 200
{
"count" : 0,
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"page" : 0,
"pagesize" : 0,
"total" : 0,
"usergroups" : [ {
"description" : "description",
"id" : "urn:alm:viewName:1:1",
"links" : [ {
"href" : "http://alm.example.local:8080/alm/rest/v1/link/href/1",
"rel" : "LinkRel",
"title" : "Title"
} ],
"name" : "ALM Administrator",
"type" : 0
} ]
}