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 code changes for generating letter of authorization #9829

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,19 @@
{
"parameters": {
"subscriptionId": "subid",
"api-version": "2020-06-01",
"resourceGroupName": "rg1",
"expressRoutePortName": "portName",
"request": {
"customerName": "customerName"
}
},
"responses": {
"200": {
"description": "Request successful. Returns the content as a base64 encoded string",
"body": {
"encodedContent": "TWFuIGlzIGRpc3"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,65 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/generateLoa": {
"post": {
"tags": [
"ExpressRoutePorts"
],
"operationId": "ExpressRoutePorts_GenerateLOA",
"description": "Generate a letter of authorization for the requested ExpressRoutePort resource.",
"parameters": [
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "expressRoutePortName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of ExpressRoutePort."
},
{
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GenerateExpressRoutePortsLOARequest"
},
"description": "Request parameters supplied to generate a letter of authorization."
}
],
"responses": {
"200": {
"description": "Request successful. Returns the content as a base64 encoded string.",
"schema": {
"$ref": "#/definitions/GenerateExpressRoutePortsLOAResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"GenerateExpressRoutePortLOA": {
"$ref": "./examples/GenerateExpressRoutePortsLOA.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -864,6 +923,27 @@
"description": "The URL to get the next set of results."
}
}
},
"GenerateExpressRoutePortsLOARequest": {
"description": "The customer name to be printed on a letter of authorization.",
"properties": {
"customerName": {
"type": "string",
"description": "The customer name."
}
},
"required": [
"customerName"
]
},
"GenerateExpressRoutePortsLOAResult": {
"description": "Response for GenerateExpressRoutePortsLOA API service call.",
"properties": {
"encodedContent": {
"type": "string",
"description": "The content as a base64 encoded string."
}
}
}
}
}