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
3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 | |