azure-native.sql.getServerKey
Explore with Pulumi AI
Gets a server key.
Uses Azure REST API version 2023-08-01.
Other available API versions: 2015-05-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]. See the version guide for details.
Using getServerKey
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServerKey(args: GetServerKeyArgs, opts?: InvokeOptions): Promise<GetServerKeyResult>
function getServerKeyOutput(args: GetServerKeyOutputArgs, opts?: InvokeOptions): Output<GetServerKeyResult>def get_server_key(key_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   server_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetServerKeyResult
def get_server_key_output(key_name: Optional[pulumi.Input[str]] = None,
                   resource_group_name: Optional[pulumi.Input[str]] = None,
                   server_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetServerKeyResult]func LookupServerKey(ctx *Context, args *LookupServerKeyArgs, opts ...InvokeOption) (*LookupServerKeyResult, error)
func LookupServerKeyOutput(ctx *Context, args *LookupServerKeyOutputArgs, opts ...InvokeOption) LookupServerKeyResultOutput> Note: This function is named LookupServerKey in the Go SDK.
public static class GetServerKey 
{
    public static Task<GetServerKeyResult> InvokeAsync(GetServerKeyArgs args, InvokeOptions? opts = null)
    public static Output<GetServerKeyResult> Invoke(GetServerKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerKeyResult> getServerKey(GetServerKeyArgs args, InvokeOptions options)
public static Output<GetServerKeyResult> getServerKey(GetServerKeyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getServerKey
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Key
Name string - The name of the server key to be retrieved.
 - Resource
Group stringName  - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 - Server
Name string - The name of the server.
 
- Key
Name string - The name of the server key to be retrieved.
 - Resource
Group stringName  - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 - Server
Name string - The name of the server.
 
- key
Name String - The name of the server key to be retrieved.
 - resource
Group StringName  - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 - server
Name String - The name of the server.
 
- key
Name string - The name of the server key to be retrieved.
 - resource
Group stringName  - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 - server
Name string - The name of the server.
 
- key_
name str - The name of the server key to be retrieved.
 - resource_
group_ strname  - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 - server_
name str - The name of the server.
 
- key
Name String - The name of the server key to be retrieved.
 - resource
Group StringName  - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 - server
Name String - The name of the server.
 
getServerKey Result
The following output properties are available:
- Auto
Rotation boolEnabled  - Key auto rotation opt-in flag. Either true or false.
 - Azure
Api stringVersion  - The Azure API version of the resource.
 - Creation
Date string - The server key creation date.
 - Id string
 - Resource ID.
 - Kind string
 - Kind of encryption protector. This is metadata used for the Azure portal experience.
 - Location string
 - Resource location.
 - Name string
 - Resource name.
 - Subregion string
 - Subregion of the server key.
 - Thumbprint string
 - Thumbprint of the server key.
 - Type string
 - Resource type.
 
- Auto
Rotation boolEnabled  - Key auto rotation opt-in flag. Either true or false.
 - Azure
Api stringVersion  - The Azure API version of the resource.
 - Creation
Date string - The server key creation date.
 - Id string
 - Resource ID.
 - Kind string
 - Kind of encryption protector. This is metadata used for the Azure portal experience.
 - Location string
 - Resource location.
 - Name string
 - Resource name.
 - Subregion string
 - Subregion of the server key.
 - Thumbprint string
 - Thumbprint of the server key.
 - Type string
 - Resource type.
 
- auto
Rotation BooleanEnabled  - Key auto rotation opt-in flag. Either true or false.
 - azure
Api StringVersion  - The Azure API version of the resource.
 - creation
Date String - The server key creation date.
 - id String
 - Resource ID.
 - kind String
 - Kind of encryption protector. This is metadata used for the Azure portal experience.
 - location String
 - Resource location.
 - name String
 - Resource name.
 - subregion String
 - Subregion of the server key.
 - thumbprint String
 - Thumbprint of the server key.
 - type String
 - Resource type.
 
- auto
Rotation booleanEnabled  - Key auto rotation opt-in flag. Either true or false.
 - azure
Api stringVersion  - The Azure API version of the resource.
 - creation
Date string - The server key creation date.
 - id string
 - Resource ID.
 - kind string
 - Kind of encryption protector. This is metadata used for the Azure portal experience.
 - location string
 - Resource location.
 - name string
 - Resource name.
 - subregion string
 - Subregion of the server key.
 - thumbprint string
 - Thumbprint of the server key.
 - type string
 - Resource type.
 
- auto_
rotation_ boolenabled  - Key auto rotation opt-in flag. Either true or false.
 - azure_
api_ strversion  - The Azure API version of the resource.
 - creation_
date str - The server key creation date.
 - id str
 - Resource ID.
 - kind str
 - Kind of encryption protector. This is metadata used for the Azure portal experience.
 - location str
 - Resource location.
 - name str
 - Resource name.
 - subregion str
 - Subregion of the server key.
 - thumbprint str
 - Thumbprint of the server key.
 - type str
 - Resource type.
 
- auto
Rotation BooleanEnabled  - Key auto rotation opt-in flag. Either true or false.
 - azure
Api StringVersion  - The Azure API version of the resource.
 - creation
Date String - The server key creation date.
 - id String
 - Resource ID.
 - kind String
 - Kind of encryption protector. This is metadata used for the Azure portal experience.
 - location String
 - Resource location.
 - name String
 - Resource name.
 - subregion String
 - Subregion of the server key.
 - thumbprint String
 - Thumbprint of the server key.
 - type String
 - Resource type.
 
Package Details
- Repository
 - Azure Native pulumi/pulumi-azure-native
 - License
 - Apache-2.0