queue_endpoint {AzureQstor} | R Documentation |
Create a queue endpoint object
Description
Create a queue endpoint object
Usage
queue_endpoint(
endpoint,
key = NULL,
token = NULL,
sas = NULL,
api_version = getOption("azure_storage_api_version")
)
Arguments
endpoint |
The URL (hostname) for the endpoint, of the form |
key |
The access key for the storage account. |
token |
An Azure Active Directory (AAD) authentication token. This can be either a string, or an object of class AzureToken created by AzureRMR::get_azure_token. The latter is the recommended way of doing it, as it allows for automatic refreshing of expired tokens. |
sas |
A shared access signature (SAS) for the account. |
api_version |
The storage API version to use when interacting with the host. Defaults to |
Details
This is the queue storage counterpart to the endpoint functions defined in the AzureStor package.
Value
An object of class queue_endpoint
, inheriting from storage_endpoint
.
See Also
AzureStor::storage_endpoint
, AzureStor::blob_endpoint
, storage_queue
Examples
## Not run:
# obtaining an endpoint from the storage account resource object
AzureRMR::get_azure_login()$
get_subscription("sub_id")$
get_resource_group("rgname")$
get_storage_account("mystorage")$
get_queue_endpoint()
# creating an endpoint standalone
queue_endpoint("https://mystorage.queue.core.windows.net/", key="access_key")
## End(Not run)