azure-native.dbforpostgresql.Configuration
Explore with Pulumi AI
Server parameter.
Uses Azure REST API version 2024-08-01. In version 2.x of the Azure Native provider, it used API version 2022-12-01.
Other available API versions: 2022-12-01, 2023-03-01-preview, 2023-06-01-preview, 2023-12-01-preview, 2024-03-01-preview, 2024-11-01-preview, 2025-01-01-preview, 2025-06-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native dbforpostgresql [ApiVersion]
. See the version guide for details.
Example Usage
Update, using Put verb, the value assigned to a specific modifiable server parameter of a flexible server.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var configuration = new AzureNative.DBforPostgreSQL.Configuration("configuration", new()
{
ConfigurationName = "constraint_exclusion",
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
Source = "user-override",
Value = "on",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewConfiguration(ctx, "configuration", &dbforpostgresql.ConfigurationArgs{
ConfigurationName: pulumi.String("constraint_exclusion"),
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
Source: pulumi.String("user-override"),
Value: pulumi.String("on"),
})
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.Configuration;
import com.pulumi.azurenative.dbforpostgresql.ConfigurationArgs;
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 configuration = new Configuration("configuration", ConfigurationArgs.builder()
.configurationName("constraint_exclusion")
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.source("user-override")
.value("on")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const configuration = new azure_native.dbforpostgresql.Configuration("configuration", {
configurationName: "constraint_exclusion",
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
source: "user-override",
value: "on",
});
import pulumi
import pulumi_azure_native as azure_native
configuration = azure_native.dbforpostgresql.Configuration("configuration",
configuration_name="constraint_exclusion",
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
source="user-override",
value="on")
resources:
configuration:
type: azure-native:dbforpostgresql:Configuration
properties:
configurationName: constraint_exclusion
resourceGroupName: exampleresourcegroup
serverName: exampleserver
source: user-override
value: on
Create Configuration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
configuration_name: Optional[str] = None,
source: Optional[str] = None,
value: Optional[str] = None)
func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)
public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)
public Configuration(String name, ConfigurationArgs args)
public Configuration(String name, ConfigurationArgs args, CustomResourceOptions options)
type: azure-native:dbforpostgresql:Configuration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConfigurationArgs
- 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 ConfigurationArgs
- 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 ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleconfigurationResourceResourceFromDbforpostgresql = new AzureNative.DBforPostgreSQL.Configuration("exampleconfigurationResourceResourceFromDbforpostgresql", new()
{
ResourceGroupName = "string",
ServerName = "string",
ConfigurationName = "string",
Source = "string",
Value = "string",
});
example, err := dbforpostgresql.NewConfiguration(ctx, "exampleconfigurationResourceResourceFromDbforpostgresql", &dbforpostgresql.ConfigurationArgs{
ResourceGroupName: pulumi.String("string"),
ServerName: pulumi.String("string"),
ConfigurationName: pulumi.String("string"),
Source: pulumi.String("string"),
Value: pulumi.String("string"),
})
var exampleconfigurationResourceResourceFromDbforpostgresql = new com.pulumi.azurenative.dbforpostgresql.Configuration("exampleconfigurationResourceResourceFromDbforpostgresql", com.pulumi.azurenative.dbforpostgresql.ConfigurationArgs.builder()
.resourceGroupName("string")
.serverName("string")
.configurationName("string")
.source("string")
.value("string")
.build());
exampleconfiguration_resource_resource_from_dbforpostgresql = azure_native.dbforpostgresql.Configuration("exampleconfigurationResourceResourceFromDbforpostgresql",
resource_group_name="string",
server_name="string",
configuration_name="string",
source="string",
value="string")
const exampleconfigurationResourceResourceFromDbforpostgresql = new azure_native.dbforpostgresql.Configuration("exampleconfigurationResourceResourceFromDbforpostgresql", {
resourceGroupName: "string",
serverName: "string",
configurationName: "string",
source: "string",
value: "string",
});
type: azure-native:dbforpostgresql:Configuration
properties:
configurationName: string
resourceGroupName: string
serverName: string
source: string
value: string
Configuration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Configuration resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Server
Name string - The name of the server.
- Configuration
Name string - Name of the server parameter.
- Source string
- Source of the value assigned to the server parameter. Required to update the value assigned to a specific modifiable server parameter.
- Value string
- Value of the server parameter (also known as configuration). Required to update the value assigned to a specific modifiable server parameter.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Server
Name string - The name of the server.
- Configuration
Name string - Name of the server parameter.
- Source string
- Source of the value assigned to the server parameter. Required to update the value assigned to a specific modifiable server parameter.
- Value string
- Value of the server parameter (also known as configuration). Required to update the value assigned to a specific modifiable server parameter.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- server
Name String - The name of the server.
- configuration
Name String - Name of the server parameter.
- source String
- Source of the value assigned to the server parameter. Required to update the value assigned to a specific modifiable server parameter.
- value String
- Value of the server parameter (also known as configuration). Required to update the value assigned to a specific modifiable server parameter.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- server
Name string - The name of the server.
- configuration
Name string - Name of the server parameter.
- source string
- Source of the value assigned to the server parameter. Required to update the value assigned to a specific modifiable server parameter.
- value string
- Value of the server parameter (also known as configuration). Required to update the value assigned to a specific modifiable server parameter.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- server_
name str - The name of the server.
- configuration_
name str - Name of the server parameter.
- source str
- Source of the value assigned to the server parameter. Required to update the value assigned to a specific modifiable server parameter.
- value str
- Value of the server parameter (also known as configuration). Required to update the value assigned to a specific modifiable server parameter.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- server
Name String - The name of the server.
- configuration
Name String - Name of the server parameter.
- source String
- Source of the value assigned to the server parameter. Required to update the value assigned to a specific modifiable server parameter.
- value String
- Value of the server parameter (also known as configuration). Required to update the value assigned to a specific modifiable server parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Configuration resource produces the following output properties:
- Allowed
Values string - Allowed values of the server parameter.
- Azure
Api stringVersion - The Azure API version of the resource.
- Data
Type string - Data type of the server parameter.
- Default
Value string - Value assigned by default to the server parameter.
- Description string
- Description of the server parameter.
- Documentation
Link string - Link pointing to the documentation of the server parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Config boolPending Restart - Indicates if the value assigned to the server parameter is pending a server restart for the value to take effect.
- Is
Dynamic boolConfig - Indicates if it's a dynamic (true) or static (false) server parameter. Static server parameters require a server restart after changing the value assigned to it, for the change to take effect. Dynamic server parameters do not require a server restart after changing the value assigned to it, for the change to take effect.
- Is
Read boolOnly - Indicates if it's a read-only (true) or modifiable (false) server parameter.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. DBfor Postgre SQL. 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"
- Unit string
- Units in which the server parameter value is expressed.
- Allowed
Values string - Allowed values of the server parameter.
- Azure
Api stringVersion - The Azure API version of the resource.
- Data
Type string - Data type of the server parameter.
- Default
Value string - Value assigned by default to the server parameter.
- Description string
- Description of the server parameter.
- Documentation
Link string - Link pointing to the documentation of the server parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Config boolPending Restart - Indicates if the value assigned to the server parameter is pending a server restart for the value to take effect.
- Is
Dynamic boolConfig - Indicates if it's a dynamic (true) or static (false) server parameter. Static server parameters require a server restart after changing the value assigned to it, for the change to take effect. Dynamic server parameters do not require a server restart after changing the value assigned to it, for the change to take effect.
- Is
Read boolOnly - Indicates if it's a read-only (true) or modifiable (false) server parameter.
- Name string
- The name of the resource
- System
Data 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"
- Unit string
- Units in which the server parameter value is expressed.
- allowed
Values String - Allowed values of the server parameter.
- azure
Api StringVersion - The Azure API version of the resource.
- data
Type String - Data type of the server parameter.
- default
Value String - Value assigned by default to the server parameter.
- description String
- Description of the server parameter.
- documentation
Link String - Link pointing to the documentation of the server parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Config BooleanPending Restart - Indicates if the value assigned to the server parameter is pending a server restart for the value to take effect.
- is
Dynamic BooleanConfig - Indicates if it's a dynamic (true) or static (false) server parameter. Static server parameters require a server restart after changing the value assigned to it, for the change to take effect. Dynamic server parameters do not require a server restart after changing the value assigned to it, for the change to take effect.
- is
Read BooleanOnly - Indicates if it's a read-only (true) or modifiable (false) server parameter.
- name String
- The name of the resource
- system
Data 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"
- unit String
- Units in which the server parameter value is expressed.
- allowed
Values string - Allowed values of the server parameter.
- azure
Api stringVersion - The Azure API version of the resource.
- data
Type string - Data type of the server parameter.
- default
Value string - Value assigned by default to the server parameter.
- description string
- Description of the server parameter.
- documentation
Link string - Link pointing to the documentation of the server parameter.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Config booleanPending Restart - Indicates if the value assigned to the server parameter is pending a server restart for the value to take effect.
- is
Dynamic booleanConfig - Indicates if it's a dynamic (true) or static (false) server parameter. Static server parameters require a server restart after changing the value assigned to it, for the change to take effect. Dynamic server parameters do not require a server restart after changing the value assigned to it, for the change to take effect.
- is
Read booleanOnly - Indicates if it's a read-only (true) or modifiable (false) server parameter.
- name string
- The name of the resource
- system
Data 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"
- unit string
- Units in which the server parameter value is expressed.
- allowed_
values str - Allowed values of the server parameter.
- azure_
api_ strversion - The Azure API version of the resource.
- data_
type str - Data type of the server parameter.
- default_
value str - Value assigned by default to the server parameter.
- description str
- Description of the server parameter.
- documentation_
link str - Link pointing to the documentation of the server parameter.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
config_ boolpending_ restart - Indicates if the value assigned to the server parameter is pending a server restart for the value to take effect.
- is_
dynamic_ boolconfig - Indicates if it's a dynamic (true) or static (false) server parameter. Static server parameters require a server restart after changing the value assigned to it, for the change to take effect. Dynamic server parameters do not require a server restart after changing the value assigned to it, for the change to take effect.
- is_
read_ boolonly - Indicates if it's a read-only (true) or modifiable (false) server parameter.
- name str
- The name of the resource
- 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"
- unit str
- Units in which the server parameter value is expressed.
- allowed
Values String - Allowed values of the server parameter.
- azure
Api StringVersion - The Azure API version of the resource.
- data
Type String - Data type of the server parameter.
- default
Value String - Value assigned by default to the server parameter.
- description String
- Description of the server parameter.
- documentation
Link String - Link pointing to the documentation of the server parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Config BooleanPending Restart - Indicates if the value assigned to the server parameter is pending a server restart for the value to take effect.
- is
Dynamic BooleanConfig - Indicates if it's a dynamic (true) or static (false) server parameter. Static server parameters require a server restart after changing the value assigned to it, for the change to take effect. Dynamic server parameters do not require a server restart after changing the value assigned to it, for the change to take effect.
- is
Read BooleanOnly - Indicates if it's a read-only (true) or modifiable (false) server parameter.
- name String
- The name of the resource
- system
Data 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"
- unit String
- Units in which the server parameter value is expressed.
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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:dbforpostgresql:Configuration constraint_exclusion /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0