npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/azure_arm_cosmos_db

v3.0.0

Published

DataFire integration for Cosmos DB

Downloads

7

Readme

@datafire/azure_arm_cosmos_db

Client library for Cosmos DB

Installation and Usage

npm install --save datafire @datafire/azure_arm_cosmos_db
let datafire = require('datafire');
let azure_arm_cosmos_db = require('@datafire/azure_arm_cosmos_db').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: "",
});

azure_arm_cosmos_db.DatabaseAccounts_CheckNameExists({}).then(data => {
  console.log(data);
})

Description

Azure Cosmos DB Database Service Resource Provider REST API

Actions

DatabaseAccounts_CheckNameExists

Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.

azure_arm_cosmos_db.DatabaseAccounts_CheckNameExists({
  "accountName": "",
  "api-version": ""
}, context)

Parameters

  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.

DatabaseAccounts_List

Lists all the Azure Cosmos DB database accounts available under the subscription.

azure_arm_cosmos_db.DatabaseAccounts_List({
  "api-version": "",
  "subscriptionId": ""
}, context)

Parameters

  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.
  • subscriptionId (string) required - Azure subscription ID.

DatabaseAccounts_ListByResourceGroup

Lists all the Azure Cosmos DB database accounts available under the given resource group.

azure_arm_cosmos_db.DatabaseAccounts_ListByResourceGroup({
  "resourceGroupName": "",
  "api-version": "",
  "subscriptionId": ""
}, context)

Parameters

  • resourceGroupName (string) required - Name of an Azure resource group.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.
  • subscriptionId (string) required - Azure subscription ID.

DatabaseAccounts_Delete

Deletes an existing Azure Cosmos DB database account.

azure_arm_cosmos_db.DatabaseAccounts_Delete({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": ""
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.

DatabaseAccounts_Get

Retrieves the properties of an existing Azure Cosmos DB database account.

azure_arm_cosmos_db.DatabaseAccounts_Get({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": ""
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.

DatabaseAccounts_Patch

Patches the properties of an existing Azure Cosmos DB database account.

azure_arm_cosmos_db.DatabaseAccounts_Patch({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": "",
  "updateParameters": {
    "tags": {}
  }
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.
  • updateParameters (object) required - Parameters for patching Azure Cosmos DB database account properties.

DatabaseAccounts_CreateOrUpdate

Creates or updates an Azure Cosmos DB database account.

azure_arm_cosmos_db.DatabaseAccounts_CreateOrUpdate({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": "",
  "createUpdateParameters": {
    "properties": {
      "locations": [],
      "databaseAccountOfferType": ""
    },
    "location": ""
  }
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.
  • createUpdateParameters (object) required - Parameters to create and update Cosmos DB database accounts.

DatabaseAccounts_FailoverPriorityChange

Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.

azure_arm_cosmos_db.DatabaseAccounts_FailoverPriorityChange({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": "",
  "failoverParameters": null
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.
  • failoverParameters (undefined) required - The list of new failover policies for the failover priority change.

DatabaseAccounts_ListConnectionStrings

Lists the connection strings for the specified Azure Cosmos DB database account.

azure_arm_cosmos_db.DatabaseAccounts_ListConnectionStrings({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": ""
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.

DatabaseAccounts_ListKeys

Lists the access keys for the specified Azure Cosmos DB database account.

azure_arm_cosmos_db.DatabaseAccounts_ListKeys({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": ""
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.

DatabaseAccounts_ListReadOnlyKeys

Lists the read-only access keys for the specified Azure Cosmos DB database account.

azure_arm_cosmos_db.DatabaseAccounts_ListReadOnlyKeys({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": ""
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.

DatabaseAccounts_RegenerateKey

Regenerates an access key for the specified Azure Cosmos DB database account.

azure_arm_cosmos_db.DatabaseAccounts_RegenerateKey({
  "subscriptionId": "",
  "resourceGroupName": "",
  "accountName": "",
  "api-version": "",
  "keyToRegenerate": {
    "keyKind": ""
  }
}, context)

Parameters

  • subscriptionId (string) required - Azure subscription ID.
  • resourceGroupName (string) required - Name of an Azure resource group.
  • accountName (string) required - Cosmos DB database account name.
  • api-version (string) required - Version of the API to be used with the client request. The current version is 2015-04-08.
  • keyToRegenerate (object) required - Parameters to regenerate the keys within the database account.