Alibaba Cloud v3.87.0 published on Saturday, Oct 18, 2025 by Pulumi
alicloud.compute.getNestServiceInstances
This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user.
NOTE: Available in v1.205.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.compute.getNestServiceInstances({
ids: ["example_id"],
});
export const armsPrometheisId1 = ids.then(ids => ids.serviceInstances?.[0]?.id);
const nameRegex = alicloud.compute.getNestServiceInstances({
nameRegex: "tf-example",
});
export const armsPrometheisId2 = nameRegex.then(nameRegex => nameRegex.serviceInstances?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.compute.get_nest_service_instances(ids=["example_id"])
pulumi.export("armsPrometheisId1", ids.service_instances[0].id)
name_regex = alicloud.compute.get_nest_service_instances(name_regex="tf-example")
pulumi.export("armsPrometheisId2", name_regex.service_instances[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := compute.GetNestServiceInstances(ctx, &compute.GetNestServiceInstancesArgs{
Ids: []string{
"example_id",
},
}, nil)
if err != nil {
return err
}
ctx.Export("armsPrometheisId1", ids.ServiceInstances[0].Id)
nameRegex, err := compute.GetNestServiceInstances(ctx, &compute.GetNestServiceInstancesArgs{
NameRegex: pulumi.StringRef("tf-example"),
}, nil)
if err != nil {
return err
}
ctx.Export("armsPrometheisId2", nameRegex.ServiceInstances[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Compute.GetNestServiceInstances.Invoke(new()
{
Ids = new[]
{
"example_id",
},
});
var nameRegex = AliCloud.Compute.GetNestServiceInstances.Invoke(new()
{
NameRegex = "tf-example",
});
return new Dictionary<string, object?>
{
["armsPrometheisId1"] = ids.Apply(getNestServiceInstancesResult => getNestServiceInstancesResult.ServiceInstances[0]?.Id),
["armsPrometheisId2"] = nameRegex.Apply(getNestServiceInstancesResult => getNestServiceInstancesResult.ServiceInstances[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.compute.ComputeFunctions;
import com.pulumi.alicloud.compute.inputs.GetNestServiceInstancesArgs;
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 = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder()
.ids("example_id")
.build());
ctx.export("armsPrometheisId1", ids.serviceInstances()[0].id());
final var nameRegex = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder()
.nameRegex("tf-example")
.build());
ctx.export("armsPrometheisId2", nameRegex.serviceInstances()[0].id());
}
}
variables:
ids:
fn::invoke:
function: alicloud:compute:getNestServiceInstances
arguments:
ids:
- example_id
nameRegex:
fn::invoke:
function: alicloud:compute:getNestServiceInstances
arguments:
nameRegex: tf-example
outputs:
armsPrometheisId1: ${ids.serviceInstances[0].id}
armsPrometheisId2: ${nameRegex.serviceInstances[0].id}
Using getNestServiceInstances
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 getNestServiceInstances(args: GetNestServiceInstancesArgs, opts?: InvokeOptions): Promise<GetNestServiceInstancesResult>
function getNestServiceInstancesOutput(args: GetNestServiceInstancesOutputArgs, opts?: InvokeOptions): Output<GetNestServiceInstancesResult>
def get_nest_service_instances(filters: Optional[Sequence[GetNestServiceInstancesFilter]] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetNestServiceInstancesResult
def get_nest_service_instances_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNestServiceInstancesFilterArgs]]]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNestServiceInstancesResult]
func GetNestServiceInstances(ctx *Context, args *GetNestServiceInstancesArgs, opts ...InvokeOption) (*GetNestServiceInstancesResult, error)
func GetNestServiceInstancesOutput(ctx *Context, args *GetNestServiceInstancesOutputArgs, opts ...InvokeOption) GetNestServiceInstancesResultOutput
> Note: This function is named GetNestServiceInstances
in the Go SDK.
public static class GetNestServiceInstances
{
public static Task<GetNestServiceInstancesResult> InvokeAsync(GetNestServiceInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetNestServiceInstancesResult> Invoke(GetNestServiceInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNestServiceInstancesResult> getNestServiceInstances(GetNestServiceInstancesArgs args, InvokeOptions options)
public static Output<GetNestServiceInstancesResult> getNestServiceInstances(GetNestServiceInstancesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:compute/getNestServiceInstances:getNestServiceInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Pulumi.
Ali Cloud. Compute. Inputs. Get Nest Service Instances Filter> - The conditions that are used to filter. See the following
Block filter
. - Ids List<string>
- A list of Service Instance IDs.
- Name
Regex string - A regex string to filter results by Service Instance name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Filters
[]Get
Nest Service Instances Filter - The conditions that are used to filter. See the following
Block filter
. - Ids []string
- A list of Service Instance IDs.
- Name
Regex string - A regex string to filter results by Service Instance name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - map[string]string
- A mapping of tags to assign to the resource.
- filters
List<Get
Nest Service Instances Filter> - The conditions that are used to filter. See the following
Block filter
. - ids List<String>
- A list of Service Instance IDs.
- name
Regex String - A regex string to filter results by Service Instance name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Map<String,String>
- A mapping of tags to assign to the resource.
- filters
Get
Nest Service Instances Filter[] - The conditions that are used to filter. See the following
Block filter
. - ids string[]
- A list of Service Instance IDs.
- name
Regex string - A regex string to filter results by Service Instance name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- filters
Sequence[Get
Nest Service Instances Filter] - The conditions that are used to filter. See the following
Block filter
. - ids Sequence[str]
- A list of Service Instance IDs.
- name_
regex str - A regex string to filter results by Service Instance name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- filters List<Property Map>
- The conditions that are used to filter. See the following
Block filter
. - ids List<String>
- A list of Service Instance IDs.
- name
Regex String - A regex string to filter results by Service Instance name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Map<String>
- A mapping of tags to assign to the resource.
getNestServiceInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Service Instance names.
- Service
Instances List<Pulumi.Ali Cloud. Compute. Outputs. Get Nest Service Instances Service Instance> - A list of Service Instances. Each element contains the following attributes:
- Filters
List<Pulumi.
Ali Cloud. Compute. Outputs. Get Nest Service Instances Filter> - Name
Regex string - Output
File string - Status string
- The status of the Service Instance.
- Dictionary<string, string>
- The tag of the Service Instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Service Instance names.
- Service
Instances []GetNest Service Instances Service Instance - A list of Service Instances. Each element contains the following attributes:
- Filters
[]Get
Nest Service Instances Filter - Name
Regex string - Output
File string - Status string
- The status of the Service Instance.
- map[string]string
- The tag of the Service Instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Service Instance names.
- service
Instances List<GetNest Service Instances Service Instance> - A list of Service Instances. Each element contains the following attributes:
- filters
List<Get
Nest Service Instances Filter> - name
Regex String - output
File String - status String
- The status of the Service Instance.
- Map<String,String>
- The tag of the Service Instance.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Service Instance names.
- service
Instances GetNest Service Instances Service Instance[] - A list of Service Instances. Each element contains the following attributes:
- filters
Get
Nest Service Instances Filter[] - name
Regex string - output
File string - status string
- The status of the Service Instance.
- {[key: string]: string}
- The tag of the Service Instance.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Service Instance names.
- service_
instances Sequence[GetNest Service Instances Service Instance] - A list of Service Instances. Each element contains the following attributes:
- filters
Sequence[Get
Nest Service Instances Filter] - name_
regex str - output_
file str - status str
- The status of the Service Instance.
- Mapping[str, str]
- The tag of the Service Instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Service Instance names.
- service
Instances List<Property Map> - A list of Service Instances. Each element contains the following attributes:
- filters List<Property Map>
- name
Regex String - output
File String - status String
- The status of the Service Instance.
- Map<String>
- The tag of the Service Instance.
Supporting Types
GetNestServiceInstancesFilter
GetNestServiceInstancesServiceInstance
- Enable
Instance boolOps - Whether the service instance has the O&M function.
- Id string
- The ID of the Service Instance.
- Operated
Service stringInstance Id - The ID of the imported service instance.
- Operation
End stringTime - The end time of O&M.
- Operation
Start stringTime - The start time of O&M.
- Parameters string
- The parameters entered by the deployment service instance.
- Resources string
- The list of imported resources.
- Service
Instance stringId - The ID of the Service Instance.
- Service
Instance stringName - The name of the Service Instance.
- Services
List<Pulumi.
Ali Cloud. Compute. Inputs. Get Nest Service Instances Service Instance Service> - Service details.
- Source string
- The source of the Service Instance.
- Status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Template
Name string - The name of the template.
- Enable
Instance boolOps - Whether the service instance has the O&M function.
- Id string
- The ID of the Service Instance.
- Operated
Service stringInstance Id - The ID of the imported service instance.
- Operation
End stringTime - The end time of O&M.
- Operation
Start stringTime - The start time of O&M.
- Parameters string
- The parameters entered by the deployment service instance.
- Resources string
- The list of imported resources.
- Service
Instance stringId - The ID of the Service Instance.
- Service
Instance stringName - The name of the Service Instance.
- Services
[]Get
Nest Service Instances Service Instance Service - Service details.
- Source string
- The source of the Service Instance.
- Status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - map[string]string
- A mapping of tags to assign to the resource.
- Template
Name string - The name of the template.
- enable
Instance BooleanOps - Whether the service instance has the O&M function.
- id String
- The ID of the Service Instance.
- operated
Service StringInstance Id - The ID of the imported service instance.
- operation
End StringTime - The end time of O&M.
- operation
Start StringTime - The start time of O&M.
- parameters String
- The parameters entered by the deployment service instance.
- resources String
- The list of imported resources.
- service
Instance StringId - The ID of the Service Instance.
- service
Instance StringName - The name of the Service Instance.
- services
List<Get
Nest Service Instances Service Instance Service> - Service details.
- source String
- The source of the Service Instance.
- status String
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Map<String,String>
- A mapping of tags to assign to the resource.
- template
Name String - The name of the template.
- enable
Instance booleanOps - Whether the service instance has the O&M function.
- id string
- The ID of the Service Instance.
- operated
Service stringInstance Id - The ID of the imported service instance.
- operation
End stringTime - The end time of O&M.
- operation
Start stringTime - The start time of O&M.
- parameters string
- The parameters entered by the deployment service instance.
- resources string
- The list of imported resources.
- service
Instance stringId - The ID of the Service Instance.
- service
Instance stringName - The name of the Service Instance.
- services
Get
Nest Service Instances Service Instance Service[] - Service details.
- source string
- The source of the Service Instance.
- status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- template
Name string - The name of the template.
- enable_
instance_ boolops - Whether the service instance has the O&M function.
- id str
- The ID of the Service Instance.
- operated_
service_ strinstance_ id - The ID of the imported service instance.
- operation_
end_ strtime - The end time of O&M.
- operation_
start_ strtime - The start time of O&M.
- parameters str
- The parameters entered by the deployment service instance.
- resources str
- The list of imported resources.
- service_
instance_ strid - The ID of the Service Instance.
- service_
instance_ strname - The name of the Service Instance.
- services
Sequence[Get
Nest Service Instances Service Instance Service] - Service details.
- source str
- The source of the Service Instance.
- status str
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- template_
name str - The name of the template.
- enable
Instance BooleanOps - Whether the service instance has the O&M function.
- id String
- The ID of the Service Instance.
- operated
Service StringInstance Id - The ID of the imported service instance.
- operation
End StringTime - The end time of O&M.
- operation
Start StringTime - The start time of O&M.
- parameters String
- The parameters entered by the deployment service instance.
- resources String
- The list of imported resources.
- service
Instance StringId - The ID of the Service Instance.
- service
Instance StringName - The name of the Service Instance.
- services List<Property Map>
- Service details.
- source String
- The source of the Service Instance.
- status String
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Map<String>
- A mapping of tags to assign to the resource.
- template
Name String - The name of the template.
GetNestServiceInstancesServiceInstanceService
- Deploy
Type string - The type of the deployment.
- Publish
Time string - The time of publish.
- Service
Id string - The id of the service.
- Service
Infos List<Pulumi.Ali Cloud. Compute. Inputs. Get Nest Service Instances Service Instance Service Service Info> - Service information.
- Service
Type string - The type of the service.
- Status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Supplier
Name string - The name of the supplier.
- Supplier
Url string - The url of the supplier.
- Version string
- The version of the service.
- Version
Name string - The version name of the service.
- Deploy
Type string - The type of the deployment.
- Publish
Time string - The time of publish.
- Service
Id string - The id of the service.
- Service
Infos []GetNest Service Instances Service Instance Service Service Info - Service information.
- Service
Type string - The type of the service.
- Status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - Supplier
Name string - The name of the supplier.
- Supplier
Url string - The url of the supplier.
- Version string
- The version of the service.
- Version
Name string - The version name of the service.
- deploy
Type String - The type of the deployment.
- publish
Time String - The time of publish.
- service
Id String - The id of the service.
- service
Infos List<GetNest Service Instances Service Instance Service Service Info> - Service information.
- service
Type String - The type of the service.
- status String
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - supplier
Name String - The name of the supplier.
- supplier
Url String - The url of the supplier.
- version String
- The version of the service.
- version
Name String - The version name of the service.
- deploy
Type string - The type of the deployment.
- publish
Time string - The time of publish.
- service
Id string - The id of the service.
- service
Infos GetNest Service Instances Service Instance Service Service Info[] - Service information.
- service
Type string - The type of the service.
- status string
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - supplier
Name string - The name of the supplier.
- supplier
Url string - The url of the supplier.
- version string
- The version of the service.
- version
Name string - The version name of the service.
- deploy_
type str - The type of the deployment.
- publish_
time str - The time of publish.
- service_
id str - The id of the service.
- service_
infos Sequence[GetNest Service Instances Service Instance Service Service Info] - Service information.
- service_
type str - The type of the service.
- status str
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - supplier_
name str - The name of the supplier.
- supplier_
url str - The url of the supplier.
- version str
- The version of the service.
- version_
name str - The version name of the service.
- deploy
Type String - The type of the deployment.
- publish
Time String - The time of publish.
- service
Id String - The id of the service.
- service
Infos List<Property Map> - Service information.
- service
Type String - The type of the service.
- status String
- The status of the Service Instance. Valid Values:
Created
,Deploying
,DeployedFailed
,Deployed
,Upgrading
,Deleting
,Deleted
,DeletedFailed
. - supplier
Name String - The name of the supplier.
- supplier
Url String - The url of the supplier.
- version String
- The version of the service.
- version
Name String - The version name of the service.
GetNestServiceInstancesServiceInstanceServiceServiceInfo
- Image string
- The image of the service.
- Locale string
- The locale of the service.
- Name string
- The name of the service.
- Short
Description string - The short description of the service.
- Image string
- The image of the service.
- Locale string
- The locale of the service.
- Name string
- The name of the service.
- Short
Description string - The short description of the service.
- image String
- The image of the service.
- locale String
- The locale of the service.
- name String
- The name of the service.
- short
Description String - The short description of the service.
- image string
- The image of the service.
- locale string
- The locale of the service.
- name string
- The name of the service.
- short
Description string - The short description of the service.
- image str
- The image of the service.
- locale str
- The locale of the service.
- name str
- The name of the service.
- short_
description str - The short description of the service.
- image String
- The image of the service.
- locale String
- The locale of the service.
- name String
- The name of the service.
- short
Description String - The short description of the service.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.