Skip to main content

organizations

Creates, updates, deletes, gets or lists an organizations resource.

Overview

Nameorganizations
TypeResource
Idazure_isv.elastic.organizations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
apiKeystringThe User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_api_keyselectsubscription_idFetch the User API Key from the internal database, if it was generated and stored during the creation of the Elasticsearch Organization. Fetch the User API Key from the internal database, if it was generated and stored during the creation of the Elasticsearch Organization.
get_elastic_to_azure_subscription_mappingexecsubscription_idRetrieve mapping details between the Elastic Organization and Azure Subscription for the logged-in user. Retrieve mapping details between the Elastic Organization and Azure Subscription for the logged-in user.
resubscribeexecresource_group_name, monitor_name, subscription_idResubscribe the Elasticsearch Organization. Resubscribe the Elasticsearch Organization.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
monitor_namestringMonitor resource name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Fetch the User API Key from the internal database, if it was generated and stored during the creation of the Elasticsearch Organization. Fetch the User API Key from the internal database, if it was generated and stored during the creation of the Elasticsearch Organization.

SELECT
apiKey
FROM azure_isv.elastic.organizations
WHERE subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Retrieve mapping details between the Elastic Organization and Azure Subscription for the logged-in user. Retrieve mapping details between the Elastic Organization and Azure Subscription for the logged-in user.

EXEC azure_isv.elastic.organizations.get_elastic_to_azure_subscription_mapping 
@subscription_id='{{ subscription_id }}' --required
;