diff --git a/src/azure-cli/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py b/src/azure-cli/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py index 87ec3d1a637..8a68b30eac0 100644 --- a/src/azure-cli/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py +++ b/src/azure-cli/azure/cli/command_modules/network/private_link_resource_and_endpoint_connections/custom.py @@ -81,6 +81,7 @@ def register_providers(): _register_one_provider("Microsoft.MachineLearningServices/registries", '2022-10-01-preview', True) _register_one_provider('Microsoft.DBforMySQL/flexibleServers', '2022-09-30-privatepreview', False) _register_one_provider("Microsoft.DocumentDB/mongoClusters", '2023-03-01-preview', True) + _register_one_provider('Microsoft.DBforPostgreSQL/flexibleServers', '2023-06-01-preview', False) def _register_one_provider(provider, api_version, support_list_or_not, resource_get_api_version=None, support_connection_operation=True): # pylint: disable=line-too-long diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_endpoint_connection_postgres_flexible_server.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_endpoint_connection_postgres_flexible_server.yaml new file mode 100644 index 00000000000..128371d8595 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_endpoint_connection_postgres_flexible_server.yaml @@ -0,0 +1,1763 @@ +interactions: +- request: + body: '{"location": "eastus2euap", "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "enableDdosProtection": false, "enableVmProtection": false, + "subnets": [{"name": "cli-subnet-000004", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '249' + Content-Type: + - application/json + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n + \ \"etag\": \"W/\\\"c90594a5-d260-4b29-a6f4-968172dc8555\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"a1863378-3af4-484c-b0fb-93cf39d8809a\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n + \ {\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"c90594a5-d260-4b29-a6f4-968172dc8555\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/bd348142-6366-4e1a-b2ce-0c5153f7e809?api-version=2022-01-01 + cache-control: + - no-cache + content-length: + - '1278' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 80c9a73c-ccee-4c48-a7f0-d6b8e5f22b51 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/bd348142-6366-4e1a-b2ce-0c5153f7e809?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 1d08a7bd-2834-4e7d-961b-2f0c5091b79d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/bd348142-6366-4e1a-b2ce-0c5153f7e809?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 39d40915-0971-483e-9180-2b910049b8c9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n + \ \"etag\": \"W/\\\"3284770c-bb10-4145-b3ed-31109a73674c\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"a1863378-3af4-484c-b0fb-93cf39d8809a\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n + \ {\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"3284770c-bb10-4145-b3ed-31109a73674c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1280' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:12 GMT + etag: + - W/"3284770c-bb10-4145-b3ed-31109a73674c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 214e91a6-1594-4ac6-9cef-c2f2dc08e5d9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2023-05-01 + response: + body: + string: '{"name":"cli-subnet-000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004","etag":"W/\"3284770c-bb10-4145-b3ed-31109a73674c\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","delegations":[],"privateEndpointNetworkPolicies":"Disabled","privateLinkServiceNetworkPolicies":"Enabled"},"type":"Microsoft.Network/virtualNetworks/subnets"}' + headers: + cache-control: + - no-cache + content-length: + - '495' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:13 GMT + etag: + - W/"3284770c-bb10-4145-b3ed-31109a73674c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 68a7f52a-814d-4d7a-b758-04de1d228cf4 + status: + code: 200 + message: '' +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004", + "name": "cli-subnet-000004", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [], "privateEndpointNetworkPolicies": "Disabled", "privateLinkServiceNetworkPolicies": + "Enabled"}, "type": "Microsoft.Network/virtualNetworks/subnets"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + Content-Length: + - '425' + Content-Type: + - application/json + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2023-05-01 + response: + body: + string: '{"name":"cli-subnet-000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004","etag":"W/\"350cd10c-dc41-483b-b04a-d2c024623c10\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","delegations":[],"privateEndpointNetworkPolicies":"Disabled","privateLinkServiceNetworkPolicies":"Enabled"},"type":"Microsoft.Network/virtualNetworks/subnets"}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/74f81eac-3d69-41c2-acaa-41001551084a?api-version=2023-05-01 + cache-control: + - no-cache + content-length: + - '495' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e6178777-c370-4fca-a53f-e2a60b455fd1 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/74f81eac-3d69-41c2-acaa-41001551084a?api-version=2023-05-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d316a58a-4e86-411e-9bac-9306b02ea096 + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2023-05-01 + response: + body: + string: '{"name":"cli-subnet-000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004","etag":"W/\"350cd10c-dc41-483b-b04a-d2c024623c10\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","delegations":[],"privateEndpointNetworkPolicies":"Disabled","privateLinkServiceNetworkPolicies":"Enabled"},"type":"Microsoft.Network/virtualNetworks/subnets"}' + headers: + cache-control: + - no-cache + content-length: + - '495' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:14 GMT + etag: + - W/"350cd10c-dc41-483b-b04a-d2c024623c10" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 342d23dd-f467-4e0c-a6a8-4d24b52ec344 + status: + code: 200 + message: '' +- request: + body: '{"location": "eastus2euap", "sku": {"name": "Standard_D2ds_v4", "tier": + "GeneralPurpose"}, "properties": {"administratorLogin": "admin123", "administratorLoginPassword": + "aBcD1234!@#$", "version": "15", "storage": {"storageSizeGB": 64, "autoGrow": + "Disabled"}, "authConfig": {"activeDirectoryAuth": "Disabled", "passwordAuth": + "Enabled", "tenantId": ""}, "backup": {"backupRetentionDays": 7, "geoRedundantBackup": + "Disabled"}, "highAvailability": {"mode": "Disabled"}, "createMode": "Create"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + Content-Length: + - '493' + Content-Type: + - application/json + ParameterSetName: + - --method --headers --url --body + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"operation":"UpsertServerManagementOperationV2","startTime":"2023-11-14T11:09:15.703Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/be11bb97-f7f1-4f42-acfd-4e8f36ee84fd?api-version=2023-06-01-preview&t=638355569557424225&c=MIIHHjCCBgagAwIBAgITOgI8r7Mf_biwA5ZedQAEAjyvszANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMDk0NjIyWhcNMjQxMDI2MDk0NjIyWjBAMT4wPAYDVQQDEzV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qfaDlNtt4u9ZYoKcVyjJjRkUm3ZpTfNoY9qTWSM0iEcRya-U2MImx3c0qvgUsWji-plEv_LL9WkKc&s=o69MFtHBrNU6Cs92R2A0vW7lXCXztJtRcyXSWBlZjyP0pYvt5EqpGXIjt2Lx5WnT6mXC35CgQBS44ALEhP-bmlseT6xbUK_-Miokzws5IVVwT7Y_1aDssD7Eqm81sYPZ4qrDUvnKi0ahIYyZg9WjYo4AqRnxyU39lPlFj-EnN7-X_clXbPXEgjoiKXHT3_fNG722_lhQSdeamDF84Rk3EQAxWohHduZbHy64hoBn3e_X-TMLIA4bohzBSzjMIAa3Z2gOnkdz_2BQJg8EgCut0n7p304UtZeFR7h6pHLTrlJXj2gGQ86eBWSysH-Hrfe7oQKLD7QRgdkmKmWdUEX4hw&h=CoTHHOHKyQYD70AgAFDgawFMRIjMbK6rVgvVUdXK330 + cache-control: + - no-cache + content-length: + - '88' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/be11bb97-f7f1-4f42-acfd-4e8f36ee84fd?api-version=2023-06-01-preview&t=638355569557580487&c=MIIHHjCCBgagAwIBAgITOgI8r7Mf_biwA5ZedQAEAjyvszANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMDk0NjIyWhcNMjQxMDI2MDk0NjIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMAibMEzENtdXD_9bnRFedXnHGYU2WVoSNV1T8o5EJpU1WPqMGp0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fLM9TmsfBdQ2RnGLIbAb7CR1dlM-hqvcr2ZWL9GUZQd3k1kWkdtay_RFL9pzdK3YMRFxiVEwDIB-dx3A8aa62qJ1XnWidYfOfducoUEcq-ZLdF-FeI1DZarAR8-WEbko7Qa0AkPEcPdjRVPMpO0LgEvGinyy5DMLMDRKLaY8dINdw6fACaGPWqcyhNMdZCMHaloEUTNtFNRUQUIshz9gYq0ynXq_kYFaw1UZxDhg6NOAeLdLGqBkfVL9PngAP_Kw&h=-4391VkyZKT-OFoXVjfkIkA9YUAXqx5tLp06w1onkyg + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:09:20.2026941Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:09:20.2026941+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:09:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:09:20.2026941Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:09:20.2026941+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:10:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:09:20.2026941Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:09:20.2026941+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:11:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:09:20.2026941Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:09:20.2026941+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:12:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:09:20.2026941Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","minorVersion":"4","administratorLogin":"admin123","state":"Ready","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:09:20.2026941+00:00"},"highAvailability":{"mode":"Disabled","state":"NotEnabled"},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1214' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:13:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-link-resource list + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --type + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateLinkResources?api-version=2023-06-01-preview + response: + body: + string: '{"value":[{"properties":{"groupId":"postgresqlServer","requiredMembers":["postgresqlServer"],"requiredZoneNames":["privatelink.postgres.database.azure.com"]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateLinkResources/postgresqlServer","name":"postgresqlServer","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateLinkResources"}]}' + headers: + cache-control: + - no-cache + content-length: + - '456' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:13:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet --connection-name --private-connection-resource-id + --group-id --manual-request + User-Agent: + - AZURECLI/2.54.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001","name":"cli_test_fspg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","test":"test_private_endpoint_connection_postgres_flexible_server","date":"2023-11-14T11:08:59Z","module":"network"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:13:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "properties": {"manualPrivateLinkServiceConnections": + [{"name": "cli-pec-000006", "properties": {"groupIds": ["postgresqlServer"], + "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002"}}], + "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + Content-Length: + - '536' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vnet-name --subnet --connection-name --private-connection-resource-id + --group-id --manual-request + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"a83fb29c-1bbd-4f08-82b1-cc39b63bea7f\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"962b4be8-7454-417d-979a-8906f3a70cce\",\r\n \"privateLinkServiceConnections\": + [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"name\": + \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/manualPrivateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"a83fb29c-1bbd-4f08-82b1-cc39b63bea7f\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002\",\r\n + \ \"groupIds\": [\r\n \"postgresqlServer\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Pending\",\r\n \"description\": \"Awaiting Approval\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"customNetworkInterfaceName\": \"\",\r\n \"subnet\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.fc84e978-e4b7-4d25-abdf-bcf36252fbab\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/1b28fe61-cf42-410a-94c7-59ae5632f8ca?api-version=2022-01-01 + cache-control: + - no-cache + content-length: + - '2063' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:13:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8eb45de9-fc00-4631-9457-41d91ccf07a0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet --connection-name --private-connection-resource-id + --group-id --manual-request + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/1b28fe61-cf42-410a-94c7-59ae5632f8ca?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:13:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - cffc18ca-1b79-4c13-a678-8c067b6d3349 + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet --connection-name --private-connection-resource-id + --group-id --manual-request + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/1b28fe61-cf42-410a-94c7-59ae5632f8ca?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:13:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 042d4947-11da-48d2-83c4-9df6e3242415 + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet --connection-name --private-connection-resource-id + --group-id --manual-request + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/1b28fe61-cf42-410a-94c7-59ae5632f8ca?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7d5f1af2-f540-41f9-a222-e145f7024e49 + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet --connection-name --private-connection-resource-id + --group-id --manual-request + User-Agent: + - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"e11fa86b-0e17-422a-9c6b-d8dbf820f3d7\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"962b4be8-7454-417d-979a-8906f3a70cce\",\r\n \"privateLinkServiceConnections\": + [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"name\": + \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/manualPrivateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"e11fa86b-0e17-422a-9c6b-d8dbf820f3d7\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002\",\r\n + \ \"groupIds\": [\r\n \"postgresqlServer\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Pending\",\r\n \"description\": \"\",\r\n \"actionsRequired\": + \"\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"customNetworkInterfaceName\": \"\",\r\n \"subnet\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.fc84e978-e4b7-4d25-abdf-bcf36252fbab\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2043' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:01 GMT + etag: + - W/"e11fa86b-0e17-422a-9c6b-d8dbf820f3d7" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 5a6c501a-4a5b-45aa-b5ac-4b9006e76994 + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection list + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --type + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:09:20.2026941Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Pending","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","minorVersion":"4","administratorLogin":"admin123","state":"Ready","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:09:20.2026941+00:00"},"highAvailability":{"mode":"Disabled","state":"NotEnabled"},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1925' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Pending","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '711' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection show + Connection: + - keep-alive + ParameterSetName: + - --resource-name -n -g --type + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Pending","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '711' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection show + Connection: + - keep-alive + ParameterSetName: + - --resource-name -n -g --type + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Pending","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '711' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection approve + Connection: + - keep-alive + ParameterSetName: + - --resource-name --resource-group --name --type --description + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Pending","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '711' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"privateEndpoint": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"}, + "privateLinkServiceConnectionState": {"status": "Approved", "actionsRequired": + "None", "description": "Approved."}, "groupIds": ["postgresqlServer"], "provisioningState": + "Succeeded"}, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2", + "name": "cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2", "type": "Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection approve + Connection: + - keep-alive + Content-Length: + - '758' + Content-Type: + - application/json + ParameterSetName: + - --resource-name --resource-group --name --type --description + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"operation":"UpsertPrivateEndpointConnectionManagementOperation","startTime":"2023-11-14T11:14:04.87Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/3dc951f0-e41c-454e-a08f-e3213b2bbe51?api-version=2023-06-01-preview&t=638355572449260621&c=MIIHHjCCBgagAwIBAgITOgI8r7Mf_biwA5ZedQAEAjyvszANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMDk0NjIyWhcNMjQxMDI2MDk0NjIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMAibMEzENtdXD_9bnRFedXnHGYU2WVoSNV1T8o5EJpU1WPqMGp0-Te7u-pOZ18zukWdKhar_J0Q8cPTu3ERTvdGhQijltdB6E_J0wNDTwsi6NNDvaxwn4ZT8b2mCQybEZh8xYvc5QKAxQZxZUwJ7z2I6NhYBAwKOnexT6W3RpOHjR0DOunQlnnJBRaXTzoMRu9y_MMSS14WLxt9jMq2FxivtpAP4tYZNqSyp6tbuYoN1O-5fyph6Tbm3YEnesFPQdchCZcuvlSKfwrlNSNNioLx0atlHNVRkvgMQ_eJNVF3com1NrZ34BY9K_A-e0yc19LrOgBOup-IPk3J5HeNPPECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBg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L2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBALszOCwOHYrcy035-scPtqcAdZCMfIz4dO7xVe3eBVGYgiK-GRi4yks9l8jjYRWIyK-0r4Ta4DZJNEWNwDPuS9lEb7gryEmzYpKkEN1GVpkZkIUpSbalDFucJDXz2ZHvczBlfLFKipvWHWkRSUYgu-rf-3_VpAbFQbRE_ZxpQSTp1GHDD2nrbXEzpU3O58ESJfL99UlgYO12XqeHlPy6k5_7ILX9UrUyuJwliRI56FbKhM-wCXSlPbwt-7U8FvsYyWiovfAU1KqfaDlNtt4u9ZYoKcVyjJjRkUm3ZpTfNoY9qTWSM0iEcRya-U2MImx3c0qvgUsWji-plEv_LL9WkKc&s=OXPVc6rW7Xt1t6x59FhWj-FiW5NEF3SUNw0aULdlqiZa0kABAXhzbfo9_McCsQ7KZdxQcUnERLEWMGLoBuGfKGcYmPn4jAbERu4zEhxjL60t_FhaeC74pz2Npch5UCJZtADPXEOX77roJHrXeL_NHJyP9APqbDVLODoFtnkIVm_EDIgsigKWK6m1SRGlOcSOwVbvavIxUHeRGdQVNFIxjr4hEUURlq33VTm4Ln1WRlvAjD2j8FzfYSakLbNtbk1MYDMUMLmlgpvAfsh3xAEAT9RFOL4OxPObyJRdBtyw7mvFLH2ZywW1y8OSiqLFKeHO4-lSrwfycsn8piiBLsNCSg&h=ES3mBCPegh_rsHrWwUS7cCEmnhM4SeJU7X9CjWWxnVY + cache-control: + - no-cache + content-length: + - '104' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operation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KoZIhvcNAQELBQADggEBALszOCwOHYrcy035-scPtqcAdZCMfIz4dO7xVe3eBVGYgiK-GRi4yks9l8jjYRWIyK-0r4Ta4DZJNEWNwDPuS9lEb7gryEmzYpKkEN1GVpkZkIUpSbalDFucJDXz2ZHvczBlfLFKipvWHWkRSUYgu-rf-3_VpAbFQbRE_ZxpQSTp1GHDD2nrbXEzpU3O58ESJfL99UlgYO12XqeHlPy6k5_7ILX9UrUyuJwliRI56FbKhM-wCXSlPbwt-7U8FvsYyWiovfAU1KqfaDlNtt4u9ZYoKcVyjJjRkUm3ZpTfNoY9qTWSM0iEcRya-U2MImx3c0qvgUsWji-plEv_LL9WkKc&s=CJsHX5WqmyUmH1xISPJox1ILX_PD_7CeaoPL6elnIAoeNdGoLpmplfdtLGlpOv7ZPPIDJ7rwriFBTKF5noqOInFZOFDJAddCJjLYQ09hNbFbDUHywfDcPPoNgrRrab3S3aCh47BhP9MwtA5zaRkRDnTNIVcOWjyGCUrsvi3bIU7WiHr9Yb33k-mQ3azY6l7SDbhiVDzUamL7HoOYwWBua_yHooA4yoCnMmJ5hpng_lljRhpxgq7Z5cy4oMYjcbPu46y6Hi9Wa3-m7yi4Bhz2wFqkEfUSWSuAVEQ9JtXRJf8wP8M4S1f9AJiYYG6eKZep47WbBvmeSp7P6sf2g3frWw&h=2WLT-KNTw8U709alCVCOgwpSczlauuQuEdlxYXzyUIQ + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection approve + Connection: + - keep-alive + ParameterSetName: + - --resource-name --resource-group --name --type --description + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Pending","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Updating"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '710' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection approve + Connection: + - keep-alive + ParameterSetName: + - --resource-name --resource-group --name --type --description + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved.","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '738' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id --description + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved.","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '738' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"privateEndpoint": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"}, + "privateLinkServiceConnectionState": {"status": "Rejected", "description": "Rejected.", + "actionsRequired": "None"}, "groupIds": ["postgresqlServer"], "provisioningState": + "Succeeded"}, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2", + "name": "cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2", "type": "Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + Content-Length: + - '758' + Content-Type: + - application/json + ParameterSetName: + - --id --description + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"operation":"UpsertPrivateEndpointConnectionManagementOperation","startTime":"2023-11-14T11:14:26.27Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/f75e839e-2190-4162-8b60-40f05302f925?api-version=2023-06-01-preview&t=638355572663179858&c=MIIHHjCCBgagAwIBAgITOgI8r7Mf_biwA5ZedQAEAjyvszANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMDk0NjIyWhcNMjQxMDI2MDk0NjIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMAibMEzENtdXD_9bnRFedXnHGYU2WVoSNV1T8o5EJpU1WPqMGp0-Te7u-pOZ18zukWdKhar_J0Q8cPTu3ERTvdGhQijltdB6E_J0wNDTwsi6NNDvaxwn4ZT8b2mCQybEZh8xYvc5QKAxQZxZUwJ7z2I6NhYBAwKOnexT6W3RpOHjR0DOunQlnnJBRaXTzoMRu9y_MMSS14WLxt9jMq2FxivtpAP4tYZNqSyp6tbuYoN1O-5fyph6Tbm3YEnesFPQdchCZcuvlSKfwrlNSNNioLx0atlHNVRkvgMQ_eJNVF3com1NrZ34BY9K_A-e0yc19LrOgBOup-IPk3J5HeNPPECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwI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wOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBALszOCwOHYrcy035-scPtqcAdZCMfIz4dO7xVe3eBVGYgiK-GRi4yks9l8jjYRWIyK-0r4Ta4DZJNEWNwDPuS9lEb7gryEmzYpKkEN1GVpkZkIUpSbalDFucJDXz2ZHvczBlfLFKipvWHWkRSUYgu-rf-3_VpAbFQbRE_ZxpQSTp1GHDD2nrbXEzpU3O58ESJfL99UlgYO12XqeHlPy6k5_7ILX9UrUyuJwliRI56FbKhM-wCXSlPbwt-7U8FvsYyWiovfAU1KqfaDlNtt4u9ZYoKcVyjJjRkUm3ZpTfNoY9qTWSM0iEcRya-U2MImx3c0qvgUsWji-plEv_LL9WkKc&s=naMEhK8FvFPgqEHmJ1_3JxHLlJDq7wtMK2MDJDGLwfRxYXuO3yZuBbJPa1yXsQnGz09VfUk8J_jTP1vsNq3rmy6Z2XBVLRGMH6XKfXb2AAGtwZfXWTR11v4SMlJAxKzv2GYWmSwsIAZXzH5nHoMAP3-XsquOv7YSCiijCVRh1eK0Vv3p9uUZnLXYgIN8L_ikeHAX_sWtQjehho7tvX2Gh-Wl6Mwa8lSHmGUVnOX9UNfsG2BTgj1wtG723ovX2Z6J8zminhj1Db1a_6g787HcZBbzJJokZieRxry-ohRMJuuQiJ6S8YC4skZ8u_l3Tyj3X5bJocR8buGloH3Uo8zjuQ&h=vXZG1urR4QyJGejkCZISp9-uLkJ4ucJGwyhe7LlDx_Q + cache-control: + - no-cache + content-length: + - '104' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/f75e839e-2190-4162-8b60-40f05302f925?api-version=2023-06-01-preview&t=638355572663179858&c=MIIHHjCCBgagAwIBAgITOgI8r7Mf_biwA5ZedQAEAjyvszANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMDk0NjIyWhcNMjQxMDI2MDk0NjIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMAibMEzENtdXD_9bnRFedXnHGYU2WVoSNV1T8o5EJpU1WPqMGp0-Te7u-pOZ18zukWdKhar_J0Q8cPTu3ERTvdGhQijltdB6E_J0wNDTwsi6NNDvaxwn4ZT8b2mCQybEZh8xYvc5QKAxQZxZUwJ7z2I6NhYBAwKOnexT6W3RpOHjR0DOunQlnnJBRaXTzoMRu9y_MMSS14WLxt9jMq2FxivtpAP4tYZNqSyp6tbuYoN1O-5fyph6Tbm3YEnesFPQdchCZcuvlSKfwrlNSNNioLx0atlHNVRkvgMQ_eJNVF3com1NrZ34BY9K_A-e0yc19LrOgBOup-IPk3J5HeNPPECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5j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wYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBALszOCwOHYrcy035-scPtqcAdZCMfIz4dO7xVe3eBVGYgiK-GRi4yks9l8jjYRWIyK-0r4Ta4DZJNEWNwDPuS9lEb7gryEmzYpKkEN1GVpkZkIUpSbalDFucJDXz2ZHvczBlfLFKipvWHWkRSUYgu-rf-3_VpAbFQbRE_ZxpQSTp1GHDD2nrbXEzpU3O58ESJfL99UlgYO12XqeHlPy6k5_7ILX9UrUyuJwliRI56FbKhM-wCXSlPbwt-7U8FvsYyWiovfAU1KqfaDlNtt4u9ZYoKcVyjJjRkUm3ZpTfNoY9qTWSM0iEcRya-U2MImx3c0qvgUsWji-plEv_LL9WkKc&s=UgBsZSgyF9GqLiPL2L_Lc7_lB0eyojZWP7z7Yih4HA4huNVz0cQwy6h2Tt9L3E002k-6bAxAd1LeiAr9ZLfPiSM3TO0JndqaBYHAh9B7qER7pYukxGhrEuLNqHJb8VD8eVHi-I1CztejtQht7hroGIqE9sBm6jW1Dz_of883no3VS1QulTi4Y9ibUJKoSXqOl4CneCyDZFvpvD7zP-b29z37ZWpaemYRgILrBO6cqwL4kUQ8UAtq-SntGaGUCgfXCVwWnat8Mi5aO5z5TKLLvbuzA6RVEWrmJz1SnQIBZRLNlT5zNc456g7lkgAiFk7GKrgUNQFKuLtiPrXYec9Gcw&h=g1tFbB5FILfpzjMx-Comu6TN4EuZT2hB2a5JeE2N1mo + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id --description + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved.","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Updating"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '737' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --id --description + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"Rejected.","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}' + headers: + cache-control: + - no-cache + content-length: + - '738' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection list + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --type + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:09:20.2026941Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[{"properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"Rejected.","actionsRequired":"None"},"groupIds":["postgresqlServer"],"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","name":"cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateEndpointConnections"}],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","minorVersion":"4","administratorLogin":"admin123","state":"Ready","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:09:20.2026941+00:00"},"highAvailability":{"mode":"Disabled","state":"NotEnabled"},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1952' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint-connection delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --id -y + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateEndpointConnections/cli-pe-000005.6795b55e-38d1-4fec-90a9-ca2f5c894db2?api-version=2023-06-01-preview + response: + body: + string: '{"operation":"DropPrivateEndpointConnectionManagementOperation","startTime":"2023-11-14T11:14:47.83Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/e62310e9-41a2-481c-92f6-367821d88852?api-version=2023-06-01-preview&t=638355572878761995&c=MIIHHjCCBgagAwIBAgITOgI8r7Mf_biwA5ZedQAEAjyvszANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMDk0NjIyWhcNMjQxMDI2MDk0NjIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMAibMEzENtdXD_9bnRFedXnHGYU2WVoSNV1T8o5EJpU1WPqMGp0-Te7u-pOZ18zukWdKhar_J0Q8cPTu3ERTvdGhQijltdB6E_J0wNDTwsi6NNDvaxwn4ZT8b2mCQybEZh8xYvc5QKAxQZxZUwJ7z2I6Nh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CCdcSOjqxlCi88bpwXRcBcs0Q35TqlAO_wZety48k05bPbKTXiSjf57TBVuRzTBRCnaUCtRCd30NAQ_XASWawdo5WfliiXVZT0ykhClxCpnvqSAffqhZSIh_YQda_fuTxbMwFVOqppy0BSiqZN2g&h=P1wEOletuUSwWjdP83LhuHFN2OOn5d7w1_iZhpu5RO4 + cache-control: + - no-cache + content-length: + - '102' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/e62310e9-41a2-481c-92f6-367821d88852?api-version=2023-06-01-preview&t=638355572878761995&c=MIIHHjCCBgagAwIBAgITOgI8r7Mf_biwA5ZedQAEAjyvszANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMDk0NjIyWhcNMjQxMDI2MDk0NjIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMAibMEzENtdXD_9bnRFedXnHGYU2WVoSNV1T8o5EJpU1WPqMGp0-Te7u-pOZ18zukWdKhar_J0Q8cPTu3ERTvdGhQijltdB6E_J0wNDTwsi6NNDvaxwn4ZT8b2mCQybEZh8xYvc5QKAxQZxZUwJ7z2I6NhYBAwKOnexT6W3RpOHjR0DOunQlnnJBRaXTzoMRu9y_MMSS14WLxt9jMq2FxivtpAP4tYZNqSyp6tbuYoN1O-5fyph6Tbm3YEnesFPQdchCZcuvlSKfwrlNSNNioLx0atlHNVRkvgMQ_eJNVF3com1NrZ34BY9K_A-e0yc19LrOgBOup-IPk3J5HeN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WCdb3-dh85YEMdsDsjnk + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_link_resource_postgres_flexible_server.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_link_resource_postgres_flexible_server.yaml new file mode 100644 index 00000000000..ddc62a696ce --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_link_resource_postgres_flexible_server.yaml @@ -0,0 +1,383 @@ +interactions: +- request: + body: '{"location": "eastus2euap", "sku": {"name": "Standard_D2ds_v4", "tier": + "GeneralPurpose"}, "properties": {"administratorLogin": "admin123", "administratorLoginPassword": + "aBcD1234!@#$", "version": "15", "storage": {"storageSizeGB": 64, "autoGrow": + "Disabled"}, "authConfig": {"activeDirectoryAuth": "Disabled", "passwordAuth": + "Enabled", "tenantId": ""}, "backup": {"backupRetentionDays": 7, "geoRedundantBackup": + "Disabled"}, "highAvailability": {"mode": "Disabled"}, "createMode": "Create"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + Content-Length: + - '493' + Content-Type: + - application/json + ParameterSetName: + - --method --headers --url --body + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"operation":"UpsertServerManagementOperationV2","startTime":"2023-11-14T11:14:50.083Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations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BQUHAwIwDQYJKoZIhvcNAQELBQADggEBALszOCwOHYrcy035-scPtqcAdZCMfIz4dO7xVe3eBVGYgiK-GRi4yks9l8jjYRWIyK-0r4Ta4DZJNEWNwDPuS9lEb7gryEmzYpKkEN1GVpkZkIUpSbalDFucJDXz2ZHvczBlfLFKipvWHWkRSUYgu-rf-3_VpAbFQbRE_ZxpQSTp1GHDD2nrbXEzpU3O58ESJfL99UlgYO12XqeHlPy6k5_7ILX9UrUyuJwliRI56FbKhM-wCXSlPbwt-7U8FvsYyWiovfAU1KqfaDlNtt4u9ZYoKcVyjJjRkUm3ZpTfNoY9qTWSM0iEcRya-U2MImx3c0qvgUsWji-plEv_LL9WkKc&s=dO-6EIsah3qx0NnDNnClVg6HjaZTAUj0JZUMpWqTuAK0x1IICPcIEJml65CXJYdFV45K60iUqy-2py3lFWY6rdx0per_NTvpVXTU462q-6AERzygnGBkELRFP707LeOkIhqv-1YM7p_MPWwyP5tIFCH6-402Lxih50lPYnhvZSO9MeKyvyqlf-CL89X1Qp5bplcBrbccK8fUbv--aWopdYofwOOe7S8sr1Zvocr-4GE2tdxV3MOOhcGdvwZ5lP0vGUk7vVII2huHCl9uF4P5-McnnJAwO9A_FrpJ6S2VWkLGrlT6809hLk6OEYvqrLFskz1p4y9k01l42HgqnprQ6g&h=RiIzZTXGiEy51mGyB4bC6frtNZgG36mpXX90GMMeA_o + cache-control: + - no-cache + content-length: + - '88' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/24e93553-7b36-4888-b5c2-213c81395ee4?api-version=2023-06-01-preview&t=638355572901326198&c=MIIHHjCCBgagAwIBAgITOgI8r7Mf_biwA5ZedQAEAjyvszANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBG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bFQbRE_ZxpQSTp1GHDD2nrbXEzpU3O58ESJfL99UlgYO12XqeHlPy6k5_7ILX9UrUyuJwliRI56FbKhM-wCXSlPbwt-7U8FvsYyWiovfAU1KqfaDlNtt4u9ZYoKcVyjJjRkUm3ZpTfNoY9qTWSM0iEcRya-U2MImx3c0qvgUsWji-plEv_LL9WkKc&s=kRWwS2mPutJsittWCNNzk0JtNR91FTE17Z19qzl4tJwB2I9OT71klULVHvSGPi-HDv9MynCmvaavrPUbjaB9rIwXaB2UHcNEovi8y7aO1DkujgyIYHAz56A6m7X5UBlMrfIUDvBxvTbRbH0pesp85CoQcLRf70Wp_PL1apAaiTB-FwQno88NP96FzPLUf6kXuTuF9n4g7OUlR0NhWtSkbZladzCug6mzE7QcnoBgywLdqd1NY4Dy_1vkGkTNoBfbHrZXkekPSe672RlgqiLPl8jbJzXalDKhOf5NY5tPp-7EgNgoPpoQbvkpfWQ6exiy223UkpYFlVjAl7e5IruBKQ&h=3WwBwyTSvGi2WoG7_MDP64bfo8alyXS0u-9ZOtdtxrE + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:14:54.3487524Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:14:54.3487524+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:14:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:14:54.3487524Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:14:54.3487524+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:16:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:14:54.3487524Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:14:54.3487524+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:17:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:14:54.3487524Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:14:54.3487524+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:18:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:14:54.3487524Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","administratorLogin":"admin123","state":"Provisioning","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:14:54.3487524+00:00"},"highAvailability":{"mode":"Disabled","state":""},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:19:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - rest + Connection: + - keep-alive + ParameterSetName: + - --method --url + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002?api-version=2023-06-01-preview + response: + body: + string: '{"sku":{"name":"Standard_D2ds_v4","tier":"GeneralPurpose"},"systemData":{"createdAt":"2023-11-14T11:14:54.3487524Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":240,"tier":"P6","storageSizeGB":64,"autoGrow":"Disabled"},"network":{"publicNetworkAccess":"Enabled"},"privateEndpointConnections":[],"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"clitest000002.postgres.database.azure.com","version":"15","minorVersion":"4","administratorLogin":"admin123","state":"Ready","availabilityZone":"1","backup":{"backupRetentionDays":7,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2023-11-14T11:14:54.3487524+00:00"},"highAvailability":{"mode":"Disabled","state":"NotEnabled"},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"East + US 2 EUAP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002","name":"clitest000002","type":"Microsoft.DBforPostgreSQL/flexibleServers"}' + headers: + cache-control: + - no-cache + content-length: + - '1214' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:20:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-link-resource list + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --type + User-Agent: + - python/3.10.12 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.35) AZURECLI/2.54.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateLinkResources?api-version=2023-06-01-preview + response: + body: + string: '{"value":[{"properties":{"groupId":"postgresqlServer","requiredMembers":["postgresqlServer"],"requiredZoneNames":["privatelink.postgres.database.azure.com"]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fspg000001/providers/Microsoft.DBforPostgreSQL/flexibleServers/clitest000002/privateLinkResources/postgresqlServer","name":"postgresqlServer","type":"Microsoft.DBforPostgreSQL/flexibleServers/privateLinkResources"}]}' + headers: + cache-control: + - no-cache + content-length: + - '456' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 14 Nov 2023 11:20:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py index 2ba5a5a9a73..2bc9e55e171 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py @@ -4754,4 +4754,151 @@ def check_provisioning_state_for_mongocluster_resource(self): count+=1 time.sleep(600) # Wait for 10 minutes state = self.get_provisioning_state_for_mongocluster_resource() - print("creation succeeded!") \ No newline at end of file + print("creation succeeded!") + + +class NetworkPrivateLinkPostgreSQLFlexibleServerScenarioTest(ScenarioTest): + + @ResourceGroupPreparer(name_prefix='cli_test_fspg', random_name_length=18, location='eastus2euap') + def test_private_link_resource_postgres_flexible_server(self, resource_group): + password = "aBcD1234!@#$" + username = "admin123" + self.kwargs.update({ + 'server_name': self.create_random_name(prefix='clitest', length=15), + 'sub': self.get_subscription_id(), + 'body': f"""{{\\"location\\": \\"eastus2euap\\", \\"sku\\": {{\\"name\\": \\"Standard_D2ds_v4\\", \\"tier\\": \\"GeneralPurpose\\"}}, \\"properties\\": {{\\"administratorLogin\\": \\"{username}\\", \\"administratorLoginPassword\\": \\"{password}\\", \\"version\\": \\"15\\", \\"storage\\": {{\\"storageSizeGB\\": 64, \\"autoGrow\\": \\"Disabled\\"}}, \\"authConfig\\": {{\\"activeDirectoryAuth\\": \\"Disabled\\", \\"passwordAuth\\": \\"Enabled\\", \\"tenantId\\": \\"\\"}}, \\"backup\\": {{\\"backupRetentionDays\\": 7, \\"geoRedundantBackup\\": \\"Disabled\\"}}, \\"highAvailability\\": {{\\"mode\\": \\"Disabled\\"}}, \\"createMode\\": \\"Create\\"}}}}""", + 'headers': '{\\"Content-Type\\":\\"application/json\\"}' + }) + + response = self.cmd('az rest --method "PUT" --headers "{headers}" \ + --url "https://management.azure.com/subscriptions/{sub}/resourcegroups/{rg}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server_name}?api-version=2023-06-01-preview" \ + --body "{body}"') + + self.check_provisioning_state_for_postgresql_flexible_server() + + self.cmd('az network private-link-resource list --name {server_name} --resource-group {rg} --type Microsoft.DBforPostgreSQL/flexibleServers', + checks=[self.check('length(@)', 1), self.check('[0].properties.groupId', 'postgresqlServer')]) + + + @ResourceGroupPreparer(name_prefix='cli_test_fspg', random_name_length=18, location='eastus2euap') + def test_private_endpoint_connection_postgres_flexible_server(self, resource_group): + from azure.mgmt.core.tools import resource_id + namespace = 'Microsoft.DBforPostgreSQL' + instance_type = 'flexibleServers' + resource_name = self.create_random_name(prefix='clitest', length=15) + target_resource_id = resource_id( + subscription=self.get_subscription_id(), + resource_group=resource_group, + namespace=namespace, + type=instance_type, + name=resource_name, + ) + password = "aBcD1234!@#$" + username = "admin123" + self.kwargs.update({ + 'server_name': resource_name, + 'target_resource_id': target_resource_id, + 'location': 'eastus2euap', + 'storage': 64, + 'resource_type': 'Microsoft.DBforPostgreSQL/flexibleServers', + 'vnet': self.create_random_name('cli-vnet-', 24), + 'subnet': self.create_random_name('cli-subnet-', 24), + 'pe': self.create_random_name('cli-pe-', 24), + 'pe_connection': self.create_random_name('cli-pec-', 24), + 'sub': self.get_subscription_id(), + 'body': f"""{{\\"location\\": \\"eastus2euap\\", \\"sku\\": {{\\"name\\": \\"Standard_D2ds_v4\\", \\"tier\\": \\"GeneralPurpose\\"}}, \\"properties\\": {{\\"administratorLogin\\": \\"{username}\\", \\"administratorLoginPassword\\": \\"{password}\\", \\"version\\": \\"15\\", \\"storage\\": {{\\"storageSizeGB\\": 64, \\"autoGrow\\": \\"Disabled\\"}}, \\"authConfig\\": {{\\"activeDirectoryAuth\\": \\"Disabled\\", \\"passwordAuth\\": \\"Enabled\\", \\"tenantId\\": \\"\\"}}, \\"backup\\": {{\\"backupRetentionDays\\": 7, \\"geoRedundantBackup\\": \\"Disabled\\"}}, \\"highAvailability\\": {{\\"mode\\": \\"Disabled\\"}}, \\"createMode\\": \\"Create\\"}}}}""", + 'headers': '{\\"Content-Type\\":\\"application/json\\"}' + }) + + self.cmd('az network vnet create -n {vnet} -g {rg} -l {location} --subnet-name {subnet}', + checks=self.check('length(newVNet.subnets)', 1)) + self.cmd('az network vnet subnet update -n {subnet} --vnet-name {vnet} -g {rg} ' + '--disable-private-endpoint-network-policies true', + checks=self.check('privateEndpointNetworkPolicies', 'Disabled')) + + response = self.cmd('az rest --method "PUT" --headers "{headers}" \ + --url "https://management.azure.com/subscriptions/{sub}/resourcegroups/{rg}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server_name}?api-version=2023-06-01-preview" \ + --body "{body}"') + self.check_provisioning_state_for_postgresql_flexible_server() + + target_private_link_resource = self.cmd('az network private-link-resource list --name {server_name} --resource-group {rg} --type {resource_type}').get_output_in_json() + self.kwargs.update({ + 'group_id': target_private_link_resource[0]['properties']['groupId'] + }) + + # Create a private endpoint connection + pe = self.cmd( + 'az network private-endpoint create -g {rg} -n {pe} --vnet-name {vnet} --subnet {subnet} ' + '--connection-name {pe_connection} --private-connection-resource-id {target_resource_id} ' + '--group-id {group_id} --manual-request').get_output_in_json() + self.kwargs['pe_id'] = pe['id'] + self.kwargs['pe_name'] = self.kwargs['pe_id'].split('/')[-1] + + # Show the connection at PostgreSQL side + list_private_endpoint_conn = self.cmd('az network private-endpoint-connection list --name {server_name} --resource-group {rg} --type {resource_type}').get_output_in_json() + self.kwargs.update({ + "pec_id": list_private_endpoint_conn[0]['id'] + }) + + self.kwargs.update({ + "pec_name": self.kwargs['pec_id'].split('/')[-1] + }) + self.cmd('az network private-endpoint-connection show --id {pec_id}', + checks=self.check('id', '{pec_id}')) + self.cmd('az network private-endpoint-connection show --resource-name {server_name} -n {pec_name} -g {rg} --type {resource_type}') + + self.cmd( + "az network private-endpoint-connection show --resource-name {server_name} -n {pec_name} -g {rg} --type {resource_type}", + checks=self.check('properties.privateLinkServiceConnectionState.status', 'Pending') + ) + + # Approve / reject private endpoint + self.kwargs.update({ + 'approval_desc': 'Approved.', + 'rejection_desc': 'Rejected.' + }) + self.cmd( + 'az network private-endpoint-connection approve --resource-name {server_name} --resource-group {rg} --name {pec_name} --type {resource_type} ' + '--description "{approval_desc}"', checks=[ + self.check('properties.privateLinkServiceConnectionState.status', 'Approved') + ]) + self.cmd('az network private-endpoint-connection reject --id {pec_id} ' + '--description "{rejection_desc}"', + checks=[ + self.check('properties.privateLinkServiceConnectionState.status', 'Rejected') + ]) + self.cmd('az network private-endpoint-connection list --name {server_name} --resource-group {rg} --type {resource_type}', checks=[ + self.check('length(@)', 1) + ]) + + # Test delete + self.cmd('az network private-endpoint-connection delete --id {pec_id} -y') + + + def get_provisioning_state_for_postgresql_flexible_server(self): + # get provisioning state + response = self.cmd('az rest --method "GET" \ + --url "https://management.azure.com/subscriptions/{sub}/resourcegroups/{rg}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server_name}?api-version=2023-06-01-preview" \ + ').get_output_in_json() + + return response['properties']['state'] + + + def check_provisioning_state_for_postgresql_flexible_server(self): + + # Wait for a moment before the server provisioning has begun to avoid inaccurate 404 errors. + time.sleep(10) + count = 0 + print("checking status of creation...........") + state = self.get_provisioning_state_for_postgresql_flexible_server() + print(state) + while state!="Ready": + if state == "Provisioning": + print("instance not yet created. waiting for 1 more min...") + time.sleep(60) # Wait for 1 minute + elif (count == 15): + print("TimeOut after waiting for 15 mins!") + self.assertTrue(False) + count+=1 + state = self.get_provisioning_state_for_postgresql_flexible_server() + print("Server creation succeeded!")