Skip to content

Added new post APIs for ExpressRoute Authorizations #34166

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
@@ -1,4 +1,4 @@
{

Check notice on line 1 in specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/expressRouteCircuit.json

View workflow job for this annotation

GitHub Actions / TypeSpec Requirement

Brownfield services will soon be required to convert from OpenAPI to TypeSpec. See https://aka.ms/azsdk/typespec.
"swagger": "2.0",
"info": {
"title": "NetworkManagementClient",
Expand Down Expand Up @@ -280,6 +280,192 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/listAuthorizations": {
"post": {
"tags": [
"ExpressRouteCircuitAuthorizations"
],
"operationId": "ExpressRouteCircuitAuthorizations_List",
"description": "Gets all authorizations in an express route circuit.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "circuitName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the circuit."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns a list of ExpressRouteCircuitAuthorization resources.",
"schema": {
"$ref": "#/definitions/AuthorizationListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List ExpressRouteCircuit Authorization": {
"$ref": "./examples/ExpressRouteCircuitAuthorizationList.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}/getAuthorization": {
"post": {
"tags": [
"ExpressRouteCircuitAuthorizations"
],
"operationId": "ExpressRouteCircuitAuthorizations_Get",
"description": "Gets the specified authorization from the specified express route circuit.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "circuitName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the express route circuit."
},
{
"name": "authorizationName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the authorization."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation returns the ExpressRouteCircuitAuthorization resource.",
"schema": {
"$ref": "#/definitions/ExpressRouteCircuitAuthorization"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Get ExpressRouteCircuit Authorization": {
"$ref": "./examples/ExpressRouteCircuitAuthorizationGet.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}/addAuthorization": {
"post": {
"tags": [
"ExpressRouteCircuitAuthorizations"
],
"operationId": "ExpressRouteCircuitAuthorizations_CreateOrUpdate",
"description": "Creates or updates an authorization in the specified express route circuit.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "circuitName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the express route circuit."
},
{
"name": "authorizationName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the authorization."
},
{
"name": "authorizationParameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ExpressRouteCircuitAuthorization"
},
"description": "Parameters supplied to the create or update express route circuit authorization operation."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"201": {
"description": "Create successful. The operation returns the resulting ExpressRouteCircuitAuthorization resource.",
"schema": {
"$ref": "#/definitions/ExpressRouteCircuitAuthorization"
}
},
"200": {
"description": "Update successful. The operation returns the resulting ExpressRouteCircuitAuthorization resource.",
"schema": {
"$ref": "#/definitions/ExpressRouteCircuitAuthorization"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"x-ms-examples": {
"Create ExpressRouteCircuit Authorization": {
"$ref": "./examples/ExpressRouteCircuitAuthorizationCreate.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}": {
"delete": {
"tags": [
Expand Down Expand Up @@ -1606,6 +1792,7 @@
"properties": {
"authorizationKey": {
"type": "string",
"x-ms-secret": true,
"description": "The authorization key."
},
"authorizationUseStatus": {
Expand Down Expand Up @@ -1983,6 +2170,7 @@
},
"authorizationKey": {
"type": "string",
"x-ms-secret": true,
"description": "The authorization key."
},
"ipv6CircuitConnectionConfig": {
Expand Down Expand Up @@ -2247,6 +2435,7 @@
},
"authorizationKey": {
"type": "string",
"x-ms-secret": true,
"description": "The authorizationKey."
},
"authorizationStatus": {
Expand Down
Loading
Loading