# Google Cloud Logging v2 API - Class GetCmekSettingsRequest (4.5.0)

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

- [4.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/latest/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/4.4.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [4.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/4.3.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [4.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/4.2.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [4.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/4.1.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [4.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/4.0.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/3.6.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/3.5.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/3.4.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/3.3.0/Google.Cloud.Logging.V2.GetCmekSettingsRequest)

    public sealed class GetCmekSettingsRequest : IMessage<GetCmekSettingsRequest>, IEquatable<GetCmekSettingsRequest>, IDeepCloneable<GetCmekSettingsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Logging v2 API class GetCmekSettingsRequest.

The parameters to
\[GetCmekSettings\]\[google.logging.v2.ConfigServiceV2.GetCmekSettings\].

See [Enabling CMEK for Log
Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
more information.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetCmekSettingsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/latest/Google.Cloud.Logging.V2.GetCmekSettingsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetCmekSettingsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/latest/Google.Cloud.Logging.V2.GetCmekSettingsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetCmekSettingsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/latest/Google.Cloud.Logging.V2.GetCmekSettingsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.Logging.V2.dll

## Constructors

### GetCmekSettingsRequest()

    public GetCmekSettingsRequest()

### GetCmekSettingsRequest(GetCmekSettingsRequest)

    public GetCmekSettingsRequest(GetCmekSettingsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/latest/Google.Cloud.Logging.V2.GetCmekSettingsRequest` |

## Properties

### CmekSettingsName

    public CmekSettingsName CmekSettingsName { get; set; }

[CmekSettingsName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/latest/Google.Cloud.Logging.V2.CmekSettingsName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/latest/Google.Cloud.Logging.V2.GetCmekSettingsRequest#Google_Cloud_Logging_V2_GetCmekSettingsRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Logging.V2/latest/Google.Cloud.Logging.V2.CmekSettingsName` |   |

### Name

    public string Name { get; set; }

Required. The resource for which to retrieve CMEK settings.

    "projects/[PROJECT_ID]/cmekSettings"
    "organizations/[ORGANIZATION_ID]/cmekSettings"
    "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
    "folders/[FOLDER_ID]/cmekSettings"

For example:

`"organizations/12345/cmekSettings"`

Note: CMEK for the Log Router can be configured for Google Cloud projects,
folders, organizations and billing accounts. Once configured for an
organization, it applies to all projects and folders in the Google Cloud
organization.

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