1. Packages
  2. Azure Native
  3. API Docs
  4. azurearcdata
  5. PostgresInstance
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.azurearcdata.PostgresInstance

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    A Postgres Instance. Azure REST API version: 2023-01-15-preview. Prior API version in Azure Native 1.x: 2021-06-01-preview.

    Example Usage

    Create or update a Postgres Instance.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var postgresInstance = new AzureNative.AzureArcData.PostgresInstance("postgresInstance", new()
        {
            ExtendedLocation = new AzureNative.AzureArcData.Inputs.ExtendedLocationArgs
            {
                Name = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation",
                Type = AzureNative.AzureArcData.ExtendedLocationTypes.CustomLocation,
            },
            Location = "eastus",
            PostgresInstanceName = "testpostgresInstance",
            Properties = new AzureNative.AzureArcData.Inputs.PostgresInstancePropertiesArgs
            {
                Admin = "admin",
                BasicLoginInformation = new AzureNative.AzureArcData.Inputs.BasicLoginInformationArgs
                {
                    Password = "********",
                    Username = "username",
                },
                DataControllerId = "dataControllerId",
                K8sRaw = 
                {
                    { "apiVersion", "apiVersion" },
                    { "kind", "postgresql-12" },
                    { "metadata", 
                    {
                        { "creationTimestamp", "2020-08-25T14:55:10Z" },
                        { "generation", 1 },
                        { "name", "pg1" },
                        { "namespace", "test" },
                        { "resourceVersion", "527780" },
                        { "selfLink", "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1" },
                        { "uid", "1111aaaa-ffff-ffff-ffff-99999aaaaaaa" },
                    } },
                    { "spec", 
                    {
                        { "backups", 
                        {
                            { "deltaMinutes", 3 },
                            { "fullMinutes", 10 },
                            { "tiers", new[]
                            {
                                
                                {
                                    { "retention", 
                                    {
                                        { "maximums", new[]
                                        {
                                            "6",
                                            "512MB",
                                        } },
                                        { "minimums", new[]
                                        {
                                            "3",
                                        } },
                                    } },
                                    { "storage", 
                                    {
                                        { "volumeSize", "1Gi" },
                                    } },
                                },
                            } },
                        } },
                        { "engine", 
                        {
                            { "extensions", new[]
                            {
                                
                                {
                                    { "name", "citus" },
                                },
                            } },
                        } },
                        { "scale", 
                        {
                            { "shards", 3 },
                        } },
                        { "scheduling", 
                        {
                            { "default", 
                            {
                                { "resources", 
                                {
                                    { "requests", 
                                    {
                                        { "memory", "256Mi" },
                                    } },
                                } },
                            } },
                        } },
                        { "service", 
                        {
                            { "type", "NodePort" },
                        } },
                        { "storage", 
                        {
                            { "data", 
                            {
                                { "className", "local-storage" },
                                { "size", "5Gi" },
                            } },
                            { "logs", 
                            {
                                { "className", "local-storage" },
                                { "size", "5Gi" },
                            } },
                        } },
                    } },
                    { "status", 
                    {
                        { "externalEndpoint", null },
                        { "readyPods", "4/4" },
                        { "state", "Ready" },
                    } },
                },
            },
            ResourceGroupName = "testrg",
            Sku = new AzureNative.AzureArcData.Inputs.PostgresInstanceSkuArgs
            {
                Dev = true,
                Name = "default",
                Tier = AzureNative.AzureArcData.PostgresInstanceSkuTier.Hyperscale,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/azurearcdata/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := azurearcdata.NewPostgresInstance(ctx, "postgresInstance", &azurearcdata.PostgresInstanceArgs{
    			ExtendedLocation: &azurearcdata.ExtendedLocationArgs{
    				Name: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation"),
    				Type: pulumi.String(azurearcdata.ExtendedLocationTypesCustomLocation),
    			},
    			Location:             pulumi.String("eastus"),
    			PostgresInstanceName: pulumi.String("testpostgresInstance"),
    			Properties: &azurearcdata.PostgresInstancePropertiesArgs{
    				Admin: pulumi.String("admin"),
    				BasicLoginInformation: &azurearcdata.BasicLoginInformationArgs{
    					Password: pulumi.String("********"),
    					Username: pulumi.String("username"),
    				},
    				DataControllerId: pulumi.String("dataControllerId"),
    				K8sRaw: pulumi.Any{
    					ApiVersion: "apiVersion",
    					Kind:       "postgresql-12",
    					Metadata: map[string]interface{}{
    						"creationTimestamp": "2020-08-25T14:55:10Z",
    						"generation":        1,
    						"name":              "pg1",
    						"namespace":         "test",
    						"resourceVersion":   "527780",
    						"selfLink":          "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1",
    						"uid":               "1111aaaa-ffff-ffff-ffff-99999aaaaaaa",
    					},
    					Spec: map[string]interface{}{
    						"backups": map[string]interface{}{
    							"deltaMinutes": 3,
    							"fullMinutes":  10,
    							"tiers": []map[string]interface{}{
    								map[string]interface{}{
    									"retention": map[string]interface{}{
    										"maximums": []string{
    											"6",
    											"512MB",
    										},
    										"minimums": []string{
    											"3",
    										},
    									},
    									"storage": map[string]interface{}{
    										"volumeSize": "1Gi",
    									},
    								},
    							},
    						},
    						"engine": map[string]interface{}{
    							"extensions": []map[string]interface{}{
    								map[string]interface{}{
    									"name": "citus",
    								},
    							},
    						},
    						"scale": map[string]interface{}{
    							"shards": 3,
    						},
    						"scheduling": map[string]interface{}{
    							"default": map[string]interface{}{
    								"resources": map[string]interface{}{
    									"requests": map[string]interface{}{
    										"memory": "256Mi",
    									},
    								},
    							},
    						},
    						"service": map[string]interface{}{
    							"type": "NodePort",
    						},
    						"storage": map[string]interface{}{
    							"data": map[string]interface{}{
    								"className": "local-storage",
    								"size":      "5Gi",
    							},
    							"logs": map[string]interface{}{
    								"className": "local-storage",
    								"size":      "5Gi",
    							},
    						},
    					},
    					Status: map[string]interface{}{
    						"externalEndpoint": nil,
    						"readyPods":        "4/4",
    						"state":            "Ready",
    					},
    				},
    			},
    			ResourceGroupName: pulumi.String("testrg"),
    			Sku: &azurearcdata.PostgresInstanceSkuArgs{
    				Dev:  pulumi.Bool(true),
    				Name: pulumi.String("default"),
    				Tier: azurearcdata.PostgresInstanceSkuTierHyperscale,
    			},
    		})
    		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.azurearcdata.PostgresInstance;
    import com.pulumi.azurenative.azurearcdata.PostgresInstanceArgs;
    import com.pulumi.azurenative.azurearcdata.inputs.ExtendedLocationArgs;
    import com.pulumi.azurenative.azurearcdata.inputs.PostgresInstancePropertiesArgs;
    import com.pulumi.azurenative.azurearcdata.inputs.BasicLoginInformationArgs;
    import com.pulumi.azurenative.azurearcdata.inputs.PostgresInstanceSkuArgs;
    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 postgresInstance = new PostgresInstance("postgresInstance", PostgresInstanceArgs.builder()        
                .extendedLocation(ExtendedLocationArgs.builder()
                    .name("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation")
                    .type("CustomLocation")
                    .build())
                .location("eastus")
                .postgresInstanceName("testpostgresInstance")
                .properties(PostgresInstancePropertiesArgs.builder()
                    .admin("admin")
                    .basicLoginInformation(BasicLoginInformationArgs.builder()
                        .password("********")
                        .username("username")
                        .build())
                    .dataControllerId("dataControllerId")
                    .k8sRaw(Map.ofEntries(
                        Map.entry("apiVersion", "apiVersion"),
                        Map.entry("kind", "postgresql-12"),
                        Map.entry("metadata", Map.ofEntries(
                            Map.entry("creationTimestamp", "2020-08-25T14:55:10Z"),
                            Map.entry("generation", 1),
                            Map.entry("name", "pg1"),
                            Map.entry("namespace", "test"),
                            Map.entry("resourceVersion", "527780"),
                            Map.entry("selfLink", "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1"),
                            Map.entry("uid", "1111aaaa-ffff-ffff-ffff-99999aaaaaaa")
                        )),
                        Map.entry("spec", Map.ofEntries(
                            Map.entry("backups", Map.ofEntries(
                                Map.entry("deltaMinutes", 3),
                                Map.entry("fullMinutes", 10),
                                Map.entry("tiers", Map.ofEntries(
                                    Map.entry("retention", Map.ofEntries(
                                        Map.entry("maximums",                                     
                                            "6",
                                            "512MB"),
                                        Map.entry("minimums", "3")
                                    )),
                                    Map.entry("storage", Map.of("volumeSize", "1Gi"))
                                ))
                            )),
                            Map.entry("engine", Map.of("extensions", Map.of("name", "citus"))),
                            Map.entry("scale", Map.of("shards", 3)),
                            Map.entry("scheduling", Map.of("default", Map.of("resources", Map.of("requests", Map.of("memory", "256Mi"))))),
                            Map.entry("service", Map.of("type", "NodePort")),
                            Map.entry("storage", Map.ofEntries(
                                Map.entry("data", Map.ofEntries(
                                    Map.entry("className", "local-storage"),
                                    Map.entry("size", "5Gi")
                                )),
                                Map.entry("logs", Map.ofEntries(
                                    Map.entry("className", "local-storage"),
                                    Map.entry("size", "5Gi")
                                ))
                            ))
                        )),
                        Map.entry("status", Map.ofEntries(
                            Map.entry("externalEndpoint", null),
                            Map.entry("readyPods", "4/4"),
                            Map.entry("state", "Ready")
                        ))
                    ))
                    .build())
                .resourceGroupName("testrg")
                .sku(PostgresInstanceSkuArgs.builder()
                    .dev(true)
                    .name("default")
                    .tier("Hyperscale")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    postgres_instance = azure_native.azurearcdata.PostgresInstance("postgresInstance",
        extended_location=azure_native.azurearcdata.ExtendedLocationArgs(
            name="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation",
            type=azure_native.azurearcdata.ExtendedLocationTypes.CUSTOM_LOCATION,
        ),
        location="eastus",
        postgres_instance_name="testpostgresInstance",
        properties=azure_native.azurearcdata.PostgresInstancePropertiesArgs(
            admin="admin",
            basic_login_information=azure_native.azurearcdata.BasicLoginInformationArgs(
                password="********",
                username="username",
            ),
            data_controller_id="dataControllerId",
            k8s_raw={
                "apiVersion": "apiVersion",
                "kind": "postgresql-12",
                "metadata": {
                    "creationTimestamp": "2020-08-25T14:55:10Z",
                    "generation": 1,
                    "name": "pg1",
                    "namespace": "test",
                    "resourceVersion": "527780",
                    "selfLink": "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1",
                    "uid": "1111aaaa-ffff-ffff-ffff-99999aaaaaaa",
                },
                "spec": {
                    "backups": {
                        "deltaMinutes": 3,
                        "fullMinutes": 10,
                        "tiers": [{
                            "retention": {
                                "maximums": [
                                    "6",
                                    "512MB",
                                ],
                                "minimums": ["3"],
                            },
                            "storage": {
                                "volumeSize": "1Gi",
                            },
                        }],
                    },
                    "engine": {
                        "extensions": [{
                            "name": "citus",
                        }],
                    },
                    "scale": {
                        "shards": 3,
                    },
                    "scheduling": {
                        "default": {
                            "resources": {
                                "requests": {
                                    "memory": "256Mi",
                                },
                            },
                        },
                    },
                    "service": {
                        "type": "NodePort",
                    },
                    "storage": {
                        "data": {
                            "className": "local-storage",
                            "size": "5Gi",
                        },
                        "logs": {
                            "className": "local-storage",
                            "size": "5Gi",
                        },
                    },
                },
                "status": {
                    "externalEndpoint": None,
                    "readyPods": "4/4",
                    "state": "Ready",
                },
            },
        ),
        resource_group_name="testrg",
        sku=azure_native.azurearcdata.PostgresInstanceSkuArgs(
            dev=True,
            name="default",
            tier=azure_native.azurearcdata.PostgresInstanceSkuTier.HYPERSCALE,
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const postgresInstance = new azure_native.azurearcdata.PostgresInstance("postgresInstance", {
        extendedLocation: {
            name: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation",
            type: azure_native.azurearcdata.ExtendedLocationTypes.CustomLocation,
        },
        location: "eastus",
        postgresInstanceName: "testpostgresInstance",
        properties: {
            admin: "admin",
            basicLoginInformation: {
                password: "********",
                username: "username",
            },
            dataControllerId: "dataControllerId",
            k8sRaw: {
                apiVersion: "apiVersion",
                kind: "postgresql-12",
                metadata: {
                    creationTimestamp: "2020-08-25T14:55:10Z",
                    generation: 1,
                    name: "pg1",
                    namespace: "test",
                    resourceVersion: "527780",
                    selfLink: "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1",
                    uid: "1111aaaa-ffff-ffff-ffff-99999aaaaaaa",
                },
                spec: {
                    backups: {
                        deltaMinutes: 3,
                        fullMinutes: 10,
                        tiers: [{
                            retention: {
                                maximums: [
                                    "6",
                                    "512MB",
                                ],
                                minimums: ["3"],
                            },
                            storage: {
                                volumeSize: "1Gi",
                            },
                        }],
                    },
                    engine: {
                        extensions: [{
                            name: "citus",
                        }],
                    },
                    scale: {
                        shards: 3,
                    },
                    scheduling: {
                        "default": {
                            resources: {
                                requests: {
                                    memory: "256Mi",
                                },
                            },
                        },
                    },
                    service: {
                        type: "NodePort",
                    },
                    storage: {
                        data: {
                            className: "local-storage",
                            size: "5Gi",
                        },
                        logs: {
                            className: "local-storage",
                            size: "5Gi",
                        },
                    },
                },
                status: {
                    externalEndpoint: undefined,
                    readyPods: "4/4",
                    state: "Ready",
                },
            },
        },
        resourceGroupName: "testrg",
        sku: {
            dev: true,
            name: "default",
            tier: azure_native.azurearcdata.PostgresInstanceSkuTier.Hyperscale,
        },
    });
    
    resources:
      postgresInstance:
        type: azure-native:azurearcdata:PostgresInstance
        properties:
          extendedLocation:
            name: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation
            type: CustomLocation
          location: eastus
          postgresInstanceName: testpostgresInstance
          properties:
            admin: admin
            basicLoginInformation:
              password: '********'
              username: username
            dataControllerId: dataControllerId
            k8sRaw:
              apiVersion: apiVersion
              kind: postgresql-12
              metadata:
                creationTimestamp: 2020-08-25T14:55:10Z
                generation: 1
                name: pg1
                namespace: test
                resourceVersion: '527780'
                selfLink: /apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1
                uid: 1111aaaa-ffff-ffff-ffff-99999aaaaaaa
              spec:
                backups:
                  deltaMinutes: 3
                  fullMinutes: 10
                  tiers:
                    - retention:
                        maximums:
                          - '6'
                          - 512MB
                        minimums:
                          - '3'
                      storage:
                        volumeSize: 1Gi
                engine:
                  extensions:
                    - name: citus
                scale:
                  shards: 3
                scheduling:
                  default:
                    resources:
                      requests:
                        memory: 256Mi
                service:
                  type: NodePort
                storage:
                  data:
                    className: local-storage
                    size: 5Gi
                  logs:
                    className: local-storage
                    size: 5Gi
              status:
                externalEndpoint: null
                readyPods: 4/4
                state: Ready
          resourceGroupName: testrg
          sku:
            dev: true
            name: default
            tier: Hyperscale
    

    Create PostgresInstance Resource

    new PostgresInstance(name: string, args: PostgresInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def PostgresInstance(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         extended_location: Optional[ExtendedLocationArgs] = None,
                         location: Optional[str] = None,
                         postgres_instance_name: Optional[str] = None,
                         properties: Optional[PostgresInstancePropertiesArgs] = None,
                         resource_group_name: Optional[str] = None,
                         sku: Optional[PostgresInstanceSkuArgs] = None,
                         tags: Optional[Mapping[str, str]] = None)
    @overload
    def PostgresInstance(resource_name: str,
                         args: PostgresInstanceArgs,
                         opts: Optional[ResourceOptions] = None)
    func NewPostgresInstance(ctx *Context, name string, args PostgresInstanceArgs, opts ...ResourceOption) (*PostgresInstance, error)
    public PostgresInstance(string name, PostgresInstanceArgs args, CustomResourceOptions? opts = null)
    public PostgresInstance(String name, PostgresInstanceArgs args)
    public PostgresInstance(String name, PostgresInstanceArgs args, CustomResourceOptions options)
    
    type: azure-native:azurearcdata:PostgresInstance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args PostgresInstanceArgs
    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 PostgresInstanceArgs
    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 PostgresInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PostgresInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PostgresInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PostgresInstance 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 PostgresInstance resource accepts the following input properties:

    Properties Pulumi.AzureNative.AzureArcData.Inputs.PostgresInstanceProperties
    null
    ResourceGroupName string
    The name of the Azure resource group
    ExtendedLocation Pulumi.AzureNative.AzureArcData.Inputs.ExtendedLocation
    The extendedLocation of the resource.
    Location string
    The geo-location where the resource lives
    PostgresInstanceName string
    Name of Postgres Instance
    Sku Pulumi.AzureNative.AzureArcData.Inputs.PostgresInstanceSku
    Resource sku.
    Tags Dictionary<string, string>
    Resource tags.
    Properties PostgresInstancePropertiesArgs
    null
    ResourceGroupName string
    The name of the Azure resource group
    ExtendedLocation ExtendedLocationArgs
    The extendedLocation of the resource.
    Location string
    The geo-location where the resource lives
    PostgresInstanceName string
    Name of Postgres Instance
    Sku PostgresInstanceSkuArgs
    Resource sku.
    Tags map[string]string
    Resource tags.
    properties PostgresInstanceProperties
    null
    resourceGroupName String
    The name of the Azure resource group
    extendedLocation ExtendedLocation
    The extendedLocation of the resource.
    location String
    The geo-location where the resource lives
    postgresInstanceName String
    Name of Postgres Instance
    sku PostgresInstanceSku
    Resource sku.
    tags Map<String,String>
    Resource tags.
    properties PostgresInstanceProperties
    null
    resourceGroupName string
    The name of the Azure resource group
    extendedLocation ExtendedLocation
    The extendedLocation of the resource.
    location string
    The geo-location where the resource lives
    postgresInstanceName string
    Name of Postgres Instance
    sku PostgresInstanceSku
    Resource sku.
    tags {[key: string]: string}
    Resource tags.
    properties PostgresInstancePropertiesArgs
    null
    resource_group_name str
    The name of the Azure resource group
    extended_location ExtendedLocationArgs
    The extendedLocation of the resource.
    location str
    The geo-location where the resource lives
    postgres_instance_name str
    Name of Postgres Instance
    sku PostgresInstanceSkuArgs
    Resource sku.
    tags Mapping[str, str]
    Resource tags.
    properties Property Map
    null
    resourceGroupName String
    The name of the Azure resource group
    extendedLocation Property Map
    The extendedLocation of the resource.
    location String
    The geo-location where the resource lives
    postgresInstanceName String
    Name of Postgres Instance
    sku Property Map
    Resource sku.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PostgresInstance resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.AzureArcData.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    BasicLoginInformation, BasicLoginInformationArgs

    Password string
    Login password.
    Username string
    Login username.
    Password string
    Login password.
    Username string
    Login username.
    password String
    Login password.
    username String
    Login username.
    password string
    Login password.
    username string
    Login username.
    password str
    Login password.
    username str
    Login username.
    password String
    Login password.
    username String
    Login username.

    BasicLoginInformationResponse, BasicLoginInformationResponseArgs

    Username string
    Login username.
    Username string
    Login username.
    username String
    Login username.
    username string
    Login username.
    username str
    Login username.
    username String
    Login username.

    ExtendedLocation, ExtendedLocationArgs

    Name string
    The name of the extended location.
    Type string | Pulumi.AzureNative.AzureArcData.ExtendedLocationTypes
    The type of the extended location.
    Name string
    The name of the extended location.
    Type string | ExtendedLocationTypes
    The type of the extended location.
    name String
    The name of the extended location.
    type String | ExtendedLocationTypes
    The type of the extended location.
    name string
    The name of the extended location.
    type string | ExtendedLocationTypes
    The type of the extended location.
    name str
    The name of the extended location.
    type str | ExtendedLocationTypes
    The type of the extended location.
    name String
    The name of the extended location.
    type String | "CustomLocation"
    The type of the extended location.

    ExtendedLocationResponse, ExtendedLocationResponseArgs

    Name string
    The name of the extended location.
    Type string
    The type of the extended location.
    Name string
    The name of the extended location.
    Type string
    The type of the extended location.
    name String
    The name of the extended location.
    type String
    The type of the extended location.
    name string
    The name of the extended location.
    type string
    The type of the extended location.
    name str
    The name of the extended location.
    type str
    The type of the extended location.
    name String
    The name of the extended location.
    type String
    The type of the extended location.

    ExtendedLocationTypes, ExtendedLocationTypesArgs

    CustomLocation
    CustomLocation
    ExtendedLocationTypesCustomLocation
    CustomLocation
    CustomLocation
    CustomLocation
    CustomLocation
    CustomLocation
    CUSTOM_LOCATION
    CustomLocation
    "CustomLocation"
    CustomLocation

    PostgresInstanceProperties, PostgresInstancePropertiesArgs

    Admin string
    The instance admin
    BasicLoginInformation Pulumi.AzureNative.AzureArcData.Inputs.BasicLoginInformation
    Username and password for basic authentication.
    DataControllerId string
    The data controller id
    K8sRaw object
    The raw kubernetes information
    LastUploadedDate string
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    Admin string
    The instance admin
    BasicLoginInformation BasicLoginInformation
    Username and password for basic authentication.
    DataControllerId string
    The data controller id
    K8sRaw interface{}
    The raw kubernetes information
    LastUploadedDate string
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    admin String
    The instance admin
    basicLoginInformation BasicLoginInformation
    Username and password for basic authentication.
    dataControllerId String
    The data controller id
    k8sRaw Object
    The raw kubernetes information
    lastUploadedDate String
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    admin string
    The instance admin
    basicLoginInformation BasicLoginInformation
    Username and password for basic authentication.
    dataControllerId string
    The data controller id
    k8sRaw any
    The raw kubernetes information
    lastUploadedDate string
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    admin str
    The instance admin
    basic_login_information BasicLoginInformation
    Username and password for basic authentication.
    data_controller_id str
    The data controller id
    k8s_raw Any
    The raw kubernetes information
    last_uploaded_date str
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    admin String
    The instance admin
    basicLoginInformation Property Map
    Username and password for basic authentication.
    dataControllerId String
    The data controller id
    k8sRaw Any
    The raw kubernetes information
    lastUploadedDate String
    Last uploaded date from Kubernetes cluster. Defaults to current date time

    PostgresInstancePropertiesResponse, PostgresInstancePropertiesResponseArgs

    ProvisioningState string
    The provisioning state of the Azure Arc-enabled PostgreSQL instance.
    Admin string
    The instance admin
    BasicLoginInformation Pulumi.AzureNative.AzureArcData.Inputs.BasicLoginInformationResponse
    Username and password for basic authentication.
    DataControllerId string
    The data controller id
    K8sRaw object
    The raw kubernetes information
    LastUploadedDate string
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    ProvisioningState string
    The provisioning state of the Azure Arc-enabled PostgreSQL instance.
    Admin string
    The instance admin
    BasicLoginInformation BasicLoginInformationResponse
    Username and password for basic authentication.
    DataControllerId string
    The data controller id
    K8sRaw interface{}
    The raw kubernetes information
    LastUploadedDate string
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    provisioningState String
    The provisioning state of the Azure Arc-enabled PostgreSQL instance.
    admin String
    The instance admin
    basicLoginInformation BasicLoginInformationResponse
    Username and password for basic authentication.
    dataControllerId String
    The data controller id
    k8sRaw Object
    The raw kubernetes information
    lastUploadedDate String
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    provisioningState string
    The provisioning state of the Azure Arc-enabled PostgreSQL instance.
    admin string
    The instance admin
    basicLoginInformation BasicLoginInformationResponse
    Username and password for basic authentication.
    dataControllerId string
    The data controller id
    k8sRaw any
    The raw kubernetes information
    lastUploadedDate string
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    provisioning_state str
    The provisioning state of the Azure Arc-enabled PostgreSQL instance.
    admin str
    The instance admin
    basic_login_information BasicLoginInformationResponse
    Username and password for basic authentication.
    data_controller_id str
    The data controller id
    k8s_raw Any
    The raw kubernetes information
    last_uploaded_date str
    Last uploaded date from Kubernetes cluster. Defaults to current date time
    provisioningState String
    The provisioning state of the Azure Arc-enabled PostgreSQL instance.
    admin String
    The instance admin
    basicLoginInformation Property Map
    Username and password for basic authentication.
    dataControllerId String
    The data controller id
    k8sRaw Any
    The raw kubernetes information
    lastUploadedDate String
    Last uploaded date from Kubernetes cluster. Defaults to current date time

    PostgresInstanceSku, PostgresInstanceSkuArgs

    Name string
    The name of the SKU. It is typically a letter+number code
    Capacity int
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    Dev bool
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    Family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    Size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    Tier Pulumi.AzureNative.AzureArcData.PostgresInstanceSkuTier
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    Name string
    The name of the SKU. It is typically a letter+number code
    Capacity int
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    Dev bool
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    Family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    Size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    Tier PostgresInstanceSkuTier
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    name String
    The name of the SKU. It is typically a letter+number code
    capacity Integer
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    dev Boolean
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    family String
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    size String
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    tier PostgresInstanceSkuTier
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    name string
    The name of the SKU. It is typically a letter+number code
    capacity number
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    dev boolean
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    tier PostgresInstanceSkuTier
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    name str
    The name of the SKU. It is typically a letter+number code
    capacity int
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    dev bool
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    family str
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    size str
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    tier PostgresInstanceSkuTier
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    name String
    The name of the SKU. It is typically a letter+number code
    capacity Number
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    dev Boolean
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    family String
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    size String
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    tier "Hyperscale"
    This field is required to be implemented by the Resource Provider if the service has more than one tier.

    PostgresInstanceSkuResponse, PostgresInstanceSkuResponseArgs

    Name string
    The name of the SKU. It is typically a letter+number code
    Capacity int
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    Dev bool
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    Family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    Size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    Tier string
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    Name string
    The name of the SKU. It is typically a letter+number code
    Capacity int
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    Dev bool
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    Family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    Size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    Tier string
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    name String
    The name of the SKU. It is typically a letter+number code
    capacity Integer
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    dev Boolean
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    family String
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    size String
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    tier String
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    name string
    The name of the SKU. It is typically a letter+number code
    capacity number
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    dev boolean
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    tier string
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    name str
    The name of the SKU. It is typically a letter+number code
    capacity int
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    dev bool
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    family str
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    size str
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    tier str
    This field is required to be implemented by the Resource Provider if the service has more than one tier.
    name String
    The name of the SKU. It is typically a letter+number code
    capacity Number
    If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
    dev Boolean
    Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
    family String
    If the service has different generations of hardware, for the same SKU, then that can be captured here.
    size String
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    tier String
    This field is required to be implemented by the Resource Provider if the service has more than one tier.

    PostgresInstanceSkuTier, PostgresInstanceSkuTierArgs

    Hyperscale
    Hyperscale
    PostgresInstanceSkuTierHyperscale
    Hyperscale
    Hyperscale
    Hyperscale
    Hyperscale
    Hyperscale
    HYPERSCALE
    Hyperscale
    "Hyperscale"
    Hyperscale

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:azurearcdata:PostgresInstance testpostgresInstance /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/postgresInstances/{postgresInstanceName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi