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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.azurearcdata.getPostgresInstance
Explore with Pulumi AI
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Retrieves a postgres Instance resource Azure REST API version: 2023-01-15-preview.
Other available API versions: 2024-01-01, 2024-05-01-preview.
Using getPostgresInstance
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 getPostgresInstance(args: GetPostgresInstanceArgs, opts?: InvokeOptions): Promise<GetPostgresInstanceResult>
function getPostgresInstanceOutput(args: GetPostgresInstanceOutputArgs, opts?: InvokeOptions): Output<GetPostgresInstanceResult>def get_postgres_instance(postgres_instance_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetPostgresInstanceResult
def get_postgres_instance_output(postgres_instance_name: Optional[pulumi.Input[str]] = None,
                          resource_group_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetPostgresInstanceResult]func LookupPostgresInstance(ctx *Context, args *LookupPostgresInstanceArgs, opts ...InvokeOption) (*LookupPostgresInstanceResult, error)
func LookupPostgresInstanceOutput(ctx *Context, args *LookupPostgresInstanceOutputArgs, opts ...InvokeOption) LookupPostgresInstanceResultOutput> Note: This function is named LookupPostgresInstance in the Go SDK.
public static class GetPostgresInstance 
{
    public static Task<GetPostgresInstanceResult> InvokeAsync(GetPostgresInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetPostgresInstanceResult> Invoke(GetPostgresInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresInstanceResult> getPostgresInstance(GetPostgresInstanceArgs args, InvokeOptions options)
public static Output<GetPostgresInstanceResult> getPostgresInstance(GetPostgresInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:azurearcdata:getPostgresInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PostgresInstance stringName 
- Name of Postgres Instance
- ResourceGroup stringName 
- The name of the Azure resource group
- PostgresInstance stringName 
- Name of Postgres Instance
- ResourceGroup stringName 
- The name of the Azure resource group
- postgresInstance StringName 
- Name of Postgres Instance
- resourceGroup StringName 
- The name of the Azure resource group
- postgresInstance stringName 
- Name of Postgres Instance
- resourceGroup stringName 
- The name of the Azure resource group
- postgres_instance_ strname 
- Name of Postgres Instance
- resource_group_ strname 
- The name of the Azure resource group
- postgresInstance StringName 
- Name of Postgres Instance
- resourceGroup StringName 
- The name of the Azure resource group
getPostgresInstance Result
The following output properties are available:
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Properties
Pulumi.Azure Native. Azure Arc Data. Outputs. Postgres Instance Properties Response 
- null
- SystemData Pulumi.Azure Native. Azure Arc Data. Outputs. System Data Response 
- 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"
- ExtendedLocation Pulumi.Azure Native. Azure Arc Data. Outputs. Extended Location Response 
- The extendedLocation of the resource.
- Sku
Pulumi.Azure Native. Azure Arc Data. Outputs. Postgres Instance Sku Response 
- Resource sku.
- Dictionary<string, string>
- Resource tags.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Properties
PostgresInstance Properties Response 
- null
- SystemData SystemData Response 
- 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"
- ExtendedLocation ExtendedLocation Response 
- The extendedLocation of the resource.
- Sku
PostgresInstance Sku Response 
- Resource sku.
- map[string]string
- Resource tags.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- properties
PostgresInstance Properties Response 
- null
- systemData SystemData Response 
- 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"
- extendedLocation ExtendedLocation Response 
- The extendedLocation of the resource.
- sku
PostgresInstance Sku Response 
- Resource sku.
- Map<String,String>
- Resource tags.
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- properties
PostgresInstance Properties Response 
- null
- systemData SystemData Response 
- 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"
- extendedLocation ExtendedLocation Response 
- The extendedLocation of the resource.
- sku
PostgresInstance Sku Response 
- Resource sku.
- {[key: string]: string}
- Resource tags.
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- properties
PostgresInstance Properties Response 
- null
- system_data SystemData Response 
- 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"
- extended_location ExtendedLocation Response 
- The extendedLocation of the resource.
- sku
PostgresInstance Sku Response 
- Resource sku.
- Mapping[str, str]
- Resource tags.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- properties Property Map
- null
- 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"
- extendedLocation Property Map
- The extendedLocation of the resource.
- sku Property Map
- Resource sku.
- Map<String>
- Resource tags.
Supporting Types
BasicLoginInformationResponse   
- Username string
- Login username.
- Username string
- Login username.
- username String
- Login username.
- username string
- Login username.
- username str
- Login username.
- username String
- Login username.
ExtendedLocationResponse  
PostgresInstancePropertiesResponse   
- ProvisioningState string
- The provisioning state of the Azure Arc-enabled PostgreSQL instance.
- Admin string
- The instance admin
- BasicLogin Pulumi.Information Azure Native. Azure Arc Data. Inputs. Basic Login Information Response 
- Username and password for basic authentication.
- DataController stringId 
- The data controller id
- K8sRaw object
- The raw kubernetes information
- LastUploaded stringDate 
- 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
- BasicLogin BasicInformation Login Information Response 
- Username and password for basic authentication.
- DataController stringId 
- The data controller id
- K8sRaw interface{}
- The raw kubernetes information
- LastUploaded stringDate 
- 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
- basicLogin BasicInformation Login Information Response 
- Username and password for basic authentication.
- dataController StringId 
- The data controller id
- k8sRaw Object
- The raw kubernetes information
- lastUploaded StringDate 
- 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
- basicLogin BasicInformation Login Information Response 
- Username and password for basic authentication.
- dataController stringId 
- The data controller id
- k8sRaw any
- The raw kubernetes information
- lastUploaded stringDate 
- 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_ Basicinformation Login Information Response 
- Username and password for basic authentication.
- data_controller_ strid 
- The data controller id
- k8s_raw Any
- The raw kubernetes information
- last_uploaded_ strdate 
- 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
- basicLogin Property MapInformation 
- Username and password for basic authentication.
- dataController StringId 
- The data controller id
- k8sRaw Any
- The raw kubernetes information
- lastUploaded StringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
PostgresInstanceSkuResponse   
- 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.
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi