Get all workspaces
get
/admin/workspaces
Request
Query Parameters
-
workspace-name: string
-
workspace-path-param: string
-
workspace-type: string
Allowed Values:
[ "Production", "Test" ]
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
OK
Nested Schema : Workspace
Type:
Show Source
object
-
backup-schedule: string
Minimum Length:
1
the backup schedule of the workspace -
description: string
meant to capture record level documentation
-
enabled-features: array
enabled-features
the names of the enabled feature flags
-
id: string
-
path-parameter: string
Minimum Length:
1
the name of the path parameter appearing on external service URLs. Example https://api-gw/apis/01/... - here "01" is the path-parameter -
user-mapping: object
user-mapping
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).
-
workspace-name: string
Minimum Length:
1
the user-facing name of the workspace -
workspace-type: string
Allowed Values:
[ "Production", "Test" ]
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:
Show Source
object
-
source-user-expression: string
regular expression to match the inbound username against and contains subgroup matchers (in parentheses).
-
target-user-expression: string
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:
Show Source
object
-
source-user-expression: string
regular expression to match the inbound username against and contains subgroup matchers (in parentheses).
-
target-user-expression: string
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
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
401 Response
Unauthorized
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
403 Response
Forbidden
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
404 Response
Not Found
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
500 Response
Internal Server Error
Root Schema : Error
Type:
object
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
Examples
The following example shows how to get all workspaces 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 -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": "ss", "path-parameter": "98", "workspace-type": "Production", "id": "ss" }, { "workspace-name": "Demo", "path-parameter": "10", "workspace-type": "Test", "id": "dx-demo" }, { "workspace-name": "Production", "path-parameter": "01", "workspace-type": "Production", "enabled-features": [ "self-registration" ], "user-mapping": { "target-industries-idp-scheme": { "source-user-expression": "(.+)", "target-user-expression": "corporate_$1" }, "target-external-idp-scheme": { "source-user-expression": "(.+)", "target-user-expression": "corporate_$1" } }, "id": "dx-prod" }, { "workspace-name": "dx-export", "path-parameter": "20", "workspace-type": "Production", "id": "dx-export" }, { "workspace-name": "ksidhard", "path-parameter": "12", "workspace-type": "Test", "id": "dx-ksidhard" }, { "workspace-name": "Wolpertinger", "path-parameter": "11", "workspace-type": "Test", "id": "dx-wolpertinger" }, { "workspace-name": "dx-tejashree", "path-parameter": "99", "workspace-type": "Test", "id": "dx-tejashree" }, { "workspace-name": "dx-sshhjj", "path-parameter": "dx-sshhjj", "workspace-type": "Production", "id": "dx-sshhjj" }, { "workspace-name": "Test", "path-parameter": "02", "workspace-type": "Test", "enabled-features": [ "self-registration" ], "id": "dx-test" }, { "workspace-name": "vamsi-dev", "path-parameter": "97", "workspace-type": "Production", "id": "vamsi-dev" } ]