alicloud.oss.getInstances
Explore with Pulumi AI
This data source provides the ots instances of the current Alibaba Cloud user.
NOTE: Available since v1.40.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({
outputFile: "instances.txt",
});
export const firstInstanceId = instancesDs.then(instancesDs => instancesDs.instances?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
instances_ds = alicloud.ots.get_instances(output_file="instances.txt")
pulumi.export("firstInstanceId", instances_ds.instances[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instancesDs, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{
OutputFile: pulumi.StringRef("instances.txt"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstInstanceId", instancesDs.Instances[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var instancesDs = AliCloud.Ots.GetInstances.Invoke(new()
{
OutputFile = "instances.txt",
});
return new Dictionary<string, object?>
{
["firstInstanceId"] = instancesDs.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ots.OtsFunctions;
import com.pulumi.alicloud.ots.inputs.GetInstancesArgs;
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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder()
.outputFile("instances.txt")
.build());
ctx.export("firstInstanceId", instancesDs.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
}
}
variables:
instancesDs:
fn::invoke:
Function: alicloud:ots:getInstances
Arguments:
outputFile: instances.txt
outputs:
firstInstanceId: ${instancesDs.instances[0].id}
Using getInstances
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 getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>
function getInstancesOutput(args: GetInstancesOutputArgs, opts?: InvokeOptions): Output<GetInstancesResult>
def get_instances(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
opts: Optional[InvokeOptions] = None) -> GetInstancesResult
def get_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,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstancesResult]
func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)
func GetInstancesOutput(ctx *Context, args *GetInstancesOutputArgs, opts ...InvokeOption) GetInstancesResultOutput
> Note: This function is named GetInstances
in the Go SDK.
public static class GetInstances
{
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstancesResult> getInstances(GetInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:oss/getInstances:getInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of instance IDs.
- Name
Regex string - A regex string to filter results by instance name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Dictionary<string, object>
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
- Ids []string
- A list of instance IDs.
- Name
Regex string - A regex string to filter results by instance name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - map[string]interface{}
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
- ids List<String>
- A list of instance IDs.
- name
Regex String - A regex string to filter results by instance name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - Map<String,Object>
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
- ids string[]
- A list of instance IDs.
- name
Regex string - A regex string to filter results by instance name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - {[key: string]: any}
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
- ids Sequence[str]
- A list of instance IDs.
- name_
regex str - A regex string to filter results by instance name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - Mapping[str, Any]
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
- ids List<String>
- A list of instance IDs.
- name
Regex String - A regex string to filter results by instance name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - Map<Any>
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
getInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of instance IDs.
- Instances
List<Pulumi.
Ali Cloud. Oss. Outputs. Get Instances Instance> - A list of instances. Each element contains the following attributes:
- Names List<string>
- A list of instance names.
- Name
Regex string - Output
File string - Dictionary<string, object>
- The tags of the instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of instance IDs.
- Instances
[]Get
Instances Instance - A list of instances. Each element contains the following attributes:
- Names []string
- A list of instance names.
- Name
Regex string - Output
File string - map[string]interface{}
- The tags of the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of instance IDs.
- instances
List<Get
Instances Instance> - A list of instances. Each element contains the following attributes:
- names List<String>
- A list of instance names.
- name
Regex String - output
File String - Map<String,Object>
- The tags of the instance.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of instance IDs.
- instances
Get
Instances Instance[] - A list of instances. Each element contains the following attributes:
- names string[]
- A list of instance names.
- name
Regex string - output
File string - {[key: string]: any}
- The tags of the instance.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of instance IDs.
- instances
Sequence[Get
Instances Instance] - A list of instances. Each element contains the following attributes:
- names Sequence[str]
- A list of instance names.
- name_
regex str - output_
file str - Mapping[str, Any]
- The tags of the instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of instance IDs.
- instances List<Property Map>
- A list of instances. Each element contains the following attributes:
- names List<String>
- A list of instance names.
- name
Regex String - output
File String - Map<Any>
- The tags of the instance.
Supporting Types
GetInstancesInstance
- Cluster
Type string - The cluster type of the instance. Possible values:
SSD
,HYBRID
. - Create
Time string - The create time of the instance.
- Description string
- The description of the instance.
- Entity
Quota int - (Removed since v1.221.0) The instance quota which indicating the maximum number of tables.
- Id string
- ID of the instance.
- Name string
- Instance name.
- Network string
- (Removed since v1.221.0) The network type of the instance. Possible values:
NORMAL
,VPC
,VPC_CONSOLE
. - Network
Source List<string>Acls - (Available since v1.221.0) The set of request sources that are allowed access. Possible values:
TRUST_PROXY
. - Network
Type List<string>Acls - (Available since v1.221.0) The set of network types that are allowed access. Possible values:
CLASSIC
,VPC
,INTERNET
. - Policy string
- (Available since v1.221.0) instance policy, json string.
- Policy
Version int - (Available since v1.221.0) instance policy version.
- Resource
Group stringId - (Available since v1.221.0) The resource group the instance belongs to.
- Status string
- Instance status. Possible values:
Running
,Disabled
,Deleting
. - Table
Quota int - (Available since v1.221.0) The instance quota which indicating the maximum number of tables.
- Dictionary<string, object>
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
title="Required"> <span id="userid_csharp">
User
Id string- The user id of the instance.
- Cluster
Type string - The cluster type of the instance. Possible values:
SSD
,HYBRID
. - Create
Time string - The create time of the instance.
- Description string
- The description of the instance.
- Entity
Quota int - (Removed since v1.221.0) The instance quota which indicating the maximum number of tables.
- Id string
- ID of the instance.
- Name string
- Instance name.
- Network string
- (Removed since v1.221.0) The network type of the instance. Possible values:
NORMAL
,VPC
,VPC_CONSOLE
. - Network
Source []stringAcls - (Available since v1.221.0) The set of request sources that are allowed access. Possible values:
TRUST_PROXY
. - Network
Type []stringAcls - (Available since v1.221.0) The set of network types that are allowed access. Possible values:
CLASSIC
,VPC
,INTERNET
. - Policy string
- (Available since v1.221.0) instance policy, json string.
- Policy
Version int - (Available since v1.221.0) instance policy version.
- Resource
Group stringId - (Available since v1.221.0) The resource group the instance belongs to.
- Status string
- Instance status. Possible values:
Running
,Disabled
,Deleting
. - Table
Quota int - (Available since v1.221.0) The instance quota which indicating the maximum number of tables.
- map[string]interface{}
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
title="Required"> <span id="userid_go">
User
Id string- The user id of the instance.
- cluster
Type String - The cluster type of the instance. Possible values:
SSD
,HYBRID
. - create
Time String - The create time of the instance.
- description String
- The description of the instance.
- entity
Quota Integer - (Removed since v1.221.0) The instance quota which indicating the maximum number of tables.
- id String
- ID of the instance.
- name String
- Instance name.
- network String
- (Removed since v1.221.0) The network type of the instance. Possible values:
NORMAL
,VPC
,VPC_CONSOLE
. - network
Source List<String>Acls - (Available since v1.221.0) The set of request sources that are allowed access. Possible values:
TRUST_PROXY
. - network
Type List<String>Acls - (Available since v1.221.0) The set of network types that are allowed access. Possible values:
CLASSIC
,VPC
,INTERNET
. - policy String
- (Available since v1.221.0) instance policy, json string.
- policy
Version Integer - (Available since v1.221.0) instance policy version.
- resource
Group StringId - (Available since v1.221.0) The resource group the instance belongs to.
- status String
- Instance status. Possible values:
Running
,Disabled
,Deleting
. - table
Quota Integer - (Available since v1.221.0) The instance quota which indicating the maximum number of tables.
- Map<String,Object>
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
title="Required"> <span id="userid_java">
user
Id String- The user id of the instance.
- cluster
Type string - The cluster type of the instance. Possible values:
SSD
,HYBRID
. - create
Time string - The create time of the instance.
- description string
- The description of the instance.
- entity
Quota number - (Removed since v1.221.0) The instance quota which indicating the maximum number of tables.
- id string
- ID of the instance.
- name string
- Instance name.
- network string
- (Removed since v1.221.0) The network type of the instance. Possible values:
NORMAL
,VPC
,VPC_CONSOLE
. - network
Source string[]Acls - (Available since v1.221.0) The set of request sources that are allowed access. Possible values:
TRUST_PROXY
. - network
Type string[]Acls - (Available since v1.221.0) The set of network types that are allowed access. Possible values:
CLASSIC
,VPC
,INTERNET
. - policy string
- (Available since v1.221.0) instance policy, json string.
- policy
Version number - (Available since v1.221.0) instance policy version.
- resource
Group stringId - (Available since v1.221.0) The resource group the instance belongs to.
- status string
- Instance status. Possible values:
Running
,Disabled
,Deleting
. - table
Quota number - (Available since v1.221.0) The instance quota which indicating the maximum number of tables.
- {[key: string]: any}
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
title="Required"> <span id="userid_nodejs">
user
Id string- The user id of the instance.
- cluster_
type str - The cluster type of the instance. Possible values:
SSD
,HYBRID
. - create_
time str - The create time of the instance.
- description str
- The description of the instance.
- entity_
quota int - (Removed since v1.221.0) The instance quota which indicating the maximum number of tables.
- id str
- ID of the instance.
- name str
- Instance name.
- network str
- (Removed since v1.221.0) The network type of the instance. Possible values:
NORMAL
,VPC
,VPC_CONSOLE
. - network_
source_ Sequence[str]acls - (Available since v1.221.0) The set of request sources that are allowed access. Possible values:
TRUST_PROXY
. - network_
type_ Sequence[str]acls - (Available since v1.221.0) The set of network types that are allowed access. Possible values:
CLASSIC
,VPC
,INTERNET
. - policy str
- (Available since v1.221.0) instance policy, json string.
- policy_
version int - (Available since v1.221.0) instance policy version.
- resource_
group_ strid - (Available since v1.221.0) The resource group the instance belongs to.
- status str
- Instance status. Possible values:
Running
,Disabled
,Deleting
. - table_
quota int - (Available since v1.221.0) The instance quota which indicating the maximum number of tables.
- Mapping[str, Any]
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
title="Required"> <span id="user_id_python">
user_
id str- The user id of the instance.
- cluster
Type String - The cluster type of the instance. Possible values:
SSD
,HYBRID
. - create
Time String - The create time of the instance.
- description String
- The description of the instance.
- entity
Quota Number - (Removed since v1.221.0) The instance quota which indicating the maximum number of tables.
- id String
- ID of the instance.
- name String
- Instance name.
- network String
- (Removed since v1.221.0) The network type of the instance. Possible values:
NORMAL
,VPC
,VPC_CONSOLE
. - network
Source List<String>Acls - (Available since v1.221.0) The set of request sources that are allowed access. Possible values:
TRUST_PROXY
. - network
Type List<String>Acls - (Available since v1.221.0) The set of network types that are allowed access. Possible values:
CLASSIC
,VPC
,INTERNET
. - policy String
- (Available since v1.221.0) instance policy, json string.
- policy
Version Number - (Available since v1.221.0) instance policy version.
- resource
Group StringId - (Available since v1.221.0) The resource group the instance belongs to.
- status String
- Instance status. Possible values:
Running
,Disabled
,Deleting
. - table
Quota Number - (Available since v1.221.0) The instance quota which indicating the maximum number of tables.
- Map<Any>
- A map of tags assigned to the instance. It must be in the format:
import * as pulumi from "@pulumi/pulumi"; import * as alicloud from "@pulumi/alicloud";
const instancesDs = alicloud.ots.getInstances({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });
import pulumi import pulumi_alicloud as alicloud instances_ds = alicloud.ots.get_instances(tags={ "tagKey1": "tagValue1", "tagKey2": "tagValue2", })
using System.Collections.Generic; using System.Linq; using Pulumi; using AliCloud = Pulumi.AliCloud; return await Deployment.RunAsync(() => { var instancesDs = AliCloud.Ots.GetInstances.Invoke(new() { Tags = { { "tagKey1", "tagValue1" }, { "tagKey2", "tagValue2" }, }, }); });
package main import ( "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{ Tags: map[string]interface{}{ "tagKey1": "tagValue1", "tagKey2": "tagValue2", }, }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ots.OtsFunctions; import com.pulumi.alicloud.ots.inputs.GetInstancesArgs; 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } }
variables: instancesDs: fn::invoke: Function: alicloud:ots:getInstances Arguments: tags: tagKey1: tagValue1 tagKey2: tagValue2
title="Required"> <span id="userid_yaml">
user
Id String- The user id of the instance.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.