Description Usage Arguments Value See Also Examples
View source: R/table_endpoint.R
Table storage endpoint object, and method to call it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | table_endpoint(
endpoint,
key = NULL,
token = NULL,
sas = NULL,
api_version = getOption("azure_storage_api_version")
)
call_table_endpoint(
endpoint,
path,
options = list(),
headers = list(),
body = NULL,
...,
http_verb = c("GET", "DELETE", "PUT", "POST", "HEAD", "PATCH"),
http_status_handler = c("stop", "warn", "message", "pass"),
return_headers = (http_verb == "HEAD"),
metadata = c("none", "minimal", "full"),
num_retries = 10
)
|
endpoint |
For |
key |
The access key for the storage account. |
token |
An Azure Active Directory (AAD) authentication token. For compatibility with AzureStor; not used for table storage. |
sas |
A shared access signature (SAS) for the account. At least one of |
api_version |
The storage API version to use when interacting with the host. Defaults to "2019-07-07". |
path |
For |
options |
For |
headers |
For |
body |
For |
... |
For |
http_verb |
For |
http_status_handler |
For |
return_headers |
For |
metadata |
For |
num_retries |
The number of times to retry the call, if the response is a HTTP error 429 (too many requests). The Cosmos DB endpoint tends to be aggressive at rate-limiting requests, to maintain the desired level of latency. This will generally not affect calls to an endpoint provided by a storage account. |
table_endpoint
returns an object of class table_endpoint
, inheriting from storage_endpoint
. This is the analogue of the blob_endpoint
, file_endpoint
and adls_endpoint
classes provided by the AzureStor package.
call_table_endpoint
returns the body of the response by default, or the headers if return_headers=TRUE
. If http_status_handler="pass"
, it returns the entire response object without modification.
storage_table, table_entity, AzureStor::call_storage_endpoint
Table service REST API reference
Authorizing requests to Azure storage services
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# storage account table endpoint
table_endpoint("https://mystorageacct.table.core.windows.net", key="mykey")
# Cosmos DB table endpoint
table_endpoint("https://mycosmosdb.table.cosmos.azure.com:443", key="mykey")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.