Get a workspace

get

/admin/workspaces/{id}

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : Workspace
Type: object
Show Source
Nested Schema : enabled-features
Type: array
the names of the enabled feature flags
Show Source
Nested Schema : user-mapping
Type: object
when present, this contains 2 mapping schemes for mapping the username in the inbound token to the corresponding username to assert when obtaining the outbound token. One scheme is to map user when the outbound target is Industries IDP and another when the outbound target is an external IDP (that is, other than the Industries one). Both schemes must be present as these are complementary (one mapping being the reverse of the other).
Show Source
Nested Schema : target-external-idp-scheme
Type: object
Show Source
  • regular expression to match the inbound username against and contains subgroup matchers (in parentheses).
  • expression for outbound username with placeholders to be replaced with the subgroups matched in inbound username using source-user-expression. A simple example below. source-user-expression - (.+) target-user-expression - corporate_$1 inbound username - john.doe (regular expression match puts group 1 as 'john.doe') outbound username - corporate_john.doe (placeholder $1 replaced with group 1 value)
Match One Schema
Show Source
Nested Schema : target-industries-idp-scheme
Type: object
Show Source
  • regular expression to match the inbound username against and contains subgroup matchers (in parentheses).
  • expression for outbound username with placeholders to be replaced with the subgroups matched in inbound username using source-user-expression. A simple example below. source-user-expression - (.+) target-user-expression - corporate_$1 inbound username - john.doe (regular expression match puts group 1 as 'john.doe') outbound username - corporate_john.doe (placeholder $1 replaced with group 1 value)
Match One Schema
Show Source

400 Response

Bad Request
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

401 Response

Unauthorized
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

403 Response

Forbidden
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

404 Response

Not Found
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : Error
Type: object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
Back to Top

Examples

The following example shows how to get a workspace by submitting a GET request on the REST resource using cURL.

cURL Command

curl -H 'Authorization: Bearer <Token>' -X GET https://{FABRIC_HOST}/admin/workspaces/{id} -H "Content-Type: application/json" | json_pp

Example of Response Body

The following shows an example of the response body in JSON format.

{
    "workspace-name": "Production",
    "path-parameter": "01",
    "workspace-type": "Production",
    "enabled-features": [
        "self-registration"
    ],
    "user-mapping": {
        "target-industries-idp-scheme": {
            "source-user-expression": "corporate_$1",
            "target-user-expression": "corporate_$1"
        },
        "target-external-idp-scheme": {
            "source-user-expression": "(.+)",
            "target-user-expression": "corporate_$1"
        }
    },
    "id": "dx-prod"
}
Back to Top