Removing the Private Link of a Storage Account
This article explains how to revert a private link azure storage
account back to a public link one.
1. Re-enable the "public network access" for the storage account as shown:
2. Delete the “private endpoint” connection as shown:
2. Generate a new SAS token for the storage account
and then turn off the private link connection by using
Create or Update Storage instance API and nullifying the privateLinkServiceConnection
parameter in the API request as shown:
The
following code snippet only shows how to use the nullifying parameter in Python.
It might be different for other languages.
- import requests
- url = "https://api.mk.io/api/v1/projects/projectName/media/storage/storageAccountName"
- payload = {
- "spec": {
- "credential": {
- "sasToken": "New SAS Token"
- },
- "privateLinkServiceConnection": None,
- "type": "Microsoft.Storage",
- "url": "Storage Account URL"
- }
- }
- headers = {
- "accept": "application/json",
- "content-type": "application/json",
- "authorization": "API Token"
- }
- response = requests.put(url, json=payload, headers=headers)
- print(response.status_code)
- print(response.text)
3. Lastly, confirm
and make sure that the new SAS token is in a validated state and that all the assets
under the updated storage account are accessible.
Related Articles
First-Time Account Setup for MK.IO via Azure Marketplace/AWS Marketplace:
This article explains how to create and activate your MK.IO account through the Azure/AWS Marketplace. It’s important to complete every step, especially filling in the Legal Information section to ensure your account gets approved and becomes active. ...
How to add storage account in MK.IO
In this article, we will describe the steps to follow when you need to add the storage account, hosting all your AMS assets, in MK.IO. 2 main steps will happen: 1. Get your Storage Account access information: Follow the Step1 instructions of this ...
Updating Azure SAS Token for Asset Storage
You have created a storage account in MK/IO by linking your Azure blob storage, linked a container and processed assets. However once the SAS token expires to the storage account, these assets will not be accessible until you edit/update the Storage ...
How to use MK.IO APIs - step by step
Update December 2024: Note that https://docs.mk.io/docs/api-tokens describes the steps to manage personal tokens when using MK.IO APIs ...
Download files from an MK.IO Asset via API
Introduction The MK.IO API allows users to download files stored in an asset. This is a two step process: Get file access information using the getFileAccessInfo API Use the information returned to access a specific file Pre-requisites: One or more ...