list_sessions
async
¶
list_sessions(
farm_id: FarmId,
queue_id: QueueId,
job_id: JobId,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListSessionsResponse
Lists sessions.
Parameters:
-
farm_id(FarmId) –The farm ID for the list of sessions.
-
queue_id(QueueId) –The queue ID for the list of sessions
-
job_id(JobId) –The job ID for the list of sessions.
-
next_token(Optional[NextToken], default:None) –The token for the next set of results, or
nullto start from the beginning. -
max_results(Optional[MaxResults], default:None) –The maximum number of results to return. Use this parameter with
NextTokento get results as a set of sequential pages.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_deadline/_services/async_deadline.py
8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 | |