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
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:
- Key
Name string - The name of the PostgreSQL Server key to be retrieved.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Server
Name string - The name of the server.
- Key
Name string - The name of the PostgreSQL Server key to be retrieved.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Server
Name string - The name of the server.
- key
Name String - The name of the PostgreSQL Server key to be retrieved.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- server
Name String - The name of the server.
- key
Name string - The name of the PostgreSQL Server key to be retrieved.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- server
Name string - The name of the server.
- key_
name str - The name of the PostgreSQL Server key to be retrieved.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- server_
name str - The name of the server.
- key
Name String - The name of the PostgreSQL Server key to be retrieved.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- server
Name String - The name of the server.
getServerKey Result
The following output properties are available:
- Creation
Date 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
- Server
Key stringType - 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 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
- Server
Key stringType - 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 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
- server
Key StringType - 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 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
- server
Key stringType - 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_ strtype - 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.
- creation
Date 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
- server
Key StringType - 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
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