# Method: projects.locations.spaces.registerAppHubApplicationResources

- [HTTP request](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces/registerAppHubApplicationResources#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces/registerAppHubApplicationResources#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces/registerAppHubApplicationResources#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces/registerAppHubApplicationResources#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces/registerAppHubApplicationResources#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces/registerAppHubApplicationResources#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces/registerAppHubApplicationResources#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces/registerAppHubApplicationResources#try-it)

Register deployed resources from terraform state file with App Hub without needing a space.

### HTTP request

`POST https://designcenter.googleapis.com/v1alpha/{parent=projects/*/locations/*}/spaces:registerAppHubApplicationResources`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent location. Format: projects/{project}/locations/{location} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "apphubApplication": string, // Union field `tfstate_source` can be only one of the following: "tfstateContent": string, "tfstateSignedGcsUri": string // End of list of possible types for union field `tfstate_source`. } ``` |

| Fields ||
|---|---|
| `apphubApplication` | `string` Required. The name of the AppHub Application. Format: projects/{project}/locations/{location}/applications/{application} |
| Union field `tfstate_source`. The Terraform state (tfstate) source. `tfstate_source` can be only one of the following: ||
| `tfstateContent` | `string` Optional. The Terraform state (tfstate) content as a raw string. For large state files exceeding 10MB, use the 'tfstateSignedGcsUri' field instead. |
| `tfstateSignedGcsUri` | `string` Optional. A securely signed Cloud Storage URI pointing to the tfstate file. The URI must be signed to grant the service temporary read access to the state file. Application Design Center imposes a limit on the maximum size of the state file accessed via this URI. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/Operation`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

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 `parent` resource:

- `designcenter.locations.get`

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