- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remoteAgents/fetchInstallationCommand#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remoteAgents/fetchInstallationCommand#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remoteAgents/fetchInstallationCommand#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remoteAgents/fetchInstallationCommand#body.request_body)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remoteAgents/fetchInstallationCommand#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remoteAgents/fetchInstallationCommand#body.FetchInstallationCommandResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remoteAgents/fetchInstallationCommand#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.remoteAgents/fetchInstallationCommand#body.aspect_1)

**Full name**: projects.locations.instances.remoteAgents.fetchInstallationCommand

Retrieves the specific command string required to install a RemoteAgent. Use this method to get the ready-to-run command for different deployment types, such as Docker, Podman, or a standard installer.

### HTTP request

`GET https://{endpoint}/v1alpha/{name}:fetchInstallationCommand`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the remote agent to delete. Format: projects/{project}/locations/{location}/instances/{instance}/remoteAgents/{remoteAgent} |

### Query parameters

| Parameters ||
|---|---|
| `installationType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/InstallationType`)`` Required. The type of the installation command to fetch. |

### Request body

The request body must be empty.

### Response body

Response message for the remoteAgents.fetchInstallationCommand method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "installationCommand": string } ``` |

| Fields ||
|---|---|
| `installationCommand` | `string` Output only. Installer installation command - depends on the installation command. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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:

- `chronicle.remoteAgents.get`

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