describe_workspaces
async
¶
describe_workspaces(
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = 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/async_work_spaces.py
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 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 | |