PrometheusService / Client / list_workspaces
list_workspaces#
- PrometheusService.Client.list_workspaces(**kwargs)#
Lists all AMP workspaces, including workspaces being created or deleted.
See also: AWS API Documentation
Request Syntax
response = client.list_workspaces( nextToken='string', alias='string', maxResults=123 )
- Parameters:
nextToken (string) – Pagination token to request the next page in a paginated list. This token is obtained from the output of the previous ListWorkspaces request.
alias (string) – Optional filter for workspace alias. Only the workspaces with aliases that begin with this value will be returned.
maxResults (integer) – Maximum results to return in response (default=100, maximum=1000).
- Return type:
dict
- Returns:
Response Syntax
{ 'workspaces': [ { 'workspaceId': 'string', 'alias': 'string', 'arn': 'string', 'status': { 'statusCode': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATION_FAILED' }, 'createdAt': datetime(2015, 1, 1), 'tags': { 'string': 'string' } }, ], 'nextToken': 'string' }
Response Structure
(dict) –
Represents the output of a ListWorkspaces operation.
workspaces (list) –
The list of existing workspaces, including those undergoing creation or deletion.
(dict) –
Represents a summary of the properties of a workspace.
workspaceId (string) –
Unique string identifying this workspace.
alias (string) –
Alias of this workspace.
arn (string) –
The AmazonResourceName of this workspace.
status (dict) –
The status of this workspace.
statusCode (string) –
Status code of this workspace.
createdAt (datetime) –
The time when the workspace was created.
tags (dict) –
The tags of this workspace.
(string) –
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 128 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @ May not begin with
aws:
.(string) –
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @
nextToken (string) –
Pagination token to use when requesting the next page in this list.
Exceptions
PrometheusService.Client.exceptions.ThrottlingException
PrometheusService.Client.exceptions.ValidationException
PrometheusService.Client.exceptions.AccessDeniedException
PrometheusService.Client.exceptions.InternalServerException