FRAMES | NO FRAMES

 

B U S I N E S S   A N A L Y S T   10.0   R E S T   A P I   R E P O S I T O R Y   U T I L I T Y

Get Projects Endpoint

Gets the list of all projects available in the given workspace.

 

Availability: Business Analyst Server.

 

URL Example

http://localhost/ArcGIS/baserver/REST/services/DefaultMap/BAServer/GetProjects/execute

Parameters

Parameter

Description

WorkspaceName (required)

Workspace name. Type string.

f (optional)

Response format. Type string. Available formats: HTML, JSON, PJSON, XML.

Default: HTML.

token

Authentication token. This parameter is required if your Business Analyst Server is secured. Type string.

Returns

Array of string containing the list of projects available in the given workspace.

Example Usage

The example below requests the list of all projects contained in the Default Workspace of the Business Analyst Server Repository.

 

request

http://localhost/ArcGIS/baserver/REST/services/DefaultMap/BAServer/GetProjects/execute?
WorkspaceName=Default Workspace&
f=PJSON

 

Response

{
  "results":
  [
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"121"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Colorado Tutorial Project"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Colorado Tutorial Project 1"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Colorado Tutorial Project 2"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Default Project"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Default Project 1"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Default Project 1 1"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Default Project 1121"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Default Project 2"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Default Project 3"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Default Project 4"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"Default Project 5"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"DP100"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"DTP"
    },
    {
      "paramName":"OutputString",
      "dataType":"GPString",
      "value":"San Francisco Tutorial Project"
    }
  ],
  "messages":
  [
  ]
}

 

See Also

Business Analyst Server REST API Reference