az postgres flexible-server advanced-threat-protection-setting
Manage advanced threat protection setting for a PostgreSQL flexible server.
Commands
Name | Description | Type | Status |
---|---|---|---|
az postgres flexible-server advanced-threat-protection-setting show |
Get advanced threat protection settings for a PostgreSL flexible server. |
Core | GA |
az postgres flexible-server advanced-threat-protection-setting update |
Updates advanced threat protection setting state for a flexible server. |
Core | GA |
az postgres flexible-server advanced-threat-protection-setting show
Get advanced threat protection settings for a PostgreSL flexible server.
az postgres flexible-server advanced-threat-protection-setting show [--ids]
[--resource-group]
[--server-name]
[--subscription]
Examples
Get the details of advanced threat protection setting for a flexible server.
az postgres flexible-server advanced-threat-protection-setting show --resource-group testGroup --server-name testserver
Get the details of advanced threat protection setting for a flexible server in a different subscription.
az postgres flexible-server advanced-threat-protection-setting show --subscription testSubscription --resource-group testGroup --server-name testserver
Get the details of advanced threat protection setting for a flexible server using --ids parameter.
az postgres flexible-server advanced-threat-protection-setting show --ids /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testServer
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az postgres flexible-server advanced-threat-protection-setting update
Updates advanced threat protection setting state for a flexible server.
az postgres flexible-server advanced-threat-protection-setting update --state {Disabled, Enabled}
[--ids]
[--resource-group]
[--server-name]
[--subscription]
Examples
Enable advanced threat protection setting for a PostgreSQL flexible server.
az postgres flexible-server advanced-threat-protection-setting update --resource-group testGroup --server-name testserver --state Enabled
Disable advanced threat protection setting for a PostgreSQL flexible server.
az postgres flexible-server advanced-threat-protection-setting update --resource-group testGroup --server-name testserver --state Disabled
Required Parameters
State of advanced threat protection setting.
Property | Value |
---|---|
Accepted values: | Disabled, Enabled |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. Minimum 3 characters and maximum 63 characters.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |