Skip to content

Commit

Permalink
Added new cloud service NIC and PIP APIs (#11650)
Browse files Browse the repository at this point in the history
Co-authored-by: Richa Jain <ricjain@microsoft.com>
  • Loading branch information
richajain and Richa Jain committed Nov 16, 2020
1 parent 57c1220 commit 7dc2ad6
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-08-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 7dc2ad6

Please sign in to comment.