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

Add missing DeleteBastionShareableLinkByToken API back to swagger #25599

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
Expand Up @@ -434,6 +434,56 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinksByToken": {
"post": {
"tags": [
"BastionHosts",
"BastionShareableLink"
],
"operationId": "DeleteBastionShareableLinkByToken",
"description": "Deletes the Bastion Shareable Links for all the tokens specified in the request.",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/BastionHostName"
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/BastionShareableLinkTokenRequest"
}
],
"responses": {
"200": {
"description": "Success. The operation deleted the BastionShareableLinks associated with the tokens, if they existed. No return body."
},
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
"202": {
"description": "Accepted and the operation will complete asynchronously."
},
"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": "location"
},
"x-ms-examples": {
"Delete Bastion Shareable Links for the request VMs": {
"$ref": "./examples/BastionShareableLinkDeleteByToken.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks": {
"post": {
"tags": [
Expand Down Expand Up @@ -819,7 +869,19 @@
"description": "List of VM references."
}
},
"description": "Post request for all the Bastion Shareable Link endpoints."
"description": "Post request for Create/Delete/Get Bastion Shareable Link endpoints."
},
"BastionShareableLinkTokenListRequest": {
"properties": {
"tokens": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of Bastion Shareable Link Token."
}
},
"description": "Post request for Delete Bastion Shareable Link By Token endpoint."
},
"BastionShareableLinkListResult": {
"properties": {
Expand Down Expand Up @@ -994,7 +1056,17 @@
"schema": {
"$ref": "#/definitions/BastionShareableLinkListRequest"
},
"description": "Post request for all the Bastion Shareable Link endpoints.",
"description": "Post request for Create/Delete/Get Bastion Shareable Link endpoints.",
"x-ms-parameter-location": "method"
},
"BastionShareableLinkTokenRequest": {
"name": "bslTokenRequest",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/BastionShareableLinkTokenListRequest"
},
"description": "Post request for Delete Bastion Shareable Link By Token endpoint.",
"x-ms-parameter-location": "method"
},
"BastionHostName": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks/operationResults/{operationId}?api-version={api-version}"
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/operationResults/{operationId}?api-version={api-version}"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"200": {},
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks/operationResults/{operationId}?api-version={api-version}"
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/operationResults/{operationId}?api-version={api-version}"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2023-06-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"bastionHostName": "bastionhosttenant",
"bslTokenRequest": {
"tokens": [
"abcd1234-efgh-hijk-5678-abcdefgh1234",
"dcba4321-hgfe-kjih-8765-hgfedcba4321"
]
}
},
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/operationResults/{operationId}?api-version={api-version}"
}
}
}
}