1. Packages
  2. Azure Native
  3. API Docs
  4. elastic
  5. getOrganizationApiKey
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.elastic.getOrganizationApiKey

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

    Fetch User API Key from internal database, if it was generated and stored while creating the Elasticsearch Organization. Azure REST API version: 2023-06-01.

    Other available API versions: 2023-02-01-preview, 2023-05-01-preview, 2023-06-15-preview, 2023-07-01-preview, 2023-10-01-preview, 2023-11-01-preview, 2024-01-01-preview, 2024-03-01.

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:elastic:getOrganizationApiKey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EmailId string
    The User email Id
    EmailId string
    The User email Id
    emailId String
    The User email Id
    emailId string
    The User email Id
    email_id str
    The User email Id
    emailId String
    The User email Id

    getOrganizationApiKey Result

    The following output properties are available:

    Supporting Types

    UserApiKeyResponsePropertiesResponse

    ApiKey string
    The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
    ApiKey string
    The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
    apiKey String
    The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
    apiKey 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.
    apiKey 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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi