Skip to content

platformList

sgokaram-saagie edited this page Mar 31, 2020 · 5 revisions

List Platforms

This task allows to list all platforms accessible to you.

The task can be launched with the command gradle platformList.

Configuration

Configuration object

Once your saagie object is available on your project with the server correctly set up, you are ready to go.

saagie {
    server {
        url = <platform_url>
        login = <login>
        password = <password>
        proxyHost = <proxy_host>
        proxyPort = <proxy_port>
        acceptSelfSigned = <accept_self_signed>
        jwt = true
    }
    ...
}

jwt is mandatory and must be set to true for this call.

Configuration Example

saagie {
    server {
        url = https://saagie-beta.prod.saagie.io/
        login = 'my-login'
        password = 'my-password'
        jwt = true
        realm = saagie

    }
}

Response Payload Example

[
  {
    "platformId": 4,
    "platformName": "Demo",
    "permissions": [
      {
        "artifact": {
          "type": "PROJECTS"
        },
        "role": "ROLE_PROJECT_MANAGER"
      },
      {
        "artifact": {
          "type": "PROJECTS_CREATOR"
        },
        "role": "ROLE_PROJECT_CREATOR"
      },
      {
        "artifact": {
          "type": "PROJECTS_ENVVAR_EDITOR"
        },
        "role": "ROLE_PROJECT_ENVVAR_EDITOR"
      }
    ]
  },
  {
    "platformId": 12,
    "platformName": "Training",
    "permissions": [
      {
        "artifact": {
          "type": "PROJECTS"
        },
        "role": "ROLE_PROJECT_MANAGER"
      },
      {
        "artifact": {
          "type": "PROJECTS_CREATOR"
        },
        "role": "ROLE_PROJECT_CREATOR"
      },
      {
        "artifact": {
          "type": "PROJECTS_ENVVAR_EDITOR"
        },
        "role": "ROLE_PROJECT_ENVVAR_EDITOR"
      }
    ]
  }
]