list_assets
Retrieve assets in a GCP project via Cloud Asset Inventory API, with options to filter by specific types and control paginated results for efficient asset management.
Instructions
List assets in a GCP project using Cloud Asset Inventory API.
Args:
project_id: The ID of the GCP project to list assets for
asset_types: Optional list of asset types to filter by (e.g., ["compute.googleapis.com/Instance"])
page_size: Number of assets to return per page (default: 50, max: 1000)
Returns:
List of assets in the specified GCP project
Input Schema
Name | Required | Description | Default |
---|---|---|---|
asset_types | No | ||
page_size | No | ||
project_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"asset_types": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Asset Types"
},
"page_size": {
"default": 50,
"title": "Page Size",
"type": "integer"
},
"project_id": {
"title": "Project Id",
"type": "string"
}
},
"required": [
"project_id"
],
"title": "list_assetsArguments",
"type": "object"
}