- [HTTP request](https://docs.cloud.google.com/app-topology/reference/rest/v1/projects.locations.domains/getSchema#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/app-topology/reference/rest/v1/projects.locations.domains/getSchema#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/app-topology/reference/rest/v1/projects.locations.domains/getSchema#body.request_body)
- [Response body](https://docs.cloud.google.com/app-topology/reference/rest/v1/projects.locations.domains/getSchema#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/app-topology/reference/rest/v1/projects.locations.domains/getSchema#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/app-topology/reference/rest/v1/projects.locations.domains/getSchema#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/app-topology/reference/rest/v1/projects.locations.domains/getSchema#try-it)

Retrieves the schema for the specified topology domain. The schema defines the NodeTypes and EdgeTypes that are supported in GenerateDiscoveredResourcesTopology requests and responses for a given domain.

### HTTP request

`GET https://apptopology.googleapis.com/v1/{name=projects/*/locations/*/domains/*/schema}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the singleton domain schema resource. Format: `projects/{project}/locations/{location}/domains/{domain}/schema` |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/app-topology/reference/rest/v1/projects.locations.domains.schema#Schema`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/apptopology.read-write`
- `https://www.googleapis.com/auth/apptopology.read-only`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `apptopology.schemas.get`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).