...

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

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

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "title": "NetworkManagementClient",
     5    "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
     6    "version": "2020-04-01"
     7  },
     8  "host": "management.azure.com",
     9  "schemes": [
    10    "https"
    11  ],
    12  "consumes": [
    13    "application/json"
    14  ],
    15  "produces": [
    16    "application/json"
    17  ],
    18  "security": [
    19    {
    20      "azure_auth": [
    21        "user_impersonation"
    22      ]
    23    }
    24  ],
    25  "securityDefinitions": {
    26    "azure_auth": {
    27      "type": "oauth2",
    28      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
    29      "flow": "implicit",
    30      "description": "Azure Active Directory OAuth2 Flow.",
    31      "scopes": {
    32        "user_impersonation": "impersonate your user account"
    33      }
    34    }
    35  },
    36  "paths": {
    37    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}": {
    38      "delete": {
    39        "tags": [
    40          "NetworkSecurityGroups"
    41        ],
    42        "operationId": "NetworkSecurityGroups_Delete",
    43        "description": "Deletes the specified network security group.",
    44        "parameters": [
    45          {
    46            "name": "resourceGroupName",
    47            "in": "path",
    48            "required": true,
    49            "type": "string",
    50            "description": "The name of the resource group."
    51          },
    52          {
    53            "name": "networkSecurityGroupName",
    54            "in": "path",
    55            "required": true,
    56            "type": "string",
    57            "description": "The name of the network security group."
    58          },
    59          {
    60            "$ref": "./network.json#/parameters/ApiVersionParameter"
    61          },
    62          {
    63            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
    64          }
    65        ],
    66        "responses": {
    67          "202": {
    68            "description": "Accepted and the operation will complete asynchronously."
    69          },
    70          "200": {
    71            "description": "Delete successful."
    72          },
    73          "204": {
    74            "description": "Request successful. Resource does not exist."
    75          },
    76          "default": {
    77            "description": "Error response describing why the operation failed.",
    78            "schema": {
    79              "$ref": "./network.json#/definitions/CloudError"
    80            }
    81          }
    82        },
    83        "x-ms-examples": {
    84          "Delete network security group": {
    85            "$ref": "./examples/NetworkSecurityGroupDelete.json"
    86          }
    87        },
    88        "x-ms-long-running-operation": true,
    89        "x-ms-long-running-operation-options": {
    90          "final-state-via": "location"
    91        }
    92      },
    93      "get": {
    94        "tags": [
    95          "NetworkSecurityGroups"
    96        ],
    97        "operationId": "NetworkSecurityGroups_Get",
    98        "description": "Gets the specified network security group.",
    99        "parameters": [
   100          {
   101            "name": "resourceGroupName",
   102            "in": "path",
   103            "required": true,
   104            "type": "string",
   105            "description": "The name of the resource group."
   106          },
   107          {
   108            "name": "networkSecurityGroupName",
   109            "in": "path",
   110            "required": true,
   111            "type": "string",
   112            "description": "The name of the network security group."
   113          },
   114          {
   115            "$ref": "./network.json#/parameters/ApiVersionParameter"
   116          },
   117          {
   118            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   119          },
   120          {
   121            "name": "$expand",
   122            "in": "query",
   123            "required": false,
   124            "type": "string",
   125            "description": "Expands referenced resources."
   126          }
   127        ],
   128        "responses": {
   129          "200": {
   130            "description": "Request successful. The operation returns the resulting NetworkSecurityGroup resource.",
   131            "schema": {
   132              "$ref": "#/definitions/NetworkSecurityGroup"
   133            }
   134          },
   135          "default": {
   136            "description": "Error response describing why the operation failed.",
   137            "schema": {
   138              "$ref": "./network.json#/definitions/CloudError"
   139            }
   140          }
   141        },
   142        "x-ms-examples": {
   143          "Get network security group": {
   144            "$ref": "./examples/NetworkSecurityGroupGet.json"
   145          }
   146        }
   147      },
   148      "put": {
   149        "tags": [
   150          "NetworkSecurityGroups"
   151        ],
   152        "operationId": "NetworkSecurityGroups_CreateOrUpdate",
   153        "description": "Creates or updates a network security group in the specified resource group.",
   154        "parameters": [
   155          {
   156            "name": "resourceGroupName",
   157            "in": "path",
   158            "required": true,
   159            "type": "string",
   160            "description": "The name of the resource group."
   161          },
   162          {
   163            "name": "networkSecurityGroupName",
   164            "in": "path",
   165            "required": true,
   166            "type": "string",
   167            "description": "The name of the network security group."
   168          },
   169          {
   170            "name": "parameters",
   171            "in": "body",
   172            "required": true,
   173            "schema": {
   174              "$ref": "#/definitions/NetworkSecurityGroup"
   175            },
   176            "description": "Parameters supplied to the create or update network security group operation."
   177          },
   178          {
   179            "$ref": "./network.json#/parameters/ApiVersionParameter"
   180          },
   181          {
   182            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   183          }
   184        ],
   185        "responses": {
   186          "201": {
   187            "description": "Create successful. The operation returns the resulting NetworkSecurityGroup resource.",
   188            "schema": {
   189              "$ref": "#/definitions/NetworkSecurityGroup"
   190            }
   191          },
   192          "200": {
   193            "description": "Update successful. The operation returns the resulting NetworkSecurityGroup resource.",
   194            "schema": {
   195              "$ref": "#/definitions/NetworkSecurityGroup"
   196            }
   197          },
   198          "default": {
   199            "description": "Error response describing why the operation failed.",
   200            "schema": {
   201              "$ref": "./network.json#/definitions/CloudError"
   202            }
   203          }
   204        },
   205        "x-ms-examples": {
   206          "Create network security group": {
   207            "$ref": "./examples/NetworkSecurityGroupCreate.json"
   208          },
   209          "Create network security group with rule": {
   210            "$ref": "./examples/NetworkSecurityGroupCreateWithRule.json"
   211          }
   212        },
   213        "x-ms-long-running-operation": true,
   214        "x-ms-long-running-operation-options": {
   215          "final-state-via": "azure-async-operation"
   216        }
   217      },
   218      "patch": {
   219        "tags": [
   220          "NetworkSecurityGroups"
   221        ],
   222        "operationId": "NetworkSecurityGroups_UpdateTags",
   223        "description": "Updates a network security group tags.",
   224        "parameters": [
   225          {
   226            "name": "resourceGroupName",
   227            "in": "path",
   228            "required": true,
   229            "type": "string",
   230            "description": "The name of the resource group."
   231          },
   232          {
   233            "name": "networkSecurityGroupName",
   234            "in": "path",
   235            "required": true,
   236            "type": "string",
   237            "description": "The name of the network security group."
   238          },
   239          {
   240            "name": "parameters",
   241            "in": "body",
   242            "required": true,
   243            "schema": {
   244              "$ref": "./network.json#/definitions/TagsObject"
   245            },
   246            "description": "Parameters supplied to update network security group tags."
   247          },
   248          {
   249            "$ref": "./network.json#/parameters/ApiVersionParameter"
   250          },
   251          {
   252            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   253          }
   254        ],
   255        "responses": {
   256          "200": {
   257            "description": "Update successful. The operation returns the resulting NetworkSecurityGroup resource.",
   258            "schema": {
   259              "$ref": "#/definitions/NetworkSecurityGroup"
   260            }
   261          },
   262          "default": {
   263            "description": "Error response describing why the operation failed.",
   264            "schema": {
   265              "$ref": "./network.json#/definitions/CloudError"
   266            }
   267          }
   268        },
   269        "x-ms-examples": {
   270          "Update network security group tags": {
   271            "$ref": "./examples/NetworkSecurityGroupUpdateTags.json"
   272          }
   273        }
   274      }
   275    },
   276    "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups": {
   277      "get": {
   278        "tags": [
   279          "NetworkSecurityGroups"
   280        ],
   281        "operationId": "NetworkSecurityGroups_ListAll",
   282        "description": "Gets all network security groups in a subscription.",
   283        "parameters": [
   284          {
   285            "$ref": "./network.json#/parameters/ApiVersionParameter"
   286          },
   287          {
   288            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   289          }
   290        ],
   291        "responses": {
   292          "200": {
   293            "description": "Request successful. The operation returns a list of NetworkSecurityGroup resources.",
   294            "schema": {
   295              "$ref": "#/definitions/NetworkSecurityGroupListResult"
   296            }
   297          },
   298          "default": {
   299            "description": "Error response describing why the operation failed.",
   300            "schema": {
   301              "$ref": "./network.json#/definitions/CloudError"
   302            }
   303          }
   304        },
   305        "x-ms-examples": {
   306          "List all network security groups": {
   307            "$ref": "./examples/NetworkSecurityGroupListAll.json"
   308          }
   309        },
   310        "x-ms-pageable": {
   311          "nextLinkName": "nextLink"
   312        }
   313      }
   314    },
   315    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups": {
   316      "get": {
   317        "tags": [
   318          "NetworkSecurityGroups"
   319        ],
   320        "operationId": "NetworkSecurityGroups_List",
   321        "description": "Gets all network security groups in a resource group.",
   322        "parameters": [
   323          {
   324            "name": "resourceGroupName",
   325            "in": "path",
   326            "required": true,
   327            "type": "string",
   328            "description": "The name of the resource group."
   329          },
   330          {
   331            "$ref": "./network.json#/parameters/ApiVersionParameter"
   332          },
   333          {
   334            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   335          }
   336        ],
   337        "responses": {
   338          "200": {
   339            "description": "Request successful. The operation returns a list of NetworkSecurityGroup resources.",
   340            "schema": {
   341              "$ref": "#/definitions/NetworkSecurityGroupListResult"
   342            }
   343          },
   344          "default": {
   345            "description": "Error response describing why the operation failed.",
   346            "schema": {
   347              "$ref": "./network.json#/definitions/CloudError"
   348            }
   349          }
   350        },
   351        "x-ms-examples": {
   352          "List network security groups in resource group": {
   353            "$ref": "./examples/NetworkSecurityGroupList.json"
   354          }
   355        },
   356        "x-ms-pageable": {
   357          "nextLinkName": "nextLink"
   358        }
   359      }
   360    },
   361    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}": {
   362      "delete": {
   363        "tags": [
   364          "SecurityRules"
   365        ],
   366        "operationId": "SecurityRules_Delete",
   367        "description": "Deletes the specified network security rule.",
   368        "parameters": [
   369          {
   370            "name": "resourceGroupName",
   371            "in": "path",
   372            "required": true,
   373            "type": "string",
   374            "description": "The name of the resource group."
   375          },
   376          {
   377            "name": "networkSecurityGroupName",
   378            "in": "path",
   379            "required": true,
   380            "type": "string",
   381            "description": "The name of the network security group."
   382          },
   383          {
   384            "name": "securityRuleName",
   385            "in": "path",
   386            "required": true,
   387            "type": "string",
   388            "description": "The name of the security rule."
   389          },
   390          {
   391            "$ref": "./network.json#/parameters/ApiVersionParameter"
   392          },
   393          {
   394            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   395          }
   396        ],
   397        "responses": {
   398          "204": {
   399            "description": "Request successful. Resource does not exist."
   400          },
   401          "202": {
   402            "description": "Accepted and the operation will complete asynchronously."
   403          },
   404          "200": {
   405            "description": "Delete successful."
   406          },
   407          "default": {
   408            "description": "Error response describing why the operation failed.",
   409            "schema": {
   410              "$ref": "./network.json#/definitions/CloudError"
   411            }
   412          }
   413        },
   414        "x-ms-examples": {
   415          "Delete network security rule from network security group": {
   416            "$ref": "./examples/NetworkSecurityGroupRuleDelete.json"
   417          }
   418        },
   419        "x-ms-long-running-operation": true,
   420        "x-ms-long-running-operation-options": {
   421          "final-state-via": "location"
   422        }
   423      },
   424      "get": {
   425        "tags": [
   426          "SecurityRules"
   427        ],
   428        "operationId": "SecurityRules_Get",
   429        "description": "Get the specified network security rule.",
   430        "parameters": [
   431          {
   432            "name": "resourceGroupName",
   433            "in": "path",
   434            "required": true,
   435            "type": "string",
   436            "description": "The name of the resource group."
   437          },
   438          {
   439            "name": "networkSecurityGroupName",
   440            "in": "path",
   441            "required": true,
   442            "type": "string",
   443            "description": "The name of the network security group."
   444          },
   445          {
   446            "name": "securityRuleName",
   447            "in": "path",
   448            "required": true,
   449            "type": "string",
   450            "description": "The name of the security rule."
   451          },
   452          {
   453            "$ref": "./network.json#/parameters/ApiVersionParameter"
   454          },
   455          {
   456            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   457          }
   458        ],
   459        "responses": {
   460          "200": {
   461            "description": "Request successful. The operation returns the resulting SecurityRule resource.",
   462            "schema": {
   463              "$ref": "#/definitions/SecurityRule"
   464            }
   465          },
   466          "default": {
   467            "description": "Error response describing why the operation failed.",
   468            "schema": {
   469              "$ref": "./network.json#/definitions/CloudError"
   470            }
   471          }
   472        },
   473        "x-ms-examples": {
   474          "Get network security rule in network security group": {
   475            "$ref": "./examples/NetworkSecurityGroupRuleGet.json"
   476          }
   477        }
   478      },
   479      "put": {
   480        "tags": [
   481          "SecurityRules"
   482        ],
   483        "operationId": "SecurityRules_CreateOrUpdate",
   484        "description": "Creates or updates a security rule in the specified network security group.",
   485        "parameters": [
   486          {
   487            "name": "resourceGroupName",
   488            "in": "path",
   489            "required": true,
   490            "type": "string",
   491            "description": "The name of the resource group."
   492          },
   493          {
   494            "name": "networkSecurityGroupName",
   495            "in": "path",
   496            "required": true,
   497            "type": "string",
   498            "description": "The name of the network security group."
   499          },
   500          {
   501            "name": "securityRuleName",
   502            "in": "path",
   503            "required": true,
   504            "type": "string",
   505            "description": "The name of the security rule."
   506          },
   507          {
   508            "name": "securityRuleParameters",
   509            "in": "body",
   510            "required": true,
   511            "schema": {
   512              "$ref": "#/definitions/SecurityRule"
   513            },
   514            "description": "Parameters supplied to the create or update network security rule operation."
   515          },
   516          {
   517            "$ref": "./network.json#/parameters/ApiVersionParameter"
   518          },
   519          {
   520            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   521          }
   522        ],
   523        "responses": {
   524          "200": {
   525            "description": "Update successful. The operation returns the resulting SecurityRule resource.",
   526            "schema": {
   527              "$ref": "#/definitions/SecurityRule"
   528            }
   529          },
   530          "201": {
   531            "description": "Create successful. The operation returns the resulting SecurityRule resource.",
   532            "schema": {
   533              "$ref": "#/definitions/SecurityRule"
   534            }
   535          },
   536          "default": {
   537            "description": "Error response describing why the operation failed.",
   538            "schema": {
   539              "$ref": "./network.json#/definitions/CloudError"
   540            }
   541          }
   542        },
   543        "x-ms-examples": {
   544          "Create security rule": {
   545            "$ref": "./examples/NetworkSecurityGroupRuleCreate.json"
   546          }
   547        },
   548        "x-ms-long-running-operation": true,
   549        "x-ms-long-running-operation-options": {
   550          "final-state-via": "azure-async-operation"
   551        }
   552      }
   553    },
   554    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules": {
   555      "get": {
   556        "tags": [
   557          "SecurityRules"
   558        ],
   559        "operationId": "SecurityRules_List",
   560        "description": "Gets all security rules in a network security group.",
   561        "parameters": [
   562          {
   563            "name": "resourceGroupName",
   564            "in": "path",
   565            "required": true,
   566            "type": "string",
   567            "description": "The name of the resource group."
   568          },
   569          {
   570            "name": "networkSecurityGroupName",
   571            "in": "path",
   572            "required": true,
   573            "type": "string",
   574            "description": "The name of the network security group."
   575          },
   576          {
   577            "$ref": "./network.json#/parameters/ApiVersionParameter"
   578          },
   579          {
   580            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   581          }
   582        ],
   583        "responses": {
   584          "200": {
   585            "description": "Request successful. The operation returns a list of SecurityRule resources.",
   586            "schema": {
   587              "$ref": "#/definitions/SecurityRuleListResult"
   588            }
   589          },
   590          "default": {
   591            "description": "Error response describing why the operation failed.",
   592            "schema": {
   593              "$ref": "./network.json#/definitions/CloudError"
   594            }
   595          }
   596        },
   597        "x-ms-examples": {
   598          "List network security rules in network security group": {
   599            "$ref": "./examples/NetworkSecurityGroupRuleList.json"
   600          }
   601        },
   602        "x-ms-pageable": {
   603          "nextLinkName": "nextLink"
   604        }
   605      }
   606    },
   607    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules": {
   608      "get": {
   609        "tags": [
   610          "SecurityRules"
   611        ],
   612        "operationId": "DefaultSecurityRules_List",
   613        "description": "Gets all default security rules in a network security group.",
   614        "parameters": [
   615          {
   616            "name": "resourceGroupName",
   617            "in": "path",
   618            "required": true,
   619            "type": "string",
   620            "description": "The name of the resource group."
   621          },
   622          {
   623            "name": "networkSecurityGroupName",
   624            "in": "path",
   625            "required": true,
   626            "type": "string",
   627            "description": "The name of the network security group."
   628          },
   629          {
   630            "$ref": "./network.json#/parameters/ApiVersionParameter"
   631          },
   632          {
   633            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   634          }
   635        ],
   636        "responses": {
   637          "200": {
   638            "description": "Request successful. The operation returns a list of SecurityRule resources.",
   639            "schema": {
   640              "$ref": "#/definitions/SecurityRuleListResult"
   641            }
   642          },
   643          "default": {
   644            "description": "Error response describing why the operation failed.",
   645            "schema": {
   646              "$ref": "./network.json#/definitions/CloudError"
   647            }
   648          }
   649        },
   650        "x-ms-examples": {
   651          "DefaultSecurityRuleList": {
   652            "$ref": "./examples/DefaultSecurityRuleList.json"
   653          }
   654        },
   655        "x-ms-pageable": {
   656          "nextLinkName": "nextLink"
   657        }
   658      }
   659    },
   660    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}": {
   661      "get": {
   662        "tags": [
   663          "SecurityRules"
   664        ],
   665        "operationId": "DefaultSecurityRules_Get",
   666        "description": "Get the specified default network security rule.",
   667        "parameters": [
   668          {
   669            "name": "resourceGroupName",
   670            "in": "path",
   671            "required": true,
   672            "type": "string",
   673            "description": "The name of the resource group."
   674          },
   675          {
   676            "name": "networkSecurityGroupName",
   677            "in": "path",
   678            "required": true,
   679            "type": "string",
   680            "description": "The name of the network security group."
   681          },
   682          {
   683            "name": "defaultSecurityRuleName",
   684            "in": "path",
   685            "required": true,
   686            "type": "string",
   687            "description": "The name of the default security rule."
   688          },
   689          {
   690            "$ref": "./network.json#/parameters/ApiVersionParameter"
   691          },
   692          {
   693            "$ref": "./network.json#/parameters/SubscriptionIdParameter"
   694          }
   695        ],
   696        "responses": {
   697          "200": {
   698            "description": "Request successful. The operation returns the resulting SecurityRule resource.",
   699            "schema": {
   700              "$ref": "#/definitions/SecurityRule"
   701            }
   702          },
   703          "default": {
   704            "description": "Error response describing why the operation failed.",
   705            "schema": {
   706              "$ref": "./network.json#/definitions/CloudError"
   707            }
   708          }
   709        },
   710        "x-ms-examples": {
   711          "DefaultSecurityRuleGet": {
   712            "$ref": "./examples/DefaultSecurityRuleGet.json"
   713          }
   714        }
   715      }
   716    }
   717  },
   718  "definitions": {
   719    "SecurityRulePropertiesFormat": {
   720      "properties": {
   721        "description": {
   722          "type": "string",
   723          "description": "A description for this rule. Restricted to 140 chars."
   724        },
   725        "protocol": {
   726          "type": "string",
   727          "description": "Network protocol this rule applies to.",
   728          "enum": [
   729            "Tcp",
   730            "Udp",
   731            "Icmp",
   732            "Esp",
   733            "*",
   734            "Ah"
   735          ],
   736          "x-ms-enum": {
   737            "name": "SecurityRuleProtocol",
   738            "modelAsString": true
   739          }
   740        },
   741        "sourcePortRange": {
   742          "type": "string",
   743          "description": "The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports."
   744        },
   745        "destinationPortRange": {
   746          "type": "string",
   747          "description": "The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports."
   748        },
   749        "sourceAddressPrefix": {
   750          "type": "string",
   751          "description": "The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from."
   752        },
   753        "sourceAddressPrefixes": {
   754          "type": "array",
   755          "items": {
   756            "type": "string"
   757          },
   758          "description": "The CIDR or source IP ranges."
   759        },
   760        "sourceApplicationSecurityGroups": {
   761          "type": "array",
   762          "items": {
   763            "$ref": "./applicationSecurityGroup.json#/definitions/ApplicationSecurityGroup"
   764          },
   765          "description": "The application security group specified as source."
   766        },
   767        "destinationAddressPrefix": {
   768          "type": "string",
   769          "description": "The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used."
   770        },
   771        "destinationAddressPrefixes": {
   772          "type": "array",
   773          "items": {
   774            "type": "string"
   775          },
   776          "description": "The destination address prefixes. CIDR or destination IP ranges."
   777        },
   778        "destinationApplicationSecurityGroups": {
   779          "type": "array",
   780          "items": {
   781            "$ref": "./applicationSecurityGroup.json#/definitions/ApplicationSecurityGroup"
   782          },
   783          "description": "The application security group specified as destination."
   784        },
   785        "sourcePortRanges": {
   786          "type": "array",
   787          "items": {
   788            "type": "string",
   789            "description": "The source port."
   790          },
   791          "description": "The source port ranges."
   792        },
   793        "destinationPortRanges": {
   794          "type": "array",
   795          "items": {
   796            "type": "string",
   797            "description": "The destination port."
   798          },
   799          "description": "The destination port ranges."
   800        },
   801        "access": {
   802          "$ref": "#/definitions/SecurityRuleAccess",
   803          "description": "The network traffic is allowed or denied."
   804        },
   805        "priority": {
   806          "type": "integer",
   807          "format": "int32",
   808          "description": "The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule."
   809        },
   810        "direction": {
   811          "$ref": "#/definitions/SecurityRuleDirection",
   812          "description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic."
   813        },
   814        "provisioningState": {
   815          "readOnly": true,
   816          "$ref": "./network.json#/definitions/ProvisioningState",
   817          "description": "The provisioning state of the security rule resource."
   818        }
   819      },
   820      "required": [
   821        "protocol",
   822        "access",
   823        "direction"
   824      ],
   825      "description": "Security rule resource."
   826    },
   827    "SecurityRule": {
   828      "properties": {
   829        "properties": {
   830          "x-ms-client-flatten": true,
   831          "$ref": "#/definitions/SecurityRulePropertiesFormat",
   832          "description": "Properties of the security rule."
   833        },
   834        "name": {
   835          "type": "string",
   836          "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource."
   837        },
   838        "etag": {
   839          "readOnly": true,
   840          "type": "string",
   841          "description": "A unique read-only string that changes whenever the resource is updated."
   842        }
   843      },
   844      "allOf": [
   845        {
   846          "$ref": "./network.json#/definitions/SubResource"
   847        }
   848      ],
   849      "description": "Network security rule."
   850    },
   851    "SecurityRuleListResult": {
   852      "properties": {
   853        "value": {
   854          "type": "array",
   855          "items": {
   856            "$ref": "#/definitions/SecurityRule"
   857          },
   858          "description": "The security rules in a network security group."
   859        },
   860        "nextLink": {
   861          "type": "string",
   862          "description": "The URL to get the next set of results."
   863        }
   864      },
   865      "description": "Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a network security group."
   866    },
   867    "NetworkSecurityGroupPropertiesFormat": {
   868      "properties": {
   869        "securityRules": {
   870          "type": "array",
   871          "items": {
   872            "$ref": "#/definitions/SecurityRule"
   873          },
   874          "description": "A collection of security rules of the network security group."
   875        },
   876        "defaultSecurityRules": {
   877          "readOnly": true,
   878          "type": "array",
   879          "items": {
   880            "$ref": "#/definitions/SecurityRule"
   881          },
   882          "description": "The default security rules of network security group."
   883        },
   884        "networkInterfaces": {
   885          "readOnly": true,
   886          "type": "array",
   887          "items": {
   888            "$ref": "./networkInterface.json#/definitions/NetworkInterface"
   889          },
   890          "description": "A collection of references to network interfaces."
   891        },
   892        "subnets": {
   893          "readOnly": true,
   894          "type": "array",
   895          "items": {
   896            "$ref": "./virtualNetwork.json#/definitions/Subnet"
   897          },
   898          "description": "A collection of references to subnets."
   899        },
   900        "flowLogs": {
   901          "readOnly": true,
   902          "type": "array",
   903          "items": {
   904            "$ref": "./networkWatcher.json#/definitions/FlowLog"
   905          },
   906          "description": "A collection of references to flow log resources."
   907        },
   908        "resourceGuid": {
   909          "readOnly": true,
   910          "type": "string",
   911          "description": "The resource GUID property of the network security group resource."
   912        },
   913        "provisioningState": {
   914          "readOnly": true,
   915          "$ref": "./network.json#/definitions/ProvisioningState",
   916          "description": "The provisioning state of the network security group resource."
   917        }
   918      },
   919      "description": "Network Security Group resource."
   920    },
   921    "NetworkSecurityGroup": {
   922      "properties": {
   923        "properties": {
   924          "x-ms-client-flatten": true,
   925          "$ref": "#/definitions/NetworkSecurityGroupPropertiesFormat",
   926          "description": "Properties of the network security group."
   927        },
   928        "etag": {
   929          "readOnly": true,
   930          "type": "string",
   931          "description": "A unique read-only string that changes whenever the resource is updated."
   932        }
   933      },
   934      "allOf": [
   935        {
   936          "$ref": "./network.json#/definitions/Resource"
   937        }
   938      ],
   939      "description": "NetworkSecurityGroup resource."
   940    },
   941    "NetworkSecurityGroupListResult": {
   942      "properties": {
   943        "value": {
   944          "type": "array",
   945          "items": {
   946            "$ref": "#/definitions/NetworkSecurityGroup"
   947          },
   948          "description": "A list of NetworkSecurityGroup resources."
   949        },
   950        "nextLink": {
   951          "type": "string",
   952          "description": "The URL to get the next set of results."
   953        }
   954      },
   955      "description": "Response for ListNetworkSecurityGroups API service call."
   956    },
   957    "SecurityRuleAccess": {
   958      "type": "string",
   959      "description": "Whether network traffic is allowed or denied.",
   960      "enum": [
   961        "Allow",
   962        "Deny"
   963      ],
   964      "x-ms-enum": {
   965        "name": "SecurityRuleAccess",
   966        "modelAsString": true
   967      }
   968    },
   969    "SecurityRuleDirection": {
   970      "type": "string",
   971      "description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.",
   972      "enum": [
   973        "Inbound",
   974        "Outbound"
   975      ],
   976      "x-ms-enum": {
   977        "name": "SecurityRuleDirection",
   978        "modelAsString": true
   979      }
   980    }
   981  }
   982}

View as plain text