title | description | services | documentationcenter | author | manager | editor | ms.assetid | ms.service | ms.devlang | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|
REST API: Account management operations on Azure Data Lake Store | Microsoft Docs |
Use Azure Data Lake Store and WebHDFS REST API to perform account management operations in the Data Lake Store |
data-lake-store |
nitinme |
jhubbard |
cgronlun |
57ac6501-cb71-4f75-82c2-acc07c562889 |
data-lake-store |
na |
conceptual |
05/29/2018 |
nitinme |
[!div class="op_single_selector"]
In this article, you learn how to perform account management operations on Data Lake Store using the REST API. Account management operations include creating a Data Lake Store account, deleting a Data Lake Store account, etc. For instructions on how to perform filesystem operations on Data Lake Store using REST API, see Filesystem operations on Data Lake Store using REST API.
-
An Azure subscription. See Get Azure free trial.
-
cURL. This article uses cURL to demonstrate how to make REST API calls against a Data Lake Store account.
You can use two approaches to authenticate using Azure Active Directory.
- For end-user authentication for your application (interactive), see End-user authentication with Data Lake Store using .NET SDK.
- For service-to-service authentication for your application (non-interactive), see Service-to-service authentication with Data Lake Store using .NET SDK.
This operation is based on the REST API call defined here.
Use the following cURL command. Replace <yourstorename> with your Data Lake Store name.
curl -i -X PUT -H "Authorization: Bearer <REDACTED>" -H "Content-Type: application/json" https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.DataLakeStore/accounts/<yourstorename>?api-version=2015-10-01-preview -d@"C:\temp\input.json"
In the above command, replace <REDACTED
> with the authorization token you retrieved earlier. The request payload for this command is contained in the input.json file that is provided for the -d
parameter above. The contents of the input.json file resemble the following snippet:
{
"location": "eastus2",
"tags": {
"department": "finance"
},
"properties": {}
}
This operation is based on the REST API call defined here.
Use the following cURL command to delete a Data Lake Store account. Replace <yourstorename> with your Data Lake Store name.
curl -i -X DELETE -H "Authorization: Bearer <REDACTED>" https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.DataLakeStore/accounts/<yourstorename>?api-version=2015-10-01-preview
You should see an output like the following snippet:
HTTP/1.1 200 OK
...
...