describe_workspaces
¶
describe_workspaces(
*,
config_overrides: Optional[WorkSpacesClientConfig] = None,
workspace_ids: Optional[WorkspaceIdList] = None,
directory_id: Optional[DirectoryId] = None,
user_name: Optional[UserName] = None,
bundle_id: Optional[BundleId] = None,
limit: Optional[Limit] = None,
next_token: Optional[PaginationToken] = None,
workspace_name: Optional[WorkspaceName] = None,
) -> DescribeWorkspacesResult
Describes the specified WorkSpaces.
You can filter the results by using the bundle identifier, directory identifier, or owner, but you can specify only one filter at a time.
Parameters:
-
workspace_ids(Optional[WorkspaceIdList], default:None) –The identifiers of the WorkSpaces. You cannot combine this parameter with any other filter.
Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned.
-
directory_id(Optional[DirectoryId], default:None) –The identifier of the directory. In addition, you can optionally specify a specific directory user (see
UserName). You cannot combine this parameter with any other filter. -
user_name(Optional[UserName], default:None) –The name of the directory user. You must specify this parameter with
DirectoryId. -
bundle_id(Optional[BundleId], default:None) –The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter.
-
limit(Optional[Limit], default:None) –The maximum number of items to return.
-
next_token(Optional[PaginationToken], default:None) –If you received a
NextTokenfrom a previous call that was paginated, provide this token to receive the next set of results. -
workspace_name(Optional[WorkspaceName], default:None) –The name of the user-decoupled WorkSpace.
Raises:
-
InvalidParameterValuesException–One or more parameter values are not valid.
-
ResourceUnavailableException–The specified resource is not available.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces/_services/work_spaces.py
5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 | |