azure-native.dbforpostgresql.ServerKey
A PostgreSQL Server key. API Version: 2020-01-01.
Example Usage
Creates or updates a PostgreSQL Server key
using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverKey = new AzureNative.DBforPostgreSQL.ServerKey("serverKey", new()
{
KeyName = "someVault_someKey_01234567890123456789012345678901",
ResourceGroupName = "testrg",
ServerKeyType = "AzureKeyVault",
ServerName = "testserver",
Uri = "https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native/sdk/go/azure/dbforpostgresql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServerKey(ctx, "serverKey", &dbforpostgresql.ServerKeyArgs{
KeyName: pulumi.String("someVault_someKey_01234567890123456789012345678901"),
ResourceGroupName: pulumi.String("testrg"),
ServerKeyType: pulumi.String("AzureKeyVault"),
ServerName: pulumi.String("testserver"),
Uri: pulumi.String("https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.ServerKey;
import com.pulumi.azurenative.dbforpostgresql.ServerKeyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var serverKey = new ServerKey("serverKey", ServerKeyArgs.builder()
.keyName("someVault_someKey_01234567890123456789012345678901")
.resourceGroupName("testrg")
.serverKeyType("AzureKeyVault")
.serverName("testserver")
.uri("https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
server_key = azure_native.dbforpostgresql.ServerKey("serverKey",
key_name="someVault_someKey_01234567890123456789012345678901",
resource_group_name="testrg",
server_key_type="AzureKeyVault",
server_name="testserver",
uri="https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const serverKey = new azure_native.dbforpostgresql.ServerKey("serverKey", {
keyName: "someVault_someKey_01234567890123456789012345678901",
resourceGroupName: "testrg",
serverKeyType: "AzureKeyVault",
serverName: "testserver",
uri: "https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901",
});
resources:
serverKey:
type: azure-native:dbforpostgresql:ServerKey
properties:
keyName: someVault_someKey_01234567890123456789012345678901
resourceGroupName: testrg
serverKeyType: AzureKeyVault
serverName: testserver
uri: https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901
Create ServerKey Resource
new ServerKey(name: string, args: ServerKeyArgs, opts?: CustomResourceOptions);
@overload
def ServerKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
key_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_key_type: Optional[Union[str, ServerKeyType]] = None,
server_name: Optional[str] = None,
uri: Optional[str] = None)
@overload
def ServerKey(resource_name: str,
args: ServerKeyArgs,
opts: Optional[ResourceOptions] = None)
func NewServerKey(ctx *Context, name string, args ServerKeyArgs, opts ...ResourceOption) (*ServerKey, error)
public ServerKey(string name, ServerKeyArgs args, CustomResourceOptions? opts = null)
public ServerKey(String name, ServerKeyArgs args)
public ServerKey(String name, ServerKeyArgs args, CustomResourceOptions options)
type: azure-native:dbforpostgresql:ServerKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServerKeyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerKeyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ServerKey Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ServerKey resource accepts the following input properties:
- Resource
Group stringName The name of the resource group. The name is case insensitive.
- Server
Key string | Pulumi.Type Azure Native. DBfor Postgre SQL. Server Key Type The key type like 'AzureKeyVault'.
- Server
Name string The name of the server.
- Key
Name string The name of the PostgreSQL Server key to be operated on (updated or created).
- Uri string
The URI of the key.
- Resource
Group stringName The name of the resource group. The name is case insensitive.
- Server
Key string | ServerType Key Type The key type like 'AzureKeyVault'.
- Server
Name string The name of the server.
- Key
Name string The name of the PostgreSQL Server key to be operated on (updated or created).
- Uri string
The URI of the key.
- resource
Group StringName The name of the resource group. The name is case insensitive.
- server
Key String | ServerType Key Type The key type like 'AzureKeyVault'.
- server
Name String The name of the server.
- key
Name String The name of the PostgreSQL Server key to be operated on (updated or created).
- uri String
The URI of the key.
- resource
Group stringName The name of the resource group. The name is case insensitive.
- server
Key string | ServerType Key Type The key type like 'AzureKeyVault'.
- server
Name string The name of the server.
- key
Name string The name of the PostgreSQL Server key to be operated on (updated or created).
- uri string
The URI of the key.
- resource_
group_ strname The name of the resource group. The name is case insensitive.
- server_
key_ str | Servertype Key Type The key type like 'AzureKeyVault'.
- server_
name str The name of the server.
- key_
name str The name of the PostgreSQL Server key to be operated on (updated or created).
- uri str
The URI of the key.
- resource
Group StringName The name of the resource group. The name is case insensitive.
- server
Key String | "AzureType Key Vault" The key type like 'AzureKeyVault'.
- server
Name String The name of the server.
- key
Name String The name of the PostgreSQL Server key to be operated on (updated or created).
- uri String
The URI of the key.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerKey resource produces the following output properties:
- Creation
Date string The key creation date.
- Id string
The provider-assigned unique ID for this managed resource.
- Kind string
Kind of encryption protector used to protect the key.
- Name string
The name of the resource
- Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Creation
Date string The key creation date.
- Id string
The provider-assigned unique ID for this managed resource.
- Kind string
Kind of encryption protector used to protect the key.
- Name string
The name of the resource
- Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation
Date String The key creation date.
- id String
The provider-assigned unique ID for this managed resource.
- kind String
Kind of encryption protector used to protect the key.
- name String
The name of the resource
- type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation
Date string The key creation date.
- id string
The provider-assigned unique ID for this managed resource.
- kind string
Kind of encryption protector used to protect the key.
- name string
The name of the resource
- type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation_
date str The key creation date.
- id str
The provider-assigned unique ID for this managed resource.
- kind str
Kind of encryption protector used to protect the key.
- name str
The name of the resource
- type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- creation
Date String The key creation date.
- id String
The provider-assigned unique ID for this managed resource.
- kind String
Kind of encryption protector used to protect the key.
- name String
The name of the resource
- type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ServerKeyType
- Azure
Key Vault - AzureKeyVault
- Server
Key Type Azure Key Vault - AzureKeyVault
- Azure
Key Vault - AzureKeyVault
- Azure
Key Vault - AzureKeyVault
- AZURE_KEY_VAULT
- AzureKeyVault
- "Azure
Key Vault" - AzureKeyVault
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:dbforpostgresql:ServerKey omeVault_someKey_01234567890123456789012345678901 /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/keys/someVault_someKey_01234567890123456789012345678901
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0