1. Packages
  2. Azure Native v1
  3. API Docs
  4. dbforpostgresql
  5. getServerKey
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.dbforpostgresql.getServerKey

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Gets a PostgreSQL Server key. API Version: 2020-01-01.

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:dbforpostgresql:getServerKey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    KeyName string
    The name of the PostgreSQL Server key to be retrieved.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServerName string
    The name of the server.
    KeyName string
    The name of the PostgreSQL Server key to be retrieved.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServerName string
    The name of the server.
    keyName String
    The name of the PostgreSQL Server key to be retrieved.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serverName String
    The name of the server.
    keyName string
    The name of the PostgreSQL Server key to be retrieved.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    serverName string
    The name of the server.
    key_name str
    The name of the PostgreSQL Server key to be retrieved.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    server_name str
    The name of the server.
    keyName String
    The name of the PostgreSQL Server key to be retrieved.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serverName String
    The name of the server.

    getServerKey Result

    The following output properties are available:

    CreationDate string
    The key creation date.
    Id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Kind string
    Kind of encryption protector used to protect the key.
    Name string
    The name of the resource
    ServerKeyType string
    The key type like 'AzureKeyVault'.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Uri string
    The URI of the key.
    CreationDate string
    The key creation date.
    Id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Kind string
    Kind of encryption protector used to protect the key.
    Name string
    The name of the resource
    ServerKeyType string
    The key type like 'AzureKeyVault'.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Uri string
    The URI of the key.
    creationDate String
    The key creation date.
    id String
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    kind String
    Kind of encryption protector used to protect the key.
    name String
    The name of the resource
    serverKeyType String
    The key type like 'AzureKeyVault'.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    uri String
    The URI of the key.
    creationDate string
    The key creation date.
    id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    kind string
    Kind of encryption protector used to protect the key.
    name string
    The name of the resource
    serverKeyType string
    The key type like 'AzureKeyVault'.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    uri string
    The URI of the key.
    creation_date str
    The key creation date.
    id str
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    kind str
    Kind of encryption protector used to protect the key.
    name str
    The name of the resource
    server_key_type str
    The key type like 'AzureKeyVault'.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    uri str
    The URI of the key.
    creationDate String
    The key creation date.
    id String
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    kind String
    Kind of encryption protector used to protect the key.
    name String
    The name of the resource
    serverKeyType String
    The key type like 'AzureKeyVault'.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    uri String
    The URI of the key.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi