cosmosCreate: POST a Document Create to the REST API for Cosmos DB.

Description Usage Arguments Value Examples

View source: R/cosmosCreate.R

Description

POST a Document Create to the REST API for Cosmos DB.

Usage

1
2
3
4
5
6
7
cosmosCreate(
  sql.doc = "",
  sql.partitionkey_value = "",
  debug.auth = FALSE,
  debug.query = FALSE,
  content.response = FALSE
)

Arguments

sql.doc

List of key/values to add to document. Required.

sql.partitionkey_value

The value of the partitionkey. Must also be part of sql.doc. Required.

debug.auth

Logical value for getting verbose output of auth header being constructed. Defaults to false.

debug.query

Logical value for getting verbose output of HTTP response, printing all headers. Defaults to false.

content.response

Logical value to determine whether to retrieve full response or just the documents

Value

Prints status code of HTTP POST, and returns full HTTP response or just the content

Examples

1
cosmosCreate(sql.doc = list(id="uuid", code="code1"), sql.partitionkey_value = "code1")

aaron2012r2/cosmosR documentation built on Nov. 11, 2020, 2:32 a.m.