# Package google.cloud.security.publicca.v1beta1

## Index

- `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rpc/google.cloud.security.publicca.v1beta1#google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService` (interface)
- `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rpc/google.cloud.security.publicca.v1beta1#google.cloud.security.publicca.v1beta1.CreateExternalAccountKeyRequest` (message)
- `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rpc/google.cloud.security.publicca.v1beta1#google.cloud.security.publicca.v1beta1.ExternalAccountKey` (message)

## PublicCertificateAuthorityService

Manages the resources required for ACME [external account binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for the public certificate authority service.

| CreateExternalAccountKey |
|---|
| `` rpc CreateExternalAccountKey(`https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rpc/google.cloud.security.publicca.v1beta1#google.cloud.security.publicca.v1beta1.CreateExternalAccountKeyRequest`) returns (`https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rpc/google.cloud.security.publicca.v1beta1#google.cloud.security.publicca.v1beta1.ExternalAccountKey`) `` Creates a new `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rpc/google.cloud.security.publicca.v1beta1#google.cloud.security.publicca.v1beta1.ExternalAccountKey` bound to the project. Authorization Scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/). IAM Permissions :   Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource: - `publicca.externalAccountKeys.create` For more information, see the [IAM documentation](https://cloud.google.com/iam/docs). |

## CreateExternalAccountKeyRequest

Creates a new `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rpc/google.cloud.security.publicca.v1beta1#google.cloud.security.publicca.v1beta1.ExternalAccountKey` in a given project.

| Fields ||
|---|---|
| `parent` | `string` Required. The parent resource where this external_account_key will be created. Format: projects/\[project_id\]/locations/\[location\]. At present only the "global" location is supported. |
| `external_account_key` | `` `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rpc/google.cloud.security.publicca.v1beta1#google.cloud.security.publicca.v1beta1.ExternalAccountKey` `` Required. The external account key to create. This field only exists to future-proof the API. At present, all fields in ExternalAccountKey are output only and all values are ignored. For the purpose of the CreateExternalAccountKeyRequest, set it to a default/empty value. |

## ExternalAccountKey

A representation of an ExternalAccountKey used for [external account binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME.

| Fields ||
|---|---|
| `name` | `string` Output only. Resource name. projects/{project}/locations/{location}/externalAccountKeys/{key_id} |
| `key_id` | `string` Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created |
| `b64_mac_key` | `bytes` Output only. Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created |