- [HTTP request](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#body.GenerateAutonomousDatabaseWalletResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#body.aspect_1)
- [GenerateType](https://docs.cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases/generateWallet.md.txt#GenerateType)

Generates a wallet for an Autonomous Database.

### HTTP request

Choose an endpoint:
global asia-northeast2 asia-south2 asia-south1 australia-southeast2 europe-west8 northamerica-northeast2   
`POST https://oracledatabase.googleapis.com/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet`

<br />

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the Autonomous Database in the following format: projects/{project}/locations/{location}/autonomousDatabases/{autonomousDatabase}. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "type": enum (`GenerateType`), "isRegional": boolean, "password": string } ``` |

| Fields ||
|---|---|
| `type` | ``enum (`GenerateType`)`` Optional. The type of wallet generation for the Autonomous Database. The default value is SINGLE. |
| `isRegional` | `boolean` Optional. True when requesting regional connection strings in PDB connect info, applicable to cross-region Data Guard only. |
| `password` | `string` Required. The password used to encrypt the keys inside the wallet. The password must be a minimum of 8 characters. |

### Response body

The response for `AutonomousDatabase.GenerateWallet`.

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

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

| Fields ||
|---|---|
| `archiveContent` | `string (bytes format)` Output only. The base64 encoded wallet files. A base64-encoded string. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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

### IAM Permissions

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

- `oracledatabase.autonomousDatabases.generateWallet`

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

## GenerateType

The type of wallet generation.

| Enums ||
|---|---|
| `GENERATE_TYPE_UNSPECIFIED` | Default unspecified value. |
| `ALL` | Used to generate wallet for all databases in the region. |
| `SINGLE` | Used to generate wallet for a single database. |