Skip to content

Commit

Permalink
Added cloud service NIC and PIP APIs specifications (#11568)
Browse files Browse the repository at this point in the history
* Added cloud service NIC and PIP APIs specifications

* Moved new APIs to 2020-07-01 version

* Updated version to 2020-07-01 in json files

* Updated api version tp 2020-07-01 in examples

Co-authored-by: Richa Jain <[email protected]>
  • Loading branch information
richajain and Richa Jain authored Nov 11, 2020
1 parent e320555 commit 0a3c108
Show file tree
Hide file tree
Showing 9 changed files with 839 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"swagger": "2.0",
"info": {
"title": "NetworkManagementClient",
"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.",
"version": "2020-07-01"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces": {
"get": {
"tags": [
"NetworkInterfaces"
],
"operationId": "NetworkInterfaces_ListCloudServiceRoleInstanceNetworkInterfaces",
"description": "Gets information about all network interfaces in a role instance in a cloud service",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "cloudServiceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the cloud service."
},
{
"name": "roleInstanceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of role instance."
},
{
"$ref": "./network.json#/parameters/ApiVersionVmssParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns a list of NetworkInterface resources.",
"schema": {
"$ref": "./networkInterface.json#/definitions/NetworkInterfaceListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"List cloud service role instance network interfaces": {
"$ref": "./examples/CloudServiceRoleInstanceNetworkInterfaceList.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces": {
"get": {
"tags": [
"NetworkInterfaces"
],
"operationId": "NetworkInterfaces_ListCloudServiceNetworkInterfaces",
"description": "Gets all network interfaces in a cloud service.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "cloudServiceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the cloud service."
},
{
"$ref": "./network.json#/parameters/ApiVersionVmssParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns a list of NetworkInterface resources.",
"schema": {
"$ref": "./networkInterface.json#/definitions/NetworkInterfaceListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"List cloud service network interfaces": {
"$ref": "./examples/CloudServiceNetworkInterfaceList.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}": {
"get": {
"tags": [
"NetworkInterfaces"
],
"operationId": "NetworkInterfaces_GetCloudServiceNetworkInterface",
"description": "Get the specified network interface in a cloud service.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "cloudServiceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the cloud service."
},
{
"name": "roleInstanceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of role instance"
},
{
"name": "networkInterfaceName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the network interface."
},
{
"$ref": "./network.json#/parameters/ApiVersionVmssParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
"description": "Expands referenced resources."
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns the resulting NetworkInterface resource.",
"schema": {
"$ref": "./networkInterface.json#/definitions/NetworkInterface"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Get cloud service network interface": {
"$ref": "./examples/CloudServiceNetworkInterfaceGet.json"
}
}
}
}
}
}
Loading

0 comments on commit 0a3c108

Please sign in to comment.