Project API GET By Id

This GET service will find a Project by Id and return a JSON representation of it.

API URLs

http://host:port/flexdeploy/rest/v1/project/{id}

Request

Parameter
Required
Type
Description
idYesURLThis is a URL path parameter for the id which is used to find a project.

Response

AttributesTypeDescription
projectNameStringThis is the name of the project.
applicationIdStringThis is the type of the project.
projectPathStringFully qualified project path.
isActiveBooleanThis is a Boolean that tracks whether or not the project is active. Null input defaults to true.
descriptionStringThis is the group of the project.
partialDeploymentBooleanThis is the subgroup of the project. Null input defaults to false.
priorityIntegerThis is the description of the project.
projectTypeStringThis is the id of the active version of the workflow. Must be a valid project type.
scmTypeStringThis specifies the source control management system used by this project. Must be a valid source control management system.
priorityScopeStringThis specifies the priority scope of the current project. Either 'Global', 'Folder' or 'Application'
buildWorkflowIdLongThis Long specifies the id of the build workflow used by this project.
buildInstanceIdLongThis id the build instance used by this project.
utilityWorkflowIdLongThis id specifies the utility workflow used by this project.
utilityInstanceIdsList<Long>This id specifies the utility instance used by this project.
deployWorkflowIdLongThis id specifies the deployment workflow used by this project.
deployInstanceIdsList<Long>This is a list of id's which identify the deployment instances for this project.
streamsList<Long>This is a list of id's which identify the Project Streams associated with this project.

Response Codes

HTTP CodeDescription
200Projects were found and returned
400Bad request
401Authentication failure
403Authorization failure (no access to resource)
500Unexpected internal server error

Example

If we had a Project in our database with the name 'Project1' with the following attributes:

Project - "Project1"
{
   "priority": 1,
   "projectName": "Project1",
   "description": "Our thoughts become our words. Our words become our actions.",
   "applicationId": 10001,
   "priorityScope": "Application",
   "partialDeployment": false,
   "isActive": true,
   "scmType": "NONE",
   "streams": [
      10802,
      10803,
      10804,
      10805
   ],
   "deployWorkflowId": 10873,
   "deployInstanceIds": [
      11153,
      11168,
      11183,
      11198,
      11213,
      11228,
      11243
   ],
   "buildWorkflowId": 10869,
   "buildInstanceId": 11153,
   "projectType": null
}

When we run a GET request at the following URL:

http://host:port/flexdeploy/rest/v1/project/10002

The GET request would return the  following JSON project object

GET JSON Response
{
   "priority": 1,
   "projectName": "Project1",
   "description": "Our thoughts become our words. Our words become our actions.",
   "applicationId": 10001,
   "priorityScope": "Application",
   "partialDeployment": false,
   "isActive": true,
   "scmType": "NONE",
   "streams": [
      10802,
      10803,
      10804,
      10805
   ],
   "utilityWorkflowId": 11434,
   "utilityInstanceIds": [11275],
   "deployWorkflowId": 10873,
   "deployInstanceIds": [
      11153,
      11168,
      11183,
      11198,
      11213,
      11228,
      11243
   ],
   "buildWorkflowId": 10869,
   "buildInstanceId": 11153,
   "projectType": null
}
The following macros are not currently supported in the footer:
  • style