diff --git a/sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md index 13f48a8bc332..b8a7b160ed2f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md @@ -2,13 +2,9 @@ ## 2.25.0-beta.1 (Unreleased) -### Features Added - -### Breaking Changes - ### Bugs Fixed -### Other Changes +- Fixed a bug that `listAvailablePrivateIPAddresses` in `Subnet` throws NPE when user has no permission. ## 2.24.0 (2023-02-17) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetImpl.java index e53998271804..a54d31c81517 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetImpl.java @@ -268,7 +268,7 @@ public Set listAvailablePrivateIPAddresses() { .serviceClient() .getVirtualNetworks() .checkIpAddressAvailability(this.parent().resourceGroupName(), this.parent().name(), takenIPAddress); - if (result == null) { + if (result == null || result.availableIpAddresses() == null) { return ipAddresses; } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/NetworkInterfaceOperationsTests.java b/sdk/resourcemanager/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/NetworkInterfaceOperationsTests.java index cf5d13262a24..d0a7b32daa05 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/NetworkInterfaceOperationsTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/NetworkInterfaceOperationsTests.java @@ -3,34 +3,36 @@ package com.azure.resourcemanager.network; +import com.azure.core.management.Region; import com.azure.resourcemanager.network.models.ApplicationSecurityGroup; import com.azure.resourcemanager.network.models.Network; import com.azure.resourcemanager.network.models.NetworkInterface; import com.azure.resourcemanager.network.models.NetworkInterfaces; import com.azure.resourcemanager.network.models.Networks; import com.azure.resourcemanager.network.models.NicIpConfiguration; +import com.azure.resourcemanager.network.models.Subnet; import com.azure.resourcemanager.resources.fluentcore.arm.ResourceUtils; -import com.azure.resourcemanager.resources.models.ResourceGroup; -import com.azure.resourcemanager.resources.models.ResourceGroups; -import com.azure.core.management.Region; import com.azure.resourcemanager.resources.fluentcore.model.Creatable; import com.azure.resourcemanager.resources.fluentcore.model.CreatedResources; +import com.azure.resourcemanager.resources.models.ResourceGroup; +import com.azure.resourcemanager.resources.models.ResourceGroups; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; +import java.util.Set; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - public class NetworkInterfaceOperationsTests extends NetworkManagementTest { @Test @@ -424,4 +426,38 @@ public void canDeleteNetworkWithServiceCallBack() { } Assertions.assertEquals(counter.intValue(), 1); } + + @Test + public void canListSubnetAvailableIpAddresses() { + String networkName = generateRandomResourceName("vnet", 10); + String subnetName = "subnet1"; + String nicName = generateRandomResourceName("nic", 10); + + Network network = networkManager.networks() + .define(networkName) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .withAddressSpace("10.0.0.0/24") + .withSubnet(subnetName, "10.0.0.0/29") + .create(); + + Subnet subnet = network.subnets().get(subnetName); + Set availableIps = subnet.listAvailablePrivateIPAddresses(); + Assertions.assertTrue(availableIps.size() > 0); + + String availableIp = availableIps.iterator().next(); + + // occupy the available ip address + NetworkInterface nic = networkManager.networkInterfaces() + .define(nicName) + .withRegion(Region.US_EAST) + .withExistingResourceGroup(rgName) + .withExistingPrimaryNetwork(network) + .withSubnet(subnetName) + .withPrimaryPrivateIPAddressStatic(availableIp) + .create(); + + availableIps = subnet.listAvailablePrivateIPAddresses(); + Assertions.assertFalse(availableIps.contains(availableIp)); + } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/test/resources/session-records/NetworkInterfaceOperationsTests.canListSubnetAvailableIpAddresses.json b/sdk/resourcemanager/azure-resourcemanager-network/src/test/resources/session-records/NetworkInterfaceOperationsTests.canListSubnetAvailableIpAddresses.json new file mode 100644 index 000000000000..38ce96e2801a --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/test/resources/session-records/NetworkInterfaceOperationsTests.canListSubnetAvailableIpAddresses.json @@ -0,0 +1,232 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javanwmrg63002?api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.24.0 (17.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "46465498-e6d5-4e71-a33c-fa03b50e17c1", + "Content-Type" : "application/json" + }, + "Response" : { + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "201", + "Date" : "Mon, 27 Feb 2023 06:24:38 GMT", + "x-ms-correlation-request-id" : "e447b06f-d966-406b-bcf8-bcc1a436a730", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20230227T062439Z:e447b06f-d966-406b-bcf8-bcc1a436a730", + "Expires" : "-1", + "Content-Length" : "225", + "x-ms-request-id" : "e447b06f-d966-406b-bcf8-bcc1a436a730", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002\",\"name\":\"javanwmrg63002\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226?api-version=2022-07-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.network/2.24.0 (17.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bdcafc6e-e031-45a9-9edc-289caaf460d6", + "Content-Type" : "application/json" + }, + "Response" : { + "azure-asyncnotification" : "Enabled", + "Server" : "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "Pragma" : "no-cache", + "StatusCode" : "201", + "Date" : "Mon, 27 Feb 2023 06:24:43 GMT", + "x-ms-correlation-request-id" : "147f09ed-532f-4f03-926e-d259351fd2a5", + "x-ms-arm-service-request-id" : "dde1bf27-4161-4501-b7ac-ab61d47a8711", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Retry-After" : "0", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20230227T062444Z:147f09ed-532f-4f03-926e-d259351fd2a5", + "Expires" : "-1", + "Content-Length" : "1294", + "x-ms-request-id" : "ee8130d9-3085-42a9-a542-fffd71df788f", + "Body" : "{\r\n \"name\": \"vnet09226\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226\",\r\n \"etag\": \"W/\\\"ee38158b-afe6-4760-84c5-04f761e44915\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"b5390467-91d3-4ad8-85d4-20c5e158a1a5\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/24\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226/subnets/subnet1\",\r\n \"etag\": \"W/\\\"ee38158b-afe6-4760-84c5-04f761e44915\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/29\",\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}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ee8130d9-3085-42a9-a542-fffd71df788f?api-version=2022-07-01", + "x-ms-client-request-id" : "bdcafc6e-e031-45a9-9edc-289caaf460d6", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ee8130d9-3085-42a9-a542-fffd71df788f?api-version=2022-07-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.network/2.24.0 (17.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c51a4706-1d4b-4f32-a511-ae647f6f641b" + }, + "Response" : { + "Server" : "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "x-ms-correlation-request-id" : "7ab7fb3a-f092-4a9d-bdd0-e587fbd54777", + "Date" : "Mon, 27 Feb 2023 06:24:49 GMT", + "x-ms-arm-service-request-id" : "325d0b6d-06cf-42f5-9f5c-b4fd6a07d183", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20230227T062449Z:7ab7fb3a-f092-4a9d-bdd0-e587fbd54777", + "Expires" : "-1", + "Content-Length" : "29", + "x-ms-request-id" : "0f09617e-467a-4a11-b5e2-304f4b469c93", + "Body" : "{\r\n \"status\": \"Succeeded\"\r\n}", + "x-ms-client-request-id" : "c51a4706-1d4b-4f32-a511-ae647f6f641b", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226?api-version=2022-07-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.network/2.24.0 (17.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b4da5d96-f6d2-4a5c-80a0-c17ac0d3df01" + }, + "Response" : { + "Server" : "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "x-ms-correlation-request-id" : "b255b336-99c7-48d3-aa17-1e0404a029d7", + "Date" : "Mon, 27 Feb 2023 06:24:49 GMT", + "x-ms-arm-service-request-id" : "1a4bd892-f87b-4cbc-8a75-53e404a4ea67", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "W/\"a78424d0-9f79-40e8-a0fa-d69d6c87f3d4\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20230227T062449Z:b255b336-99c7-48d3-aa17-1e0404a029d7", + "Expires" : "-1", + "Content-Length" : "1296", + "x-ms-request-id" : "b1cfda96-f625-4331-afcf-a5032bba6399", + "Body" : "{\r\n \"name\": \"vnet09226\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226\",\r\n \"etag\": \"W/\\\"a78424d0-9f79-40e8-a0fa-d69d6c87f3d4\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"b5390467-91d3-4ad8-85d4-20c5e158a1a5\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/24\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226/subnets/subnet1\",\r\n \"etag\": \"W/\\\"a78424d0-9f79-40e8-a0fa-d69d6c87f3d4\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/29\",\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}", + "x-ms-client-request-id" : "b4da5d96-f6d2-4a5c-80a0-c17ac0d3df01", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226/CheckIPAddressAvailability?ipAddress=10.0.0.0&api-version=2022-07-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.network/2.24.0 (17.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "96525427-2b37-4ec5-ab91-a9014837f0ae", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "200", + "Date" : "Mon, 27 Feb 2023 06:24:50 GMT", + "x-ms-correlation-request-id" : "22433508-94c2-43fe-8ace-3f6a30e0b684", + "x-ms-arm-service-request-id" : "44432b85-293e-41a6-816d-e755e404f748", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20230227T062450Z:22433508-94c2-43fe-8ace-3f6a30e0b684", + "Expires" : "-1", + "Content-Length" : "142", + "x-ms-request-id" : "706c3eac-a4d1-449c-9662-ec02cdf4230c", + "Body" : "{\r\n \"available\": false,\r\n \"availableIPAddresses\": [\r\n \"10.0.0.4\",\r\n \"10.0.0.5\",\r\n \"10.0.0.6\"\r\n ],\r\n \"isPlatformReserved\": true\r\n}", + "x-ms-client-request-id" : "96525427-2b37-4ec5-ab91-a9014837f0ae", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/networkInterfaces/nic06470a?api-version=2022-07-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.network/2.24.0 (17.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "50699c51-5a1e-455e-aea9-49405e02169a", + "Content-Type" : "application/json" + }, + "Response" : { + "azure-asyncnotification" : "Enabled", + "Server" : "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "201", + "Date" : "Mon, 27 Feb 2023 06:24:55 GMT", + "x-ms-correlation-request-id" : "428e8dcc-2a5f-4bd5-8af6-d7f901634591", + "x-ms-arm-service-request-id" : "79ad8732-4615-4afa-98f2-6e7eec137d89", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20230227T062455Z:428e8dcc-2a5f-4bd5-8af6-d7f901634591", + "Expires" : "-1", + "Content-Length" : "1771", + "x-ms-request-id" : "45746c7b-73d7-4bfb-8a0b-0fe6b65bdc4a", + "Body" : "{\r\n \"name\": \"nic06470a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/networkInterfaces/nic06470a\",\r\n \"etag\": \"W/\\\"b79ab544-b8ae-4400-898f-154dafd5521b\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"6b0c4149-448b-4f1a-bff0-c1d82e2a536d\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"primary\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/networkInterfaces/nic06470a/ipConfigurations/primary\",\r\n \"etag\": \"W/\\\"b79ab544-b8ae-4400-898f-154dafd5521b\\\"\",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": \"Static\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226/subnets/subnet1\"\r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"m2cdtnotshmevbouedc4cwfbuf.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"vnetEncryptionSupported\": false,\r\n \"enableIPForwarding\": false,\r\n \"disableTcpStateTracking\": false,\r\n \"hostedWorkloads\": [],\r\n \"tapConfigurations\": [],\r\n \"nicType\": \"Standard\",\r\n \"allowPort25Out\": true\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\",\r\n \"location\": \"eastus\",\r\n \"kind\": \"Regular\"\r\n}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/45746c7b-73d7-4bfb-8a0b-0fe6b65bdc4a?api-version=2022-07-01", + "x-ms-client-request-id" : "50699c51-5a1e-455e-aea9-49405e02169a", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javanwmrg63002/providers/Microsoft.Network/virtualNetworks/vnet09226/CheckIPAddressAvailability?ipAddress=10.0.0.0&api-version=2022-07-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.network/2.24.0 (17.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ac0897e6-706c-41ae-a237-bf1ccd823e05", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "200", + "Date" : "Mon, 27 Feb 2023 06:24:56 GMT", + "x-ms-correlation-request-id" : "8e67eea7-24b6-47c8-bc97-3be295be8d19", + "x-ms-arm-service-request-id" : "c11b9b50-dd57-48e1-817e-023c789a8787", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20230227T062456Z:8e67eea7-24b6-47c8-bc97-3be295be8d19", + "Expires" : "-1", + "Content-Length" : "125", + "x-ms-request-id" : "de2a4036-b911-48a9-b1e9-1bcf935fbe88", + "Body" : "{\r\n \"available\": false,\r\n \"availableIPAddresses\": [\r\n \"10.0.0.5\",\r\n \"10.0.0.6\"\r\n ],\r\n \"isPlatformReserved\": true\r\n}", + "x-ms-client-request-id" : "ac0897e6-706c-41ae-a237-bf1ccd823e05", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javanwmrg63002?api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.24.0 (17.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b12b9746-09c3-454f-aaf1-0f08fead5155", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "StatusCode" : "202", + "Date" : "Mon, 27 Feb 2023 06:25:00 GMT", + "x-ms-correlation-request-id" : "84be6549-604a-417b-8acf-5d428c1b55ea", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Retry-After" : "0", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20230227T062500Z:84be6549-604a-417b-8acf-5d428c1b55ea", + "Expires" : "-1", + "Content-Length" : "0", + "x-ms-request-id" : "84be6549-604a-417b-8acf-5d428c1b55ea", + "Location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBTldNUkc2MzAwMi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-01-01" + }, + "Exception" : null + } ], + "variables" : [ "javanwmrg63002", "vnet09226", "nic06470a" ] +} \ No newline at end of file