# Public Certificate Authority v1 API - Class PublicCertificateAuthorityServiceClient (1.1.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.1.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/1.0.0/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient)

    public abstract class PublicCertificateAuthorityServiceClient

Reference documentation and code samples for the Public Certificate Authority v1 API class PublicCertificateAuthorityServiceClient.

PublicCertificateAuthorityService client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PublicCertificateAuthorityServiceClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[PublicCertificateAuthorityServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClientImpl)

## Namespace

[Google.Cloud.Security.PublicCA.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1)

## Assembly

Google.Cloud.Security.PublicCA.V1.dll

## Remarks

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.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the PublicCertificateAuthorityService service, which is a host of
"publicca.googleapis.com" and a port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default PublicCertificateAuthorityService scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default PublicCertificateAuthorityService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### GrpcClient

    public virtual PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient GrpcClient { get; }

The underlying gRPC PublicCertificateAuthorityService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityService.PublicCertificateAuthorityServiceClient` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static PublicCertificateAuthorityServiceClient Create()

Synchronously creates a [PublicCertificateAuthorityServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[PublicCertificateAuthorityServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient` | The created [PublicCertificateAuthorityServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient). |

### CreateAsync(CancellationToken)

    public static Task<PublicCertificateAuthorityServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [PublicCertificateAuthorityServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient) using the default
credentials, endpoint and settings. To specify custom credentials or other settings, use
[PublicCertificateAuthorityServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient` | The task representing the created [PublicCertificateAuthorityServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient). |

### CreateExternalAccountKey(LocationName, ExternalAccountKey, CallSettings)

    public virtual ExternalAccountKey CreateExternalAccountKey(LocationName parent, ExternalAccountKey externalAccountKey, CallSettings callSettings = null)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` 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. |
| `externalAccountKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.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. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | The RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    ExternalAccountKey externalAccountKey = new ExternalAccountKey();
    // Make the request
    ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey);

### CreateExternalAccountKey(CreateExternalAccountKeyRequest, CallSettings)

    public virtual ExternalAccountKey CreateExternalAccountKey(CreateExternalAccountKeyRequest request, CallSettings callSettings = null)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | The RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create();
    // Initialize request argument(s)
    CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        ExternalAccountKey = new ExternalAccountKey(),
    };
    // Make the request
    ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(request);

### CreateExternalAccountKey(string, ExternalAccountKey, CallSettings)

    public virtual ExternalAccountKey CreateExternalAccountKey(string parent, ExternalAccountKey externalAccountKey, CallSettings callSettings = null)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.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. |
| `externalAccountKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.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. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | The RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = PublicCertificateAuthorityServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    ExternalAccountKey externalAccountKey = new ExternalAccountKey();
    // Make the request
    ExternalAccountKey response = publicCertificateAuthorityServiceClient.CreateExternalAccountKey(parent, externalAccountKey);

### CreateExternalAccountKeyAsync(LocationName, ExternalAccountKey, CallSettings)

    public virtual Task<ExternalAccountKey> CreateExternalAccountKeyAsync(LocationName parent, ExternalAccountKey externalAccountKey, CallSettings callSettings = null)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` 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. |
| `externalAccountKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.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. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | A Task containing the RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    ExternalAccountKey externalAccountKey = new ExternalAccountKey();
    // Make the request
    ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey);

### CreateExternalAccountKeyAsync(LocationName, ExternalAccountKey, CancellationToken)

    public virtual Task<ExternalAccountKey> CreateExternalAccountKeyAsync(LocationName parent, ExternalAccountKey externalAccountKey, CancellationToken cancellationToken)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` 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. |
| `externalAccountKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.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. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | A Task containing the RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    ExternalAccountKey externalAccountKey = new ExternalAccountKey();
    // Make the request
    ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey);

### CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CallSettings)

    public virtual Task<ExternalAccountKey> CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, CallSettings callSettings = null)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | A Task containing the RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        ExternalAccountKey = new ExternalAccountKey(),
    };
    // Make the request
    ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(request);

### CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest, CancellationToken)

    public virtual Task<ExternalAccountKey> CreateExternalAccountKeyAsync(CreateExternalAccountKeyRequest request, CancellationToken cancellationToken)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.CreateExternalAccountKeyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | A Task containing the RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateExternalAccountKeyRequest request = new CreateExternalAccountKeyRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        ExternalAccountKey = new ExternalAccountKey(),
    };
    // Make the request
    ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(request);

### CreateExternalAccountKeyAsync(string, ExternalAccountKey, CallSettings)

    public virtual Task<ExternalAccountKey> CreateExternalAccountKeyAsync(string parent, ExternalAccountKey externalAccountKey, CallSettings callSettings = null)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.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. |
| `externalAccountKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.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. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | A Task containing the RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    ExternalAccountKey externalAccountKey = new ExternalAccountKey();
    // Make the request
    ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey);

### CreateExternalAccountKeyAsync(string, ExternalAccountKey, CancellationToken)

    public virtual Task<ExternalAccountKey> CreateExternalAccountKeyAsync(string parent, ExternalAccountKey externalAccountKey, CancellationToken cancellationToken)

Creates a new
\[ExternalAccountKey\]\[google.cloud.security.publicca.v1.ExternalAccountKey\]
bound to the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.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. |
| `externalAccountKey` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.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. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.ExternalAccountKey` | A Task containing the RPC response. |

**Example**

    // Create client
    PublicCertificateAuthorityServiceClient publicCertificateAuthorityServiceClient = await PublicCertificateAuthorityServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    ExternalAccountKey externalAccountKey = new ExternalAccountKey();
    // Make the request
    ExternalAccountKey response = await publicCertificateAuthorityServiceClient.CreateExternalAccountKeyAsync(parent, externalAccountKey);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PublicCA.V1/latest/Google.Cloud.Security.PublicCA.V1.PublicCertificateAuthorityServiceClient#Google_Cloud_Security_PublicCA_V1_PublicCertificateAuthorityServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.