Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new cloud service NIC and PIP APIs #11650

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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