...

Text file src/github.com/go-openapi/spec/fixtures/azure/examples/NetworkInterfaceCreate.json

Documentation: github.com/go-openapi/spec/fixtures/azure/examples

     1{
     2  "parameters": {
     3    "api-version": "2020-04-01",
     4    "subscriptionId": "subid",
     5    "resourceGroupName": "rg1",
     6    "networkInterfaceName": "test-nic",
     7    "parameters": {
     8      "properties": {
     9        "enableAcceleratedNetworking": true,
    10        "ipConfigurations": [
    11          {
    12            "name": "ipconfig1",
    13            "properties": {
    14              "publicIPAddress": {
    15                "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip"
    16              },
    17              "subnet": {
    18                "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default"
    19              }
    20            }
    21          }
    22        ]
    23      },
    24      "location": "eastus"
    25    }
    26  },
    27  "responses": {
    28    "200": {
    29      "body": {
    30        "name": "test-nic",
    31        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic",
    32        "location": "eastus",
    33        "properties": {
    34          "provisioningState": "Succeeded",
    35          "ipConfigurations": [
    36            {
    37              "name": "ipconfig1",
    38              "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1",
    39              "properties": {
    40                "provisioningState": "Succeeded",
    41                "privateIPAddress": "172.20.2.4",
    42                "privateIPAllocationMethod": "Dynamic",
    43                "publicIPAddress": {
    44                  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip"
    45                },
    46                "subnet": {
    47                  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default"
    48                },
    49                "primary": true,
    50                "privateIPAddressVersion": "IPv4"
    51              }
    52            }
    53          ],
    54          "dnsSettings": {
    55            "dnsServers": [],
    56            "appliedDnsServers": []
    57          },
    58          "enableAcceleratedNetworking": true,
    59          "enableIPForwarding": false
    60        },
    61        "type": "Microsoft.Network/networkInterfaces"
    62      }
    63    },
    64    "201": {
    65      "body": {
    66        "name": "test-nic",
    67        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic",
    68        "location": "eastus",
    69        "properties": {
    70          "provisioningState": "Succeeded",
    71          "ipConfigurations": [
    72            {
    73              "name": "ipconfig1",
    74              "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/test-nic/ipConfigurations/ipconfig1",
    75              "properties": {
    76                "provisioningState": "Succeeded",
    77                "privateIPAddress": "172.20.2.4",
    78                "privateIPAllocationMethod": "Dynamic",
    79                "publicIPAddress": {
    80                  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip"
    81                },
    82                "subnet": {
    83                  "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default"
    84                },
    85                "primary": true,
    86                "privateIPAddressVersion": "IPv4"
    87              }
    88            }
    89          ],
    90          "dnsSettings": {
    91            "dnsServers": [],
    92            "appliedDnsServers": []
    93          },
    94          "enableAcceleratedNetworking": true,
    95          "enableIPForwarding": false
    96        },
    97        "type": "Microsoft.Network/networkInterfaces"
    98      }
    99    }
   100  }
   101}

View as plain text