Gets a list of metrics and dimensions that can be used to create analytics queries and reports. Each schema element contains the name of the field, its associated type, and a flag indicating whether it is a standard or custom field.
HTTP request
GET https://apigee.googleapis.com/v1/{name=organizations/*/environments/*/analytics/admin/schemav2}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis document outlines how to retrieve a list of metrics and dimensions for creating analytics queries and reports using the Apigee API.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to retrieve the schema is a \u003ccode\u003eGET\u003c/code\u003e request to a specified URL with required path parameters including the organization and environment names.\u003c/p\u003e\n"],["\u003cp\u003eQuery parameters, such as the dataset name and whether to disable cache, are required to be sent along with the request.\u003c/p\u003e\n"],["\u003cp\u003eThe response body includes \u003ccode\u003edimensions\u003c/code\u003e and \u003ccode\u003emetrics\u003c/code\u003e fields, which are lists of schema fields, as well as metadata.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSchemaElement\u003c/code\u003e and \u003ccode\u003eSchemaProperty\u003c/code\u003e details show the structure and properties, such as field name, type, creation time, and custom flag.\u003c/p\u003e\n"]]],[],null,["# Method: organizations.environments.analytics.admin.getSchemav2\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.Schema.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [SchemaElement](#SchemaElement)\n - [JSON representation](#SchemaElement.SCHEMA_REPRESENTATION)\n- [SchemaProperty](#SchemaProperty)\n - [JSON representation](#SchemaProperty.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nGets a list of metrics and dimensions that can be used to create analytics queries and reports. Each schema element contains the name of the field, its associated type, and a flag indicating whether it is a standard or custom field.\n\n### HTTP request\n\n`GET https://apigee.googleapis.com/v1/{name=organizations/*/environments/*/analytics/admin/schemav2}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for Schema call\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nSchemaElement\n-------------\n\nMessage type for the schema element\n\nSchemaProperty\n--------------\n\nProperties for the schema field."]]