Package version:
Optional
aadOptional
agentAn optional custom http(s) Agent to be used in NodeJS environments Use an agent such as https://github.com/TooTallNate/node-proxy-agent if you need to connect to Cosmos via a proxy
Optional
clientencryption policy for operations involving encryption must be set on the client if using client-side encryption
Optional
connectionAn instance of ConnectionPolicy class. This parameter is optional and the default connectionPolicy will be used if omitted.
Optional
connectionAn optional parameter that represents the connection string. Your database connection string can be found in the Azure Portal.
Optional
consistencyAn optional parameter that represents the consistency level. It can take any value from ConsistencyLevel.
Optional
defaultOptional
diagnosticOptional
endpointThe service endpoint to use to create the client.
Optional
httpAn optional custom HttpClient
shape to customize how requests are made by the HTTP pipeline.
See @azure/core-rest-pipeline
for details on how to implement this interface.
Optional
keyThe account master or readonly key
Optional
permissionAn array of Permission objects.
Optional
resourceAn object that contains resources tokens. Keys for the object are resource Ids and values are the resource tokens.
Optional
throughputAn optional parameter to set throughput bucket number. This value can be overridden at request level For more information, visit Cosmos DB throughput Bucketing.
Optional
tokenA user supplied function for resolving header authorization tokens. Allows users to generating their own auth tokens, potentially using a separate service
Optional
userA custom string to append to the default SDK user agent.
AAD token from
@azure/identity
Obtain a credential object by creating an@azure/identity
credential object We will then use your credential object and a scope URL (your cosmos db endpoint) to authenticate requests to Cosmos