MENU
      Project details

        Project details


        Article summary

        Overview

        View detailed information of a SourcePipeline project.

        Requests

        API URL

        GET  {SOURCEPIPELINE_API_URL}/project/{projectId}
        Plain text

        Request parameters

        ItemTypeRequiredDescriptionNote
        projectIdstringYProject IDView with projectList API

        Request queries

        None

        Request bodies

        None

        Responses

        Response bodies

        {
            "id": "number",
            "name": "string",
            "description": "string",
            "tasks": [
                {
                    "id": "number",
                    "name": "string",
                    "type": "string",
                    "config": {
                        "projectId": "number",
                        "target": {
                            "type": "string",
                            "name": "string",
                            "info": {
                                "repository": "string",
                                "branch": "string"
                            }
                        }
                    },
                    "linkedTasks": ["string"]
                }
            ],
            "trigger": {
                "repository": [
                    {
                        "type": "string",
                        "name": "string",
                        "branch": "string"
                    }
                ],
                "sourcepipeline": [
                    {
                        "id" : "number",
                        "name" : "string"
                    }
                ],
                "schedule": [
                    {
                        "day": ["string"],
                        "time": "string",
                        "timeZone": "string",
                        "scheduleOnlyWithChange" : "boolean"
                    }
                ],
            }
        }
        JSON
        ItemTypeDescriptionNote
        idnumberProject ID
        namestringProject name
        descriptionstringProject description
        tasks.idnumberTask ID
        tasks.namestringTask name
        tasks.typestringTask typeSourceBuild, SourceDeploy
        tasks.linkedTasksstring[]Preceding task. Name of the task to be executed beforehand
        tasks.config.projectIdnumberTask project IDrequired both type SourceBuild and SourceDeploy
        tasks.config.stageIdnumberSourceDeploy stage IDrequired if tasks.type is SourceDeploy
        tasks.config.scenarioIdnumberSourceDeploy scenario IDrequired if tasks.type is SourceDeploy
        tasks.config.target.typestringConnection info typeSourceCommit, GitHub, Bitbucket, Github Enterprise Server, SourceBuild, ObjectStorage, KubernetesService
        tasks.config.target.namestringConnection info project namerequired if tasks.config.target.type is SourceBuild
        tasks.config.target.info.repositorystringConnection info - Repositoryrequired if tasks.config.target.type is SourceCommit
        tasks.config.target.info.branchstringConnection info - Branchrequired if tasks.config.target.type is SourceCommit
        tasks.config.target.info.workspace.idstringConnection info - Bitbucket workspace IDrequired if tasks.config.target.type is Bitbucket
        tasks.config.target.info.workspace.namestringConnection info - Bitbucket workspace namerequired if tasks.config.target.type is Bitbucket
        tasks.config.target.info.authTypestringConnection info - Github Enterprise Server login typerequire id tasks.config.target.type is Github Enterprise Server
        tasks.config.target.info.urlstringConnection info - Github Enterprise Server Repository URLrequire id tasks.config.target.type is Github Enterprise Server and tasks.config.target.info.authType is ssh
        tasks.config.target.info.serverUrlstringConnection info - Github Enterprise Server URLrequire id tasks.config.target.type is Github Enterprise Server and tasks.config.target.info.authType is OAuth, Personal Access Token, Username/Password
        tasks.config.target.info.ownerstringConnection info - Github Enterprise Server ownerrequire id tasks.config.target.type is Github Enterprise Server
        tasks.config.target.info.projectNamestringConnection info - Build project namerequired if tasks.config.target.type is SourceBuild
        tasks.config.target.info.filestringConnection info - Object Storage file name (including path)required if tasks.config.target.type is ObjectStorage
        tasks.config.target.info.manifeststringConnection info - NKS manifest filerequired if tasks.config.target.type is KubernetesService
        tasks.config.target.info.fullManifeststringConnection info - NKS manifest file listrequired if tasks.config.target.type is KubernetesService
        trigger.repository.typestringPush trigger - Repository type"sourcecommit"
        trigger.repository.namestringPush trigger - Repository name
        trigger.repository.branchstringPush trigger - Branch
        trigger.sourcepipeline.idnumberPipeline trigger - Pipeline ID
        trigger.sourcepipeline.namestringPipeline trigger - Pipeline name
        trigger.schedule.daystring[]Scheduled trigger - Day"MON" | "TUE" | "WED"| "THU" | "FRI" | "SAT" | "SUN"
        trigger.schedule.timestringScheduled trigger - Time
        trigger.schedule.timeZonestringScheduled trigger - Time zone
        trigger.schedule.scheduleOnlyWithChangebooleanScheduled trigger - Whether to execute on change

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.