openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 132 kB
JSON
{"openapi":"3.0.0","info":{"description":"The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.","title":"PostgreSQLManagementClient","version":"2017-12-01-preview","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2017-12-01-preview/postgresql.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"postgresql","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/providers/Microsoft.DBforPostgreSQL/operations":{"get":{"description":"Lists all of the available REST API operations.","operationId":"Operations_List","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationListResult"},"examples":{"OperationList":{"$ref":"#/components/examples/OperationList"}}}}}},"tags":["Operations"]}},"/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability":{"post":{"description":"Check the availability of name for resource","operationId":"CheckNameAvailability_Execute","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameAvailabilityRequest"}}},"description":"The required parameters for checking if resource name is available.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameAvailability"},"examples":{"NameAvailability":{"$ref":"#/components/examples/NameAvailability"}}}}}},"tags":["CheckNameAvailability"]}},"/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers":{"get":{"description":"List all the performance tiers at specified location in a given subscription.","operationId":"LocationBasedPerformanceTier_List","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/LocationNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerformanceTierListResult"},"examples":{"PerformanceTiersList":{"$ref":"#/components/examples/PerformanceTiersList"}}}}}},"tags":["LocationBasedPerformanceTier"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers":{"get":{"description":"List all the servers in a given subscription.","operationId":"Servers_List","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerListResult"},"examples":{"ServerList":{"$ref":"#/components/examples/ServerList"}}}}}},"tags":["Servers"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers":{"get":{"description":"List all the servers in a given resource group.","operationId":"Servers_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerListResult"},"examples":{"ServerListByResourceGroup":{"$ref":"#/components/examples/ServerListByResourceGroup"}}}}}},"tags":["Servers"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}":{"delete":{"description":"Deletes a server.","operationId":"Servers_Delete","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"204":{"description":"NoContent"}},"tags":["Servers"],"x-ms-long-running-operation":true},"get":{"description":"Gets information about a server.","operationId":"Servers_Get","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"},"examples":{"ServerGet":{"$ref":"#/components/examples/ServerGet"}}}}}},"tags":["Servers"]},"patch":{"description":"Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.","operationId":"Servers_Update","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerUpdateParameters"}}},"description":"The required parameters for updating a server.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"},"examples":{"ServerUpdate":{"$ref":"#/components/examples/ServerUpdate"}}}}},"202":{"description":"Accepted"}},"tags":["Servers"],"x-ms-long-running-operation":true},"put":{"description":"Creates a new server, or will overwrite an existing server.","operationId":"Servers_Create","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerForCreate"}}},"description":"The required parameters for creating or updating a server.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"},"examples":{"Create a database as a point in time restore":{"$ref":"#/components/examples/Create_a_database_as_a_point_in_time_restore"},"Create a new server":{"$ref":"#/components/examples/Create_a_new_server"},"Create a replica server":{"$ref":"#/components/examples/Create_a_replica_server"},"Create a server as a geo restore ":{"$ref":"#/components/examples/Create_a_server_as_a_geo_restore_"}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"},"examples":{"Create a database as a point in time restore":{"$ref":"#/components/examples/Create_a_database_as_a_point_in_time_restore"},"Create a new server":{"$ref":"#/components/examples/Create_a_new_server"},"Create a replica server":{"$ref":"#/components/examples/Create_a_replica_server"},"Create a server as a geo restore ":{"$ref":"#/components/examples/Create_a_server_as_a_geo_restore_"}}}}},"202":{"description":"Accepted"}},"tags":["Servers"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/Administrators/activeDirectory":{"delete":{"description":"Deletes AAD Administrator.","operationId":"ServerAdministrators_Delete","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAdministratorResource"},"examples":{"ServerAdministratorsDelete":{"$ref":"#/components/examples/ServerAdministratorsDelete"}}}}},"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAdministratorResource"},"examples":{"ServerAdministratorsDelete":{"$ref":"#/components/examples/ServerAdministratorsDelete"}}}}},"204":{"description":"NoContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAdministratorResource"},"examples":{"ServerAdministratorsDelete":{"$ref":"#/components/examples/ServerAdministratorsDelete"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ServerAdministrators"],"x-ms-long-running-operation":true},"get":{"description":"Gets information about a AAD server administrator.","operationId":"ServerAdministrators_Get","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAdministratorResource"},"examples":{"ServerAdministratorGet":{"$ref":"#/components/examples/ServerAdministratorGet"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ServerAdministrators"]},"put":{"description":"Creates or update active directory administrator on an existing server. The update action will overwrite the existing administrator.","operationId":"ServerAdministrators_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAdministratorResource"}}},"description":"The required parameters for creating or updating an AAD server administrator.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAdministratorResource"},"examples":{"ServerAdministratorCreate":{"$ref":"#/components/examples/ServerAdministratorCreate"}}}}},"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAdministratorResource"},"examples":{"ServerAdministratorCreate":{"$ref":"#/components/examples/ServerAdministratorCreate"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ServerAdministrators"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/Replicas":{"get":{"description":"List all the replicas for a given server.","operationId":"Replicas_ListByServer","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerListResult"},"examples":{"ReplicasListByServer":{"$ref":"#/components/examples/ReplicasListByServer"}}}}}},"tags":["Replicas"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators":{"get":{"description":"Returns a list of server Administrators.","operationId":"ServerAdministrators_ListByServer","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAdministratorResourceListResult"},"examples":{"get a list of server administrators":{"$ref":"#/components/examples/get_a_list_of_server_administrators"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ServerAdministrators"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations":{"get":{"description":"List all the configurations in a given server.","operationId":"Configurations_ListByServer","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationListResult"},"examples":{"ConfigurationList":{"$ref":"#/components/examples/ConfigurationList"}}}}}},"tags":["Configurations"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}":{"get":{"description":"Gets information about a configuration of server.","operationId":"Configurations_Get","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/ConfigurationNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configuration"},"examples":{"ConfigurationGet":{"$ref":"#/components/examples/ConfigurationGet"}}}}}},"tags":["Configurations"]},"put":{"description":"Updates a configuration of a server.","operationId":"Configurations_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/ConfigurationNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configuration"}}},"description":"The required parameters for updating a server configuration.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configuration"},"examples":{"ConfigurationCreateOrUpdate":{"$ref":"#/components/examples/ConfigurationCreateOrUpdate"}}}}},"202":{"description":"Accepted"}},"tags":["Configurations"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases":{"get":{"description":"List all the databases in a given server.","operationId":"Databases_ListByServer","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseListResult"},"examples":{"DatabaseList":{"$ref":"#/components/examples/DatabaseList"}}}}}},"tags":["Databases"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}":{"delete":{"description":"Deletes a database.","operationId":"Databases_Delete","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/DatabaseNameParameter"}],"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"204":{"description":"NoContent"}},"tags":["Databases"],"x-ms-long-running-operation":true},"get":{"description":"Gets information about a database.","operationId":"Databases_Get","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/DatabaseNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Database"},"examples":{"DatabaseGet":{"$ref":"#/components/examples/DatabaseGet"}}}}}},"tags":["Databases"]},"put":{"description":"Creates a new database or updates an existing database.","operationId":"Databases_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/DatabaseNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Database"}}},"description":"The required parameters for creating or updating a database.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Database"},"examples":{"DatabaseCreate":{"$ref":"#/components/examples/DatabaseCreate"}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Database"},"examples":{"DatabaseCreate":{"$ref":"#/components/examples/DatabaseCreate"}}}}},"202":{"description":"Accepted"}},"tags":["Databases"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules":{"get":{"description":"List all the firewall rules in a given server.","operationId":"FirewallRules_ListByServer","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRuleListResult"},"examples":{"FirewallRuleList":{"$ref":"#/components/examples/FirewallRuleList"}}}}}},"tags":["FirewallRules"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}":{"delete":{"description":"Deletes a server firewall rule.","operationId":"FirewallRules_Delete","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/FirewallRuleNameParameter"}],"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"204":{"description":"NoContent"}},"tags":["FirewallRules"],"x-ms-long-running-operation":true},"get":{"description":"Gets information about a server firewall rule.","operationId":"FirewallRules_Get","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/FirewallRuleNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRule"},"examples":{"FirewallRuleGet":{"$ref":"#/components/examples/FirewallRuleGet"}}}}}},"tags":["FirewallRules"]},"put":{"description":"Creates a new firewall rule or updates an existing firewall rule.","operationId":"FirewallRules_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/FirewallRuleNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRule"}}},"description":"The required parameters for creating or updating a firewall rule.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRule"},"examples":{"FirewallRuleCreate":{"$ref":"#/components/examples/FirewallRuleCreate"}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirewallRule"},"examples":{"FirewallRuleCreate":{"$ref":"#/components/examples/FirewallRuleCreate"}}}}},"202":{"description":"Accepted"}},"tags":["FirewallRules"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/logFiles":{"get":{"description":"List all the log files in a given server.","operationId":"LogFiles_ListByServer","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogFileListResult"},"examples":{"LogFileList":{"$ref":"#/components/examples/LogFileList"}}}}}},"tags":["LogFiles"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart":{"post":{"description":"Restarts a server.","operationId":"Servers_Restart","parameters":[{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"tags":["ServerRestart"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}":{"get":{"description":"Get a server's security alert policy.","operationId":"ServerSecurityAlertPolicies_Get","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"description":"The name of the security alert policy.","in":"path","name":"securityAlertPolicyName","required":true,"x-ms-enum":{"modelAsString":true,"name":"SecurityAlertPolicyName"},"schema":{"type":"string","enum":["Default"]},"examples":{"Get a server's threat detection policy":{"value":"Default"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the server threat detection policy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerSecurityAlertPolicy"},"examples":{"Get a server's threat detection policy":{"$ref":"#/components/examples/Get_a_server_s_threat_detection_policy"}}}}},"default":{"description":"Error response describing why the operation of getting security alert policies failed."}},"tags":["ServerSecurityAlertPolicies"]},"put":{"description":"Creates or updates a threat detection policy.","operationId":"ServerSecurityAlertPolicies_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"description":"The name of the threat detection policy.","in":"path","name":"securityAlertPolicyName","required":true,"x-ms-enum":{"modelAsString":true,"name":"SecurityAlertPolicyName"},"schema":{"type":"string","enum":["Default"]},"examples":{"Update a server's threat detection policy with all parameters":{"value":"Default"},"Update a server's threat detection policy with minimal parameters":{"value":"Default"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerSecurityAlertPolicy"}}},"description":"The server security alert policy.","required":true},"responses":{"200":{"description":"Successfully updated the threat detection policy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerSecurityAlertPolicy"},"examples":{"Update a server's threat detection policy with all parameters":{"$ref":"#/components/examples/Update_a_server_s_threat_detection_policy_with_all_parameters"},"Update a server's threat detection policy with minimal parameters":{"$ref":"#/components/examples/Update_a_server_s_threat_detection_policy_with_minimal_parameters"}}}}},"202":{"description":"Created request to set the server threat detection policy."},"default":{"description":"Error response describing why the operation of setting security alert policies failed."}},"tags":["ServerSecurityAlertPolicies"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules":{"get":{"description":"Gets a list of virtual network rules in a server.","operationId":"VirtualNetworkRules_ListByServer","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of virtual network rules.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VirtualNetworkRuleListResult"},"examples":{"List virtual network rules":{"$ref":"#/components/examples/List_virtual_network_rules"}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["VirtualNetworkRules"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}":{"delete":{"description":"Deletes the virtual network rule with the given name.","operationId":"VirtualNetworkRules_Delete","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/virtualNetworkRuleNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully deleted the virtual network rule."},"202":{"description":"Accepted"},"204":{"description":"The specified virtual network rule does not exist."},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation."}},"tags":["VirtualNetworkRules"],"x-ms-long-running-operation":true},"get":{"description":"Gets a virtual network rule.","operationId":"VirtualNetworkRules_Get","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/virtualNetworkRuleNameParameter"}],"responses":{"200":{"description":"Successfully retrieved a specified virtual network rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VirtualNetworkRule"},"examples":{"Gets a virtual network rule":{"$ref":"#/components/examples/Gets_a_virtual_network_rule"}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["VirtualNetworkRules"]},"put":{"description":"Creates or updates an existing virtual network rule.","operationId":"VirtualNetworkRules_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"},{"$ref":"#/components/parameters/virtualNetworkRuleNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VirtualNetworkRule"}}},"description":"The requested virtual Network Rule Resource state.","required":true},"responses":{"200":{"description":"Successfully updated a virtual network rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VirtualNetworkRule"},"examples":{"Create or update a virtual network rule":{"$ref":"#/components/examples/Create_or_update_a_virtual_network_rule"}}}}},"201":{"description":"Successfully created a virtual network rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VirtualNetworkRule"},"examples":{"Create or update a virtual network rule":{"$ref":"#/components/examples/Create_or_update_a_virtual_network_rule"}}}}},"202":{"description":"Accepted"},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 NullVirtualNetworkRequest - Virtual Network Request is Null\n\n * 400 NullVirtualNetworkRequestParameters - Virtual Network Request Parameters are Null\n\n * 400 NullVirtualNetworkSubnetId - The Virtual Network Subnet Id is null\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 VirtualNetworkRuleNotEnabled - Azure SQL Server Virtual Network Rule feature is not enabled\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation."}},"tags":["VirtualNetworkRules"],"x-ms-long-running-operation":true}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"OperationList":{"value":{"value":[{"display":{"description":"Returns the list of Performance Tiers available.","operation":"List Performance Tiers","provider":"Microsoft DB for PostgreSQL","resource":"Performance Tiers"},"name":"Microsoft.DBforPostgreSQL/locations/performanceTiers/read"},{"display":{"description":"Return the list of servers or gets the properties for the specified server.","operation":"List/Get PostgreSQL Servers","provider":"Microsoft DB for PostgreSQL","resource":"PostgreSQL Server"},"name":"Microsoft.DBforPostgreSQL/servers/read"},{"display":{"description":"Creates a server with the specified parameters or update the properties or tags for the specified server.","operation":"Create/Update PostgreSQL Server","provider":"Microsoft DB for PostgreSQL","resource":"PostgreSQL Server"},"name":"Microsoft.DBforPostgreSQL/servers/write"},{"display":{"description":"Deletes an existing server.","operation":"Delete PostgreSQL Server","provider":"Microsoft DB for PostgreSQL","resource":"PostgreSQL Server"},"name":"Microsoft.DBforPostgreSQL/servers/delete"},{"display":{"description":"Returns the list of Performance Tiers available.","operation":"List Performance Tiers","provider":"Microsoft DB for PostgreSQL","resource":"Performance Tiers"},"name":"Microsoft.DBforPostgreSQL/performanceTiers/read"},{"display":{"description":"Return the list of firewall rules for a server or gets the properties for the specified firewall rule.","operation":"List/Get Firewall Rules","provider":"Microsoft DB for PostgreSQL","resource":"Firewall Rules"},"name":"Microsoft.DBforPostgreSQL/servers/firewallRules/read"},{"display":{"description":"Creates a firewall rule with the specified parameters or update an existing rule.","operation":"Create/Update Firewall Rule","provider":"Microsoft DB for PostgreSQL","resource":"Firewall Rules"},"name":"Microsoft.DBforPostgreSQL/servers/firewallRules/write"},{"display":{"description":"Deletes an existing firewall rule.","operation":"Delete Firewall Rule","provider":"Microsoft DB for PostgreSQL","resource":"Firewall Rules"},"name":"Microsoft.DBforPostgreSQL/servers/firewallRules/delete"},{"display":{"description":"Return types of metrics that are available for databases","operation":"Get database metric definitions","provider":"Microsoft DB for PostgreSQL","resource":"Database Metric Definition"},"name":"Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/metricDefinitions/read","properties":{"serviceSpecification":{"metricSpecifications":[{"aggregationType":"Average","displayDescription":"CPU percent","displayName":"CPU percent","fillGapWithZero":true,"name":"cpu_percent","unit":"Percent"},{"aggregationType":"Average","displayDescription":"Compute Unit limit","displayName":"Compute Unit limit","name":"compute_limit","unit":"Count"},{"aggregationType":"Average","displayDescription":"Compute Unit percentage","displayName":"Compute Unit percentage","fillGapWithZero":true,"name":"compute_consumption_percent","unit":"Percent"},{"aggregationType":"Average","displayDescription":"Memory percent","displayName":"Memory percent","fillGapWithZero":true,"name":"memory_percent","unit":"Percent"},{"aggregationType":"Average","displayDescription":"IO percent","displayName":"IO percent","fillGapWithZero":true,"name":"io_consumption_percent","unit":"Percent"},{"aggregationType":"Average","displayDescription":"Storage percentage","displayName":"Storage percentage","name":"storage_percent","unit":"Percent"},{"aggregationType":"Average","displayDescription":"Storage used","displayName":"Storage used","name":"storage_used","unit":"Bytes"},{"aggregationType":"Average","displayDescription":"Storage limit","displayName":"Storage limit","name":"storage_limit","unit":"Bytes"},{"aggregationType":"Average","displayDescription":"Total active connections","displayName":"Total active connections","fillGapWithZero":true,"name":"active_connections","unit":"Count"},{"aggregationType":"Average","displayDescription":"Total failed connections","displayName":"Total failed connections","fillGapWithZero":true,"name":"connections_failed","unit":"Count"}]}}},{"display":{"description":"Gets the disagnostic setting for the resource","operation":"Read diagnostic setting","provider":"Microsoft DB for PostgreSQL","resource":"Database Metric Definition"},"name":"Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/diagnosticSettings/read"},{"display":{"description":"Creates or updates the diagnostic setting for the resource","operation":"Write diagnostic setting","provider":"Microsoft DB for PostgreSQL","resource":"Database Metric Definition"},"name":"Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/diagnosticSettings/write"}]}},"NameAvailability":{"value":{"message":"","nameAvailable":true,"reason":""}},"PerformanceTiersList":{"value":{"value":[{"id":"Basic","serviceLevelObjectives":[{"edition":"Basic","hardwareGeneration":"Gen4","id":"B_Gen4_1","maxBackupRetentionDays":35,"maxStorageMB":1048576,"minBackupRetentionDays":7,"minStorageMB":5120,"vCore":1},{"edition":"Basic","hardwareGeneration":"Gen4","id":"B_Gen4_2","maxBackupRetentionDays":35,"maxStorageMB":1048576,"minBackupRetentionDays":7,"minStorageMB":5120,"vCore":2}]},{"id":"GeneralPurpose","serviceLevelObjectives":[{"edition":"GeneralPurpose","hardwareGeneration":"Gen4","id":"GP_Gen4_2","maxBackupRetentionDays":35,"maxStorageMB":2097152,"minBackupRetentionDays":7,"minStorageMB":5120,"vCore":2},{"edition":"GeneralPurpose","hardwareGeneration":"Gen4","id":"GP_Gen4_4","maxBackupRetentionDays":35,"maxStorageMB":2097152,"minBackupRetentionDays":7,"minStorageMB":5120,"vCore":4},{"edition":"GeneralPurpose","hardwareGeneration":"Gen4","id":"GP_Gen4_8","maxBackupRetentionDays":35,"maxStorageMB":2097152,"minBackupRetentionDays":7,"minStorageMB":5120,"vCore":8},{"edition":"GeneralPurpose","hardwareGeneration":"Gen4","id":"GP_Gen4_16","maxBackupRetentionDays":35,"maxStorageMB":2097152,"minBackupRetentionDays":7,"minStorageMB":5120,"vCore":16},{"edition":"GeneralPurpose","hardwareGeneration":"Gen4","id":"GP_Gen4_32","maxBackupRetentionDays":35,"maxStorageMB":2097152,"minBackupRetentionDays":7,"minStorageMB":5120,"vCore":32}]}]}},"ServerList":{"value":{"value":[{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc1","location":"westus","name":"pgtestsvc1","properties":{"administratorLogin":"testuser","earliestRestoreDate":"2018-03-04T21:01:55.1498475+00:00","fullyQualifiedDomainName":"pgtestsvc1.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":10,"geoRedundantBackup":"Disabled","storageMB":5120},"userVisibleState":"Ready","version":"9.5"},"sku":{"capacity":1,"family":"Gen4","name":"B_Gen4_1","tier":"Basic"},"type":"Microsoft.DBforPostgreSQL/servers"},{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc2","location":"westus","name":"pgtestsvc2","properties":{"administratorLogin":"testuser","earliestRestoreDate":"2018-03-07T21:01:55.1498475+00:00","fullyQualifiedDomainName":"pgtestsvc2.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":5120},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen4","name":"GP_Gen4_2","tier":"GeneralPurpose"},"type":"Microsoft.DBforPostgreSQL/servers"},{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg1/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc3","location":"westus","name":"pgtestsvc3","properties":{"administratorLogin":"testuser","earliestRestoreDate":"2018-03-01T00:11:08.55+00:00","fullyQualifiedDomainName":"pgtestsvc3.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":35,"geoRedundantBackup":"Enabled","storageMB":204800},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":4,"family":"Gen4","name":"GP_Gen4_4","tier":"GeneralPurpose"},"type":"Microsoft.DBforPostgreSQL/servers"},{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc4","location":"westus","name":"pgtestsvc4","properties":{"administratorLogin":"cloudsa","earliestRestoreDate":"2018-03-14T21:08:24.637+00:00","fullyQualifiedDomainName":"pgtestsvc4.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":128000},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen4","name":"B_Gen4_2","tier":"Basic"},"tags":{"ElasticServer":"1"},"type":"Microsoft.DBforPostgreSQL/servers"}]}},"ServerListByResourceGroup":{"value":{"value":[{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc1","location":"westus","name":"pgtestsvc1","properties":{"administratorLogin":"testuser","earliestRestoreDate":"2018-03-04T21:01:55.1498475+00:00","fullyQualifiedDomainName":"pgtestsvc1.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":10,"geoRedundantBackup":"Disabled","storageMB":5120},"userVisibleState":"Ready","version":"9.5"},"sku":{"capacity":1,"family":"Gen4","name":"B_Gen4_1","tier":"Basic"},"type":"Microsoft.DBforPostgreSQL/servers"},{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc2","location":"westus","name":"pgtestsvc2","properties":{"administratorLogin":"testuser","earliestRestoreDate":"2018-03-07T21:01:55.1498475+00:00","fullyQualifiedDomainName":"pgtestsvc2.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":5120},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen4","name":"GP_Gen4_2","tier":"GeneralPurpose"},"type":"Microsoft.DBforPostgreSQL/servers"},{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc4","location":"westus","name":"pgtestsvc4","properties":{"administratorLogin":"cloudsa","earliestRestoreDate":"2018-03-14T21:08:24.637+00:00","fullyQualifiedDomainName":"pgtestsvc4.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":128000},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen4","name":"B_Gen4_2","tier":"Basic"},"tags":{"ElasticServer":"1"},"type":"Microsoft.DBforPostgreSQL/servers"}]}},"ServerGet":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc1","location":"westus","name":"pgtestsvc1","properties":{"administratorLogin":"testuser","earliestRestoreDate":"2018-03-04T21:00:58.9243541+00:00","fullyQualifiedDomainName":"pgtestsvc1.postgres.database.azure.com","masterServerId":"","replicationRole":"","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":10,"geoRedundantBackup":"Disabled","storageMB":5120},"userVisibleState":"Ready","version":"9.5"},"sku":{"capacity":1,"family":"Gen4","name":"B_Gen4_1","tier":"Basic"},"type":"Microsoft.DBforPostgreSQL/servers"}},"ServerUpdate":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc4","location":"westus","name":"pgtestsvc4","properties":{"administratorLogin":"cloudsa","earliestRestoreDate":"2018-03-14T21:08:24.637+00:00","fullyQualifiedDomainName":"pgtestsvc4.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":128000},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen4","name":"B_Gen4_2","tier":"Basic"},"tags":{"ElasticServer":"1"},"type":"Microsoft.DBforPostgreSQL/servers"}},"Create_a_database_as_a_point_in_time_restore":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/targetserver","location":"brazilsouth","name":"targetserver","properties":{"administratorLogin":"cloudsa","earliestRestoreDate":"2017-12-14T21:08:24.637+00:00","fullyQualifiedDomainName":"targetserver.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":128000},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen4","name":"B_Gen4_2","tier":"Basic"},"tags":{"ElasticServer":"1"},"type":"Microsoft.DBforPostgreSQL/servers"}},"Create_a_new_server":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc4","location":"westus","name":"pgtestsvc4","properties":{"administratorLogin":"cloudsa","earliestRestoreDate":"2018-03-14T21:08:24.637+00:00","fullyQualifiedDomainName":"pgtestsvc4.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageMB":128000},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen5","name":"B_Gen5_2","tier":"Basic"},"tags":{"ElasticServer":"1"},"type":"Microsoft.DBforPostgreSQL/servers"}},"Create_a_replica_server":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica1","location":"westcentralus","name":"testserver-replica1","properties":{"administratorLogin":"postgres","earliestRestoreDate":"2018-06-20T00:17:56.677+00:00","fullyQualifiedDomainName":"testserver-replica1.postgres.database.azure.com","masterServerId":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master","replicaCapacity":0,"replicationRole":"Replica","sslEnforcement":"Disabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":2048000},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen5","name":"GP_Gen5_2","tier":"GeneralPurpose"},"type":"Microsoft.DBforPostgreSQL/servers"}},"Create_a_server_as_a_geo_restore_":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/targetserver","location":"westus","name":"targetserver","properties":{"administratorLogin":"cloudsa","earliestRestoreDate":"2018-03-14T21:08:24.637+00:00","fullyQualifiedDomainName":"targetserver.postgres.database.azure.com","sslEnforcement":"Enabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":128000},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":2,"family":"Gen4","name":"GP_Gen4_2","tier":"GeneralPurpose"},"tags":{"ElasticServer":"1"},"type":"Microsoft.DBforPostgreSQL/servers"}},"ServerAdministratorsDelete":{"value":"No Content"},"ServerAdministratorGet":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/pgtestsvc4/administrators/activeDirectory","name":"activeDirectory","properties":{"administratorType":"ActiveDirectory","login":"bob@contoso.com","sid":"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c","tenantId":"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"},"type":"Microsoft.DBforPostgreSQL/servers/administrators"}},"ServerAdministratorCreate":{"value":"Accepted"},"ReplicasListByServer":{"value":{"value":[{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-replica1","location":"westcentralus","name":"testserver-replica1","properties":{"administratorLogin":"postgres","earliestRestoreDate":"2018-06-12T00:05:03.2695756+00:00","fullyQualifiedDomainName":"testserver-replica1.postgres.database.azure.com","masterServerId":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup_WestCentralUS/providers/Microsoft.DBforPostgreSQL/servers/testserver-master","replicaCapacity":0,"replicationRole":"Replica","sslEnforcement":"Disabled","storageProfile":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","storageMB":2048000},"userVisibleState":"Ready","version":"9.6"},"sku":{"capacity":16,"family":"Gen4","name":"GP_Gen4_16","tie