Skip to content

Commit

Permalink
Added code changes for generating letter of authorization (#9829)
Browse files Browse the repository at this point in the history
Co-authored-by: Umesh Kanodia <umkanodi@microsoft.com>
  • Loading branch information
umkanodi and Umesh Kanodia authored Jun 24, 2020
1 parent e7931f6 commit af720fd
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 0 deletions.
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."
}
}
}
}
}

0 comments on commit af720fd

Please sign in to comment.