organizations
Creates, updates, deletes, gets or lists an organizations resource.
Overview
| Name | organizations |
| Type | Resource |
| Id | azure_isv.elastic.organizations |
Fields
The following fields are returned by SELECT queries:
- get_api_key
| Name | Datatype | Description |
|---|---|---|
apiKey | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_api_key | select | subscription_id | 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. | |
get_elastic_to_azure_subscription_mapping | exec | subscription_id | 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. | |
resubscribe | exec | resource_group_name, monitor_name, subscription_id | Resubscribe 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.
| Name | Datatype | Description |
|---|---|---|
monitor_name | string | Monitor resource name. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get_api_key
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
- get_elastic_to_azure_subscription_mapping
- resubscribe
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
;
Resubscribe the Elasticsearch Organization. Resubscribe the Elasticsearch Organization.
EXEC azure_isv.elastic.organizations.resubscribe
@resource_group_name='{{ resource_group_name }}' --required,
@monitor_name='{{ monitor_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"planId": "{{ planId }}",
"term": "{{ term }}",
"subscriptionId": "{{ subscriptionId }}",
"resourceGroup": "{{ resourceGroup }}",
"organizationId": "{{ organizationId }}"
}'
;