list_assets
async
¶
list_assets(
agent_space_id: AgentSpaceIdentifier,
*,
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
asset_type: Optional[AssetType] = None,
updated_after: Optional[datetime] = None,
updated_before: Optional[datetime] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[int] = None,
) -> ListAssetsResponse
Lists assets in the specified agent space
Parameters:
-
agent_space_id(AgentSpaceIdentifier) –The unique identifier for the agent space to list assets from
-
asset_type(Optional[AssetType], default:None) –Filter results to only assets of this type
-
updated_after(Optional[datetime], default:None) –Filter results to only assets updated after this timestamp
-
updated_before(Optional[datetime], default:None) –Filter results to only assets updated before this timestamp
-
next_token(Optional[NextToken], default:None) –Pagination token from a previous response to retrieve the next page of results
-
max_results(Optional[int], default:None) –The maximum number of results to return in a single response
Raises:
-
AccessDeniedException–Access to the requested resource is denied due to insufficient permissions.
-
ConflictException–The request conflicts with the current state of the resource.
-
ContentSizeExceededException–This exception is thrown when the content size exceeds the allowed limit.
-
InternalServerException–This exception is thrown when an unexpected error occurs in the processing of a request.
-
InvalidParameterException–One or more parameters provided in the request are invalid.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The request would exceed the service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please slow down and try again.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_devops_agent/_services/async_dev_ops_agent.py
1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 | |