published on Wednesday, Mar 4, 2026 by Pulumi
published on Wednesday, Mar 4, 2026 by Pulumi
Fetch User API Key from internal database, if it was generated and stored while creating the Elasticsearch Organization.
Uses Azure REST API version 2024-03-01.
Other available API versions: 2023-06-01, 2023-06-15-preview, 2023-07-01-preview, 2023-10-01-preview, 2023-11-01-preview, 2024-01-01-preview, 2024-05-01-preview, 2024-06-15-preview, 2024-10-01-preview, 2025-01-15-preview, 2025-06-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native elastic [ApiVersion]. See the version guide for details.
Using getOrganizationApiKey
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getOrganizationApiKey(args: GetOrganizationApiKeyArgs, opts?: InvokeOptions): Promise<GetOrganizationApiKeyResult>
function getOrganizationApiKeyOutput(args: GetOrganizationApiKeyOutputArgs, opts?: InvokeOptions): Output<GetOrganizationApiKeyResult>def get_organization_api_key(email_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrganizationApiKeyResult
def get_organization_api_key_output(email_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationApiKeyResult]func GetOrganizationApiKey(ctx *Context, args *GetOrganizationApiKeyArgs, opts ...InvokeOption) (*GetOrganizationApiKeyResult, error)
func GetOrganizationApiKeyOutput(ctx *Context, args *GetOrganizationApiKeyOutputArgs, opts ...InvokeOption) GetOrganizationApiKeyResultOutput> Note: This function is named GetOrganizationApiKey in the Go SDK.
public static class GetOrganizationApiKey
{
public static Task<GetOrganizationApiKeyResult> InvokeAsync(GetOrganizationApiKeyArgs args, InvokeOptions? opts = null)
public static Output<GetOrganizationApiKeyResult> Invoke(GetOrganizationApiKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOrganizationApiKeyResult> getOrganizationApiKey(GetOrganizationApiKeyArgs args, InvokeOptions options)
public static Output<GetOrganizationApiKeyResult> getOrganizationApiKey(GetOrganizationApiKeyArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:elastic:getOrganizationApiKey
arguments:
# arguments dictionaryThe following arguments are supported:
- Email
Id string - The User email Id
- Email
Id string - The User email Id
- email
Id String - The User email Id
- email
Id string - The User email Id
- email_
id str - The User email Id
- email
Id String - The User email Id
getOrganizationApiKey Result
The following output properties are available:
Supporting Types
UserApiKeyResponsePropertiesResponse
- Api
Key string - The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
- Api
Key string - The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
- api
Key String - The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
- api
Key string - The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
- api_
key str - The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
- api
Key String - The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Wednesday, Mar 4, 2026 by Pulumi
