Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
e26c1a8
initial commit
Jun 26, 2025
c685088
add tuning index and database changes
Jun 26, 2025
f2d9d34
remove tuning options change
Jun 26, 2025
b20fef5
changes for default db name
Jul 1, 2025
84d9579
add current state for index tuning
Jul 2, 2025
7bd7658
changed instance of tuning index name to tuning options
Jul 2, 2025
15affe0
update example reference from tuning index to tuning options
Jul 3, 2025
e117d04
change MVU and capability API to use PG17
Jul 3, 2025
8b2e1d7
change examples to use PG17
Jul 8, 2025
295f9b5
run prettier
Jul 8, 2025
08a39cb
fix prettier
Jul 8, 2025
1736962
address model validation
Jul 8, 2025
c5d93eb
revert cluster create example to use PG 16
Jul 8, 2025
cca7153
change the naming from IndexRecommendation* -> ObjectRecommendation*
Jul 8, 2025
c4622aa
Auto update CMK key version
Jul 9, 2025
481787b
change in the descriptions for the APIs in administrators, backups, c…
Jul 9, 2025
7ac8d42
update operation IDs for flexible server API to reflect create/update…
nachoalonsoportillo Jul 9, 2025
d27c827
refactor: update administrator examples and rename files for consistency
nachoalonsoportillo Jul 10, 2025
6b403f7
feat: add backups management API with create, delete, get, and list f…
nachoalonsoportillo Jul 10, 2025
1ccd93e
Refactor code structure for improved readability and maintainability
nachoalonsoportillo Jul 10, 2025
8d22f71
refactor: remove deprecated CheckNameAvailability API and examples
nachoalonsoportillo Jul 10, 2025
682b28e
Add example for updating PostgreSQL configuration 'constraint_exclusion'
nachoalonsoportillo Jul 10, 2025
d3801b6
feat: update database examples and restructure for consistency
nachoalonsoportillo Jul 10, 2025
443445a
feat: add examples for firewall rules create, delete, get, and list o…
nachoalonsoportillo Jul 10, 2025
1325b8b
Update PostgreSQL examples to reflect new dates for restore and creat…
nachoalonsoportillo Jul 10, 2025
40afe72
Add examples for PostgreSQL server management operations
nachoalonsoportillo Jul 10, 2025
7042c49
Add migration examples for PostgreSQL resource manager
nachoalonsoportillo Jul 10, 2025
392810a
Remove deprecated Long Term Retention backup examples and add new API…
nachoalonsoportillo Jul 10, 2025
49a1914
refactor: update PostgreSQL API specifications and examples for priva…
nachoalonsoportillo Jul 10, 2025
3e35c63
refactor: standardize response descriptions across PostgreSQL API spe…
nachoalonsoportillo Jul 10, 2025
5c71e62
Remove deprecated example JSON files and add new API specifications f…
nachoalonsoportillo Jul 10, 2025
f6793b2
fix: update firewall rule name pattern to enforce valid naming conven…
nachoalonsoportillo Jul 10, 2025
22f1414
feat: add new API specifications and examples for PostgreSQL administ…
nachoalonsoportillo Jul 10, 2025
a443d86
fix: update nextLink properties to use 'format: uri' for consistency …
nachoalonsoportillo Jul 10, 2025
4c99c62
feat: add Advanced Threat Protection settings API specifications and …
nachoalonsoportillo Jul 11, 2025
95247d2
fix: correct description casing for PrivateEndpoint and Database prop…
nachoalonsoportillo Jul 11, 2025
bb2809b
fix: correct typo in 'format' property for nextLink in AdvancedThreat…
nachoalonsoportillo Jul 11, 2025
c9ed3b6
fix: update input files and suppressions for flexible server API spec…
nachoalonsoportillo Jul 11, 2025
8621fc3
Implement code changes to enhance functionality and improve performance
nachoalonsoportillo Jul 11, 2025
0a4c40d
fix: update example references in PrivateEndpointConnections and Serv…
nachoalonsoportillo Jul 11, 2025
421729e
fix: correct indentation in examples for long term retention and tuni…
nachoalonsoportillo Jul 11, 2025
8db73b0
Delete outdated example for creating PostgreSQL servers with Microsof…
nachoalonsoportillo Jul 11, 2025
883e4de
fix: update reference for example in Servers.json to correct file path
nachoalonsoportillo Jul 11, 2025
a477611
fix: update reference for example in Servers.json to correct file path
nachoalonsoportillo Jul 11, 2025
820de1a
fix: update response structure in AdministratorsMicrosoftEntraAdd.jso…
nachoalonsoportillo Jul 11, 2025
6a15c07
fix: update example references and tags for server operations in Serv…
nachoalonsoportillo Jul 11, 2025
c561468
fix: update response structure in AdministratorsMicrosoftEntraDelete.…
nachoalonsoportillo Jul 11, 2025
bcd0712
fix: update example references in Servers.json to correct file paths …
nachoalonsoportillo Jul 11, 2025
4d8750e
Refactor PostgreSQL examples to update async operation URLs and remov…
nachoalonsoportillo Jul 11, 2025
bac423c
Refactor PostgreSQL examples for server promotion and tuning options
nachoalonsoportillo Jul 11, 2025
d8ea0d6
fix: remove redundant 200 response schema from VirtualEndpoints.json
nachoalonsoportillo Jul 11, 2025
3853f7c
fix: update response headers and remove redundant response bodies in …
nachoalonsoportillo Jul 11, 2025
573ea46
fix: streamline response structure and enhance details in TuningOptio…
nachoalonsoportillo Jul 11, 2025
7122c46
fix: update examples and descriptions to remove references to flexibl…
nachoalonsoportillo Jul 11, 2025
92c3d7f
Update Azure Async Operation headers in PostgreSQL examples for consi…
nachoalonsoportillo Jul 14, 2025
a39ae62
fix: enhance database name description for clarity and detail
nachoalonsoportillo Jul 14, 2025
f128191
fix: add Azure-AsyncOperation header to multiple JSON specifications …
nachoalonsoportillo Jul 14, 2025
ed32ed6
fix prettier
Jul 14, 2025
6a3e6f7
fix: add response headers for Azure-AsyncOperation in backup API
nachoalonsoportillo Jul 15, 2025
286a572
fix issue with the closing bracket
Jul 15, 2025
40a5afb
fix: remove redundant response headers for 202 status in backups API
nachoalonsoportillo Jul 15, 2025
aad7595
fix: update location references from westus to eastus in migration ex…
nachoalonsoportillo Jul 16, 2025
80a1d01
fix: update migration examples and cancel operation details in Postgr…
nachoalonsoportillo Jul 16, 2025
60794b9
fix: add example reference for updating existing migrations in Postgr…
nachoalonsoportillo Jul 21, 2025
911911e
fix: update administrator login examples to use 'exampleadministrator…
nachoalonsoportillo Jul 22, 2025
b58b999
fix: add 204 No Content response description to multiple PostgreSQL A…
nachoalonsoportillo Jul 22, 2025
2d5e913
fix: add 204 No Content response to multiple PostgreSQL API example f…
nachoalonsoportillo Jul 22, 2025
b99cc76
fix: update descriptions for CapabilityList, Migration, and Server to…
nachoalonsoportillo Jul 22, 2025
ad0d962
fix: add 204 No Content response to PrivateEndpointConnectionsDelete …
nachoalonsoportillo Jul 22, 2025
2c7d463
fix: rename CapabilityListResult and QuotaUsagesListResult to Capabil…
nachoalonsoportillo Jul 22, 2025
6e8b2cf
fix: rename enums for clarity and consistency across PostgreSQL speci…
nachoalonsoportillo Jul 23, 2025
2b482fb
fix: update descriptions in JSON files for consistency in quotation m…
nachoalonsoportillo Jul 23, 2025
26d36ef
fix: update descriptions in Migrations.json for clarity and consistency
nachoalonsoportillo Jul 23, 2025
4ff958f
fix: remove 'create' mutability from cluster properties in Servers.json
nachoalonsoportillo Jul 23, 2025
d60a402
fix: correct casing in MigrationSubStateDetails reference for consist…
nachoalonsoportillo Jul 23, 2025
fad88a3
Refactor code structure for improved readability and maintainability
nachoalonsoportillo Jul 23, 2025
94a9a4d
fix: correct casing in MigrationSubstateDetails for consistency
nachoalonsoportillo Jul 23, 2025
76d089d
fix: correct casing in MigrationSubstate for consistency
nachoalonsoportillo Jul 23, 2025
c6e1688
fix: update suppression reasons for consistency in PostgreSQL namespace
nachoalonsoportillo Jul 23, 2025
13b2039
fix: update suppression reasons for consistency in AdvancedThreatProt…
nachoalonsoportillo Jul 23, 2025
bff9a16
fix: update suppression reasons for consistency in PostgreSQL API con…
nachoalonsoportillo Jul 23, 2025
c7a6f5a
fix: update suppression reasons and codes for consistency in PostgreS…
nachoalonsoportillo Jul 23, 2025
b24b807
fix: add suppression reasons for PatchResponseCodes in PostgreSQL API…
nachoalonsoportillo Jul 23, 2025
f20bf57
fix: add suppression for DeleteResponseBody in Migrations.json for AP…
nachoalonsoportillo Jul 23, 2025
7827d01
fix: update suppression code for DeleteResponseBody in Migrations.jso…
nachoalonsoportillo Jul 23, 2025
432907c
fix: improve descriptions and add enum values for PostgreSQL API spec…
nachoalonsoportillo Jul 25, 2025
009b26c
fix: update migration references and example parameters for consisten…
nachoalonsoportillo Jul 25, 2025
762db94
fix: update NameAvailability references and add description for serve…
nachoalonsoportillo Jul 25, 2025
8ee5940
fix: remove outdated NameAvailability example files and add new examp…
nachoalonsoportillo Jul 25, 2025
e00d0f9
fix: update AdvancedThreatProtectionSettings references and rename ex…
nachoalonsoportillo Jul 25, 2025
d376c28
fix: update parameters structure in NameAvailability examples for con…
nachoalonsoportillo Jul 25, 2025
1378cc5
fix: update VirtualNetworkSubnetUsage references for consistency in P…
nachoalonsoportillo Jul 25, 2025
ff489f2
fix: update OperationList reference and remove unused definitions in …
nachoalonsoportillo Jul 25, 2025
63dabfa
fix: update parameter references and remove unused parameters in Migr…
nachoalonsoportillo Jul 25, 2025
2a5546f
fix: update parameter references for consistency in PostgreSQL API sp…
nachoalonsoportillo Jul 25, 2025
186ac91
fix: update parameter references for consistency in Migrations.json f…
nachoalonsoportillo Jul 25, 2025
846144d
fix: update targetDbServerName to serverName for consistency in Postg…
nachoalonsoportillo Jul 25, 2025
f1655f4
fix: update targetDbServerName to serverName for consistency in Migra…
nachoalonsoportillo Jul 25, 2025
3756cd9
fix: add x-ms-pageable definition for pagination support in Operation…
nachoalonsoportillo Jul 25, 2025
37acccc
fix: update minorVersion to 5 in multiple example JSON files for Post…
nachoalonsoportillo Jul 25, 2025
a8c1222
fix: add detailed operation definitions and update reference in Opera…
nachoalonsoportillo Jul 25, 2025
31822b4
fix: rename additionalProperties to extraProperties for clarity in JS…
nachoalonsoportillo Jul 25, 2025
302c52c
fix: replace extraProperties with additionalProperties for consistenc…
nachoalonsoportillo Jul 25, 2025
24e1b74
fix: update operation and server definitions for consistency in API s…
nachoalonsoportillo Jul 25, 2025
cbd77e1
fix: update references in Servers.json for patch operations and add n…
nachoalonsoportillo Jul 25, 2025
462a438
fix: update HighAvailability reference and add HighAvailabilityForPat…
nachoalonsoportillo Jul 25, 2025
741a1e4
fix: remove empty object definitions for 204 responses in JSON examples
nachoalonsoportillo Jul 25, 2025
cb4b399
Rename folder
nachoalonsoportillo Jul 25, 2025
d50acfb
Base commit
nachoalonsoportillo Jul 25, 2025
5a35b7c
To facilitate comparison
nachoalonsoportillo Jul 25, 2025
5ef1a6d
fix: update reference to ServerList in Replicas.json to point to Flex…
nachoalonsoportillo Jul 25, 2025
79bd1c3
Add VirtualNetworkSubnetUsage API definition for PostgreSQL management
nachoalonsoportillo Jul 25, 2025
aa9d943
feat: add PUT operation for updating server configurations and exampl…
nachoalonsoportillo Jul 25, 2025
c7e7546
fix: update suppression codes in readme.md to align with existing API…
nachoalonsoportillo Jul 25, 2025
d9827e3
fix: update suppression code from PatchResponseCodes to PutResponseCo…
nachoalonsoportillo Jul 25, 2025
4e99869
Merge branch 'main' into mattboentoro/2025-06-01-preview
nachoalonsoportillo Jul 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
{

Check notice on line 1 in specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2025-06-01-preview/AdvancedThreatProtectionSettings.json

View workflow job for this annotation

GitHub Actions / TypeSpec Requirement

Your service description will soon be required to convert from OpenAPI to TypeSpec. See https://aka.ms/azsdk/typespec.
"swagger": "2.0",
"info": {
"title": "PostgreSQLManagementClient",
"description": "The Azure Database for PostgreSQL management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, administrators, log files, configurations, migrations, advanced threat protection settings with new business model.",
"version": "2025-06-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Microsoft Entra OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings": {
"get": {
"tags": [
"AdvancedThreatProtectionSettings"
],
"description": "Lists state of advanced threat protection settings for a server.",
"operationId": "AdvancedThreatProtectionSettings_ListByServer",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../types/common-types.json#/parameters/ServerNameParameter"
}
],
"responses": {
"200": {
"description": "OK.",
"schema": {
"$ref": "#/definitions/AdvancedThreatProtectionSettingsList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"List state of advanced threat protection settings for a server.": {
"$ref": "./examples/AdvancedThreatProtectionSettingsListByServer.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{threatProtectionName}": {
"get": {
"tags": [
"AdvancedThreatProtectionSettings"
],
"description": "Gets state of advanced threat protection settings for a server.",
"operationId": "AdvancedThreatProtectionSettings_Get",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../types/common-types.json#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/ThreatProtectionNameParameter"
}
],
"responses": {
"200": {
"description": "OK.",
"schema": {
"$ref": "#/definitions/AdvancedThreatProtectionSettingsModel"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get state of advanced threat protection settings for a server.": {
"$ref": "./examples/AdvancedThreatProtectionSettingsGet.json"
}
}
},
"put": {
"tags": [
"AdvancedThreatProtectionSettings"
],
"description": "Creates or updates a server's Advanced Threat Protection settings.",
"operationId": "ServerThreatProtectionSettings_CreateOrUpdate",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../types/common-types.json#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/ThreatProtectionNameParameter"
},
{
"name": "parameters",
"in": "body",
"description": "The Advanced Threat Protection state for the server.",
"required": true,
"schema": {
"$ref": "#/definitions/AdvancedThreatProtectionSettingsModel"
}
}
],
"responses": {
"202": {
"description": "Accepted.",
"headers": {
"Location": {
"type": "string"
},
"Azure-AsyncOperation": {
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"x-ms-examples": {
"Update the advanced threat protection settings of a server.": {
"$ref": "./examples/AdvancedThreatProtectionSettingsCreateOrUpdate.json"
}
}
}
}
},
"definitions": {
"AdvancedThreatProtectionSettingsProperties": {
"description": "Properties of advanced threat protection state for a server.",
"required": [
"state"
],
"type": "object",
"properties": {
"state": {
"description": "Specifies the state of the advanced threat protection, whether it is enabled, disabled, or a state has not been applied yet on the server.",
"enum": [
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"name": "ThreatProtectionState",
"modelAsString": false
}
},
"creationTime": {
"format": "date-time",
"description": "Specifies the creation time (UTC) of the policy.",
"type": "string",
"readOnly": true
}
}
},
"AdvancedThreatProtectionSettingsModel": {
"description": "Advanced threat protection settings of the server.",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/AdvancedThreatProtectionSettingsProperties",
"description": "Advanced threat protection properties.",
"x-ms-client-flatten": true
}
}
},
"AdvancedThreatProtectionSettingsList": {
"description": "List of advanced threat protection settings for a server.",
"type": "object",
"properties": {
"value": {
"description": "Array of results.",
"type": "array",
"items": {
"$ref": "#/definitions/AdvancedThreatProtectionSettingsModel"
},
"readOnly": true
},
"nextLink": {
"description": "Link used to get the next page of results.",
"type": "string",
"format": "uri"
}
}
}
},
"parameters": {
"ThreatProtectionNameParameter": {
"name": "threatProtectionName",
"in": "path",
"description": "Name of the advanced threat protection settings.",
"required": true,
"type": "string",
"enum": [
"Default"
],
"x-ms-enum": {
"name": "ThreatProtectionName",
"modelAsString": true
},
"pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*",
"x-ms-parameter-location": "method"
}
}
}
Loading
Loading