1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. hbr
  5. getHanaInstances
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.hbr.getHanaInstances

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the Hbr Hana Instances of the current Alibaba Cloud user.

    NOTE: Available in v1.178.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.hbr.getHanaInstances({
        ids: ["example_id"],
    });
    export const hbrHanaInstanceId1 = ids.then(ids => ids.instances?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.hbr.get_hana_instances(ids=["example_id"])
    pulumi.export("hbrHanaInstanceId1", ids.instances[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := hbr.GetHanaInstances(ctx, &hbr.GetHanaInstancesArgs{
    			Ids: []string{
    				"example_id",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("hbrHanaInstanceId1", ids.Instances[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Hbr.GetHanaInstances.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["hbrHanaInstanceId1"] = ids.Apply(getHanaInstancesResult => getHanaInstancesResult.Instances[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.hbr.HbrFunctions;
    import com.pulumi.alicloud.hbr.inputs.GetHanaInstancesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var ids = HbrFunctions.getHanaInstances(GetHanaInstancesArgs.builder()
                .ids("example_id")
                .build());
    
            ctx.export("hbrHanaInstanceId1", ids.applyValue(getHanaInstancesResult -> getHanaInstancesResult.instances()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:hbr:getHanaInstances
          Arguments:
            ids:
              - example_id
    outputs:
      hbrHanaInstanceId1: ${ids.instances[0].id}
    

    Using getHanaInstances

    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 getHanaInstances(args: GetHanaInstancesArgs, opts?: InvokeOptions): Promise<GetHanaInstancesResult>
    function getHanaInstancesOutput(args: GetHanaInstancesOutputArgs, opts?: InvokeOptions): Output<GetHanaInstancesResult>
    def get_hana_instances(ids: Optional[Sequence[str]] = None,
                           name_regex: Optional[str] = None,
                           output_file: Optional[str] = None,
                           page_number: Optional[int] = None,
                           page_size: Optional[int] = None,
                           status: Optional[str] = None,
                           vault_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetHanaInstancesResult
    def get_hana_instances_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           name_regex: Optional[pulumi.Input[str]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           page_number: Optional[pulumi.Input[int]] = None,
                           page_size: Optional[pulumi.Input[int]] = None,
                           status: Optional[pulumi.Input[str]] = None,
                           vault_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetHanaInstancesResult]
    func GetHanaInstances(ctx *Context, args *GetHanaInstancesArgs, opts ...InvokeOption) (*GetHanaInstancesResult, error)
    func GetHanaInstancesOutput(ctx *Context, args *GetHanaInstancesOutputArgs, opts ...InvokeOption) GetHanaInstancesResultOutput

    > Note: This function is named GetHanaInstances in the Go SDK.

    public static class GetHanaInstances 
    {
        public static Task<GetHanaInstancesResult> InvokeAsync(GetHanaInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetHanaInstancesResult> Invoke(GetHanaInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHanaInstancesResult> getHanaInstances(GetHanaInstancesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:hbr/getHanaInstances:getHanaInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Hana Instance IDs.
    NameRegex string
    A regex string to filter results by Hana Instance name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Status string
    The status of the SAP HANA instance. Valid values:

    • INITIALIZING: The instance is being initialized.
    • INITIALIZED: The instance is registered.
    • INVALID_HANA_NODE: The instance is invalid.
    • INITIALIZE_FAILED: The client fails to be installed on the instance.
    VaultId string
    The id of the vault.
    Ids []string
    A list of Hana Instance IDs.
    NameRegex string
    A regex string to filter results by Hana Instance name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Status string
    The status of the SAP HANA instance. Valid values:

    • INITIALIZING: The instance is being initialized.
    • INITIALIZED: The instance is registered.
    • INVALID_HANA_NODE: The instance is invalid.
    • INITIALIZE_FAILED: The client fails to be installed on the instance.
    VaultId string
    The id of the vault.
    ids List<String>
    A list of Hana Instance IDs.
    nameRegex String
    A regex string to filter results by Hana Instance name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    status String
    The status of the SAP HANA instance. Valid values:

    • INITIALIZING: The instance is being initialized.
    • INITIALIZED: The instance is registered.
    • INVALID_HANA_NODE: The instance is invalid.
    • INITIALIZE_FAILED: The client fails to be installed on the instance.
    vaultId String
    The id of the vault.
    ids string[]
    A list of Hana Instance IDs.
    nameRegex string
    A regex string to filter results by Hana Instance name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    status string
    The status of the SAP HANA instance. Valid values:

    • INITIALIZING: The instance is being initialized.
    • INITIALIZED: The instance is registered.
    • INVALID_HANA_NODE: The instance is invalid.
    • INITIALIZE_FAILED: The client fails to be installed on the instance.
    vaultId string
    The id of the vault.
    ids Sequence[str]
    A list of Hana Instance IDs.
    name_regex str
    A regex string to filter results by Hana Instance name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    status str
    The status of the SAP HANA instance. Valid values:

    • INITIALIZING: The instance is being initialized.
    • INITIALIZED: The instance is registered.
    • INVALID_HANA_NODE: The instance is invalid.
    • INITIALIZE_FAILED: The client fails to be installed on the instance.
    vault_id str
    The id of the vault.
    ids List<String>
    A list of Hana Instance IDs.
    nameRegex String
    A regex string to filter results by Hana Instance name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    status String
    The status of the SAP HANA instance. Valid values:

    • INITIALIZING: The instance is being initialized.
    • INITIALIZED: The instance is registered.
    • INVALID_HANA_NODE: The instance is invalid.
    • INITIALIZE_FAILED: The client fails to be installed on the instance.
    vaultId String
    The id of the vault.

    getHanaInstances Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Instances List<Pulumi.AliCloud.Hbr.Outputs.GetHanaInstancesInstance>
    Names List<string>
    NameRegex string
    OutputFile string
    PageNumber int
    PageSize int
    Status string
    VaultId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Instances []GetHanaInstancesInstance
    Names []string
    NameRegex string
    OutputFile string
    PageNumber int
    PageSize int
    Status string
    VaultId string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instances List<GetHanaInstancesInstance>
    names List<String>
    nameRegex String
    outputFile String
    pageNumber Integer
    pageSize Integer
    status String
    vaultId String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    instances GetHanaInstancesInstance[]
    names string[]
    nameRegex string
    outputFile string
    pageNumber number
    pageSize number
    status string
    vaultId string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    instances Sequence[GetHanaInstancesInstance]
    names Sequence[str]
    name_regex str
    output_file str
    page_number int
    page_size int
    status str
    vault_id str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instances List<Property Map>
    names List<String>
    nameRegex String
    outputFile String
    pageNumber Number
    pageSize Number
    status String
    vaultId String

    Supporting Types

    GetHanaInstancesInstance

    AlertSetting string
    The alert settings. Valid value: INHERITED, which indicates that the backup client sends alert notifications in the same way as the backup vault.
    HanaInstanceId string
    The ID of the SAP HANA instance.
    HanaName string
    The name of the SAP HANA instance.
    Host string
    The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
    Id string
    The ID of the Hana Instance. The value formats as <vault_id>:<hana_instance_id>.
    InstanceNumber int
    The instance number of the SAP HANA system.
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the SAP HANA instance.
    StatusMessage string
    The status information.
    UseSsl bool
    Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
    UserName string
    The username of the SYSTEMDB database.
    ValidateCertificate bool
    Indicates whether the SSL certificate of the SAP HANA instance is verified.
    VaultId string
    The ID of the backup vault.
    AlertSetting string
    The alert settings. Valid value: INHERITED, which indicates that the backup client sends alert notifications in the same way as the backup vault.
    HanaInstanceId string
    The ID of the SAP HANA instance.
    HanaName string
    The name of the SAP HANA instance.
    Host string
    The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
    Id string
    The ID of the Hana Instance. The value formats as <vault_id>:<hana_instance_id>.
    InstanceNumber int
    The instance number of the SAP HANA system.
    ResourceGroupId string
    The ID of the resource group.
    Status string
    The status of the SAP HANA instance.
    StatusMessage string
    The status information.
    UseSsl bool
    Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
    UserName string
    The username of the SYSTEMDB database.
    ValidateCertificate bool
    Indicates whether the SSL certificate of the SAP HANA instance is verified.
    VaultId string
    The ID of the backup vault.
    alertSetting String
    The alert settings. Valid value: INHERITED, which indicates that the backup client sends alert notifications in the same way as the backup vault.
    hanaInstanceId String
    The ID of the SAP HANA instance.
    hanaName String
    The name of the SAP HANA instance.
    host String
    The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
    id String
    The ID of the Hana Instance. The value formats as <vault_id>:<hana_instance_id>.
    instanceNumber Integer
    The instance number of the SAP HANA system.
    resourceGroupId String
    The ID of the resource group.
    status String
    The status of the SAP HANA instance.
    statusMessage String
    The status information.
    useSsl Boolean
    Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
    userName String
    The username of the SYSTEMDB database.
    validateCertificate Boolean
    Indicates whether the SSL certificate of the SAP HANA instance is verified.
    vaultId String
    The ID of the backup vault.
    alertSetting string
    The alert settings. Valid value: INHERITED, which indicates that the backup client sends alert notifications in the same way as the backup vault.
    hanaInstanceId string
    The ID of the SAP HANA instance.
    hanaName string
    The name of the SAP HANA instance.
    host string
    The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
    id string
    The ID of the Hana Instance. The value formats as <vault_id>:<hana_instance_id>.
    instanceNumber number
    The instance number of the SAP HANA system.
    resourceGroupId string
    The ID of the resource group.
    status string
    The status of the SAP HANA instance.
    statusMessage string
    The status information.
    useSsl boolean
    Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
    userName string
    The username of the SYSTEMDB database.
    validateCertificate boolean
    Indicates whether the SSL certificate of the SAP HANA instance is verified.
    vaultId string
    The ID of the backup vault.
    alert_setting str
    The alert settings. Valid value: INHERITED, which indicates that the backup client sends alert notifications in the same way as the backup vault.
    hana_instance_id str
    The ID of the SAP HANA instance.
    hana_name str
    The name of the SAP HANA instance.
    host str
    The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
    id str
    The ID of the Hana Instance. The value formats as <vault_id>:<hana_instance_id>.
    instance_number int
    The instance number of the SAP HANA system.
    resource_group_id str
    The ID of the resource group.
    status str
    The status of the SAP HANA instance.
    status_message str
    The status information.
    use_ssl bool
    Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
    user_name str
    The username of the SYSTEMDB database.
    validate_certificate bool
    Indicates whether the SSL certificate of the SAP HANA instance is verified.
    vault_id str
    The ID of the backup vault.
    alertSetting String
    The alert settings. Valid value: INHERITED, which indicates that the backup client sends alert notifications in the same way as the backup vault.
    hanaInstanceId String
    The ID of the SAP HANA instance.
    hanaName String
    The name of the SAP HANA instance.
    host String
    The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
    id String
    The ID of the Hana Instance. The value formats as <vault_id>:<hana_instance_id>.
    instanceNumber Number
    The instance number of the SAP HANA system.
    resourceGroupId String
    The ID of the resource group.
    status String
    The status of the SAP HANA instance.
    statusMessage String
    The status information.
    useSsl Boolean
    Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
    userName String
    The username of the SYSTEMDB database.
    validateCertificate Boolean
    Indicates whether the SSL certificate of the SAP HANA instance is verified.
    vaultId String
    The ID of the backup vault.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi