3.27.0 (latest) 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0

    [BindServiceMethod(typeof(HsmManagement), "BindService")]
    public abstract class HsmManagement.HsmManagementBase

Reference documentation and code samples for the Google Cloud Key Management Service v1 API class HsmManagement.HsmManagementBase.

Base class for server-side implementations of HsmManagement

## Inheritance

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

## 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)

## Namespace

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

## Assembly

Google.Cloud.Kms.V1.dll

## Methods

### ApproveSingleTenantHsmInstanceProposal(ApproveSingleTenantHsmInstanceProposalRequest, ServerCallContext)

    public virtual Task<ApproveSingleTenantHsmInstanceProposalResponse> ApproveSingleTenantHsmInstanceProposal(ApproveSingleTenantHsmInstanceProposalRequest request, ServerCallContext context)

Approves a
\[SingleTenantHsmInstanceProposal\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal\]
for a given
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\]. The
proposal must be in the
\[PENDING\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal.State.PENDING\]
state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ApproveSingleTenantHsmInstanceProposalRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ApproveSingleTenantHsmInstanceProposalResponse` | The response to send back to the client (wrapped by a task). |

### CreateSingleTenantHsmInstance(CreateSingleTenantHsmInstanceRequest, ServerCallContext)

    public virtual Task<Operation> CreateSingleTenantHsmInstance(CreateSingleTenantHsmInstanceRequest request, ServerCallContext context)

Creates a new
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\] in a
given Project and Location. User must create a RegisterTwoFactorAuthKeys
proposal with this single-tenant HSM instance to finish setup of the
instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateSingleTenantHsmInstanceRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### CreateSingleTenantHsmInstanceProposal(CreateSingleTenantHsmInstanceProposalRequest, ServerCallContext)

    public virtual Task<Operation> CreateSingleTenantHsmInstanceProposal(CreateSingleTenantHsmInstanceProposalRequest request, ServerCallContext context)

Creates a new
\[SingleTenantHsmInstanceProposal\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal\]
for a given
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateSingleTenantHsmInstanceProposalRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### DeleteSingleTenantHsmInstanceProposal(DeleteSingleTenantHsmInstanceProposalRequest, ServerCallContext)

    public virtual Task<Empty> DeleteSingleTenantHsmInstanceProposal(DeleteSingleTenantHsmInstanceProposalRequest request, ServerCallContext context)

Deletes a
\[SingleTenantHsmInstanceProposal\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.DeleteSingleTenantHsmInstanceProposalRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The response to send back to the client (wrapped by a task). |

### ExecuteSingleTenantHsmInstanceProposal(ExecuteSingleTenantHsmInstanceProposalRequest, ServerCallContext)

    public virtual Task<Operation> ExecuteSingleTenantHsmInstanceProposal(ExecuteSingleTenantHsmInstanceProposalRequest request, ServerCallContext context)

Executes a
\[SingleTenantHsmInstanceProposal\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal\]
for a given
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\]. The
proposal must be in the
\[APPROVED\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal.State.APPROVED\]
state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ExecuteSingleTenantHsmInstanceProposalRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### GetSingleTenantHsmInstance(GetSingleTenantHsmInstanceRequest, ServerCallContext)

    public virtual Task<SingleTenantHsmInstance> GetSingleTenantHsmInstance(GetSingleTenantHsmInstanceRequest request, ServerCallContext context)

Returns metadata for a given
\[SingleTenantHsmInstance\]\[google.cloud.kms.v1.SingleTenantHsmInstance\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.GetSingleTenantHsmInstanceRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstance` | The response to send back to the client (wrapped by a task). |

### GetSingleTenantHsmInstanceProposal(GetSingleTenantHsmInstanceProposalRequest, ServerCallContext)

    public virtual Task<SingleTenantHsmInstanceProposal> GetSingleTenantHsmInstanceProposal(GetSingleTenantHsmInstanceProposalRequest request, ServerCallContext context)

Returns metadata for a given
\[SingleTenantHsmInstanceProposal\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.GetSingleTenantHsmInstanceProposalRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.SingleTenantHsmInstanceProposal` | The response to send back to the client (wrapped by a task). |

### ListSingleTenantHsmInstanceProposals(ListSingleTenantHsmInstanceProposalsRequest, ServerCallContext)

    public virtual Task<ListSingleTenantHsmInstanceProposalsResponse> ListSingleTenantHsmInstanceProposals(ListSingleTenantHsmInstanceProposalsRequest request, ServerCallContext context)

Lists
\[SingleTenantHsmInstanceProposals\]\[google.cloud.kms.v1.SingleTenantHsmInstanceProposal\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ListSingleTenantHsmInstanceProposalsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ListSingleTenantHsmInstanceProposalsResponse` | The response to send back to the client (wrapped by a task). |

### ListSingleTenantHsmInstances(ListSingleTenantHsmInstancesRequest, ServerCallContext)

    public virtual Task<ListSingleTenantHsmInstancesResponse> ListSingleTenantHsmInstances(ListSingleTenantHsmInstancesRequest request, ServerCallContext context)

Lists
\[SingleTenantHsmInstances\]\[google.cloud.kms.v1.SingleTenantHsmInstance\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ListSingleTenantHsmInstancesRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.ListSingleTenantHsmInstancesResponse` | The response to send back to the client (wrapped by a task). |