{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Lists all Cloudflare accounts across this tenant's hierarchy using the legacy Account\nresponse shape. Use `GET /organizations/{organization_id}/accounts` to list only accounts\nimmediately attached to a specific Organization using the modern Account response shape.\nUse `page_token` and `page_size` for cursor pagination, or provide `page` and `per_page`\ntogether for legacy offset pagination. Cursor pagination takes precedence when requested.","properties":{"path":{"type":"object","properties":{"tenant_id":{"type":"string","description":"The ID of the tenant whose accounts to list."}},"required":["tenant_id"],"additionalProperties":false},"query":{"type":"object","properties":{"account_pubname":{"type":"string","description":"(case-sensitive) Filter the list of accounts to where the account_pubname is equal to\na particular string."},"account_pubname.startsWith":{"type":"string","description":"(case-insensitive) Filter the list of accounts to where the account_pubname starts with\na particular string."},"account_pubname.endsWith":{"type":"string","description":"(case-insensitive) Filter the list of accounts to where the account_pubname ends with\na particular string."},"account_pubname.contains":{"type":"string","description":"(case-insensitive) Filter the list of accounts to where the account_pubname contains\na particular string."},"name":{"type":"string","description":"(case-sensitive) Filter the list of accounts to where the name is equal to a\nparticular string. At most one of `name`, `name.startsWith`, `name.endsWith`,\nor `name.contains` may be supplied per request."},"name.startsWith":{"type":"string","description":"(case-insensitive) Filter the list of accounts to where the name starts with a\nparticular string."},"name.endsWith":{"type":"string","description":"(case-insensitive) Filter the list of accounts to where the name ends with a particular\nstring."},"name.contains":{"type":"string","description":"(case-insensitive) Filter the list of accounts to where the name contains a particular\nstring."},"status":{"type":"string","enum":["active","deleted"],"description":"Filter accounts by lifecycle status. Defaults to `active`."},"order_by":{"type":"string","enum":["account_name"],"description":"Field to order results by. Currently supported values: `account_name`."},"direction":{"type":"string","enum":["asc","desc"],"description":"Sort direction for the order_by field. Valid values: `asc`, `desc`.\nDefaults to `asc` when order_by is specified."},"include_total":{"type":"boolean","default":true,"description":"Whether to calculate and return the exact `result_info.total_size` for cursor\npagination. Defaults to true. When false, `total_size` is omitted. Legacy\n`page`/`per_page` requests always calculate `total_count`."},"page":{"type":"integer","description":"Legacy offset page number. Must be provided with `per_page`. Values below 1 are treated as\n1. Cursor pagination takes precedence when requested."},"per_page":{"type":"integer","description":"Legacy offset page size. Must be provided with `page`. Values are clamped to the range\n1-100. Cursor pagination takes precedence when requested."},"page_token":{"type":"string","description":"An opaque token returned from the last list response that when\nprovided will retrieve the next page.\n\nParameters used to filter the retrieved list must remain in subsequent\nrequests with a page token."},"page_size":{"type":"integer","maximum":1000,"minimum":0,"description":"The amount of items to return. Defaults to 10."}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false},"name":"List tenant accounts","id":"cloudflare.tenants_listaccounts","example":{"path":{"tenant_id":"example"}},"maxRequests":1,"summary":false}}