alicloud.hbr.getHanaInstances
Explore with Pulumi AI
This data source provides the Hbr Hana Instances of the current Alibaba Cloud user.
NOTE: Available in v1.178.0+.
Example Usage
Basic Usage
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 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
})
}
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()));
}
}
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.hbr.get_hana_instances(ids=["example_id"])
pulumi.export("hbrHanaInstanceId1", ids.instances[0].id)
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);
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.
- Name
Regex string A regex string to filter results by Hana Instance name.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int - Status string
The status of the SAP HANA instance.
- Vault
Id string The ID of the backup vault.
- Ids []string
A list of Hana Instance IDs.
- Name
Regex string A regex string to filter results by Hana Instance name.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int - Status string
The status of the SAP HANA instance.
- Vault
Id string The ID of the backup vault.
- ids List<String>
A list of Hana Instance IDs.
- name
Regex String A regex string to filter results by Hana Instance name.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Integer - page
Size Integer - status String
The status of the SAP HANA instance.
- vault
Id String The ID of the backup vault.
- ids string[]
A list of Hana Instance IDs.
- name
Regex string A regex string to filter results by Hana Instance name.
- output
File string File name where to save data source results (after running
pulumi preview
).- page
Number number - page
Size number - status string
The status of the SAP HANA instance.
- vault
Id string The ID of the backup 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.
- vault_
id str The ID of the backup vault.
- ids List<String>
A list of Hana Instance IDs.
- name
Regex String A regex string to filter results by Hana Instance name.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Number - page
Size Number - status String
The status of the SAP HANA instance.
- vault
Id String The ID of the backup 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.
Ali Cloud. Hbr. Outputs. Get Hana Instances Instance> - Names List<string>
- Name
Regex string - Output
File string - Page
Number int - Page
Size int - Status string
- Vault
Id string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Instances
[]Get
Hana Instances Instance - Names []string
- Name
Regex string - Output
File string - Page
Number int - Page
Size int - Status string
- Vault
Id string
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances
List<Get
Hana Instances Instance> - names List<String>
- name
Regex String - output
File String - page
Number Integer - page
Size Integer - status String
- vault
Id String
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- instances
Get
Hana Instances Instance[] - names string[]
- name
Regex string - output
File string - page
Number number - page
Size number - status string
- vault
Id string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instances
Sequence[Get
Hana Instances Instance] - 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>
- name
Regex String - output
File String - page
Number Number - page
Size Number - status String
- vault
Id String
Supporting Types
GetHanaInstancesInstance
- Alert
Setting string 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 stringId The ID of the SAP HANA instance.
- Hana
Name 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>
.- Instance
Number int The instance number of the SAP HANA system.
- Resource
Group stringId The ID of the resource group.
- Status string
The status of the SAP HANA instance.
- Status
Message string The status information.
- Use
Ssl bool Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
- User
Name string The username of the SYSTEMDB database.
- Validate
Certificate bool Indicates whether the SSL certificate of the SAP HANA instance is verified.
- Vault
Id string The ID of the backup vault.
- Alert
Setting string 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 stringId The ID of the SAP HANA instance.
- Hana
Name 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>
.- Instance
Number int The instance number of the SAP HANA system.
- Resource
Group stringId The ID of the resource group.
- Status string
The status of the SAP HANA instance.
- Status
Message string The status information.
- Use
Ssl bool Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
- User
Name string The username of the SYSTEMDB database.
- Validate
Certificate bool Indicates whether the SSL certificate of the SAP HANA instance is verified.
- Vault
Id string The ID of the backup vault.
- alert
Setting String 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 StringId The ID of the SAP HANA instance.
- hana
Name 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>
.- instance
Number Integer The instance number of the SAP HANA system.
- resource
Group StringId The ID of the resource group.
- status String
The status of the SAP HANA instance.
- status
Message String The status information.
- use
Ssl Boolean Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
- user
Name String The username of the SYSTEMDB database.
- validate
Certificate Boolean Indicates whether the SSL certificate of the SAP HANA instance is verified.
- vault
Id String The ID of the backup vault.
- alert
Setting string 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 stringId The ID of the SAP HANA instance.
- hana
Name 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>
.- instance
Number number The instance number of the SAP HANA system.
- resource
Group stringId The ID of the resource group.
- status string
The status of the SAP HANA instance.
- status
Message string The status information.
- use
Ssl boolean Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
- user
Name string The username of the SYSTEMDB database.
- validate
Certificate boolean Indicates whether the SSL certificate of the SAP HANA instance is verified.
- vault
Id 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_ strid 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_ strid 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.
- alert
Setting String 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 StringId The ID of the SAP HANA instance.
- hana
Name 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>
.- instance
Number Number The instance number of the SAP HANA system.
- resource
Group StringId The ID of the resource group.
- status String
The status of the SAP HANA instance.
- status
Message String The status information.
- use
Ssl Boolean Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
- user
Name String The username of the SYSTEMDB database.
- validate
Certificate Boolean Indicates whether the SSL certificate of the SAP HANA instance is verified.
- vault
Id 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.