Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.ecs.getEcsImagePipeline
Explore with Pulumi AI
This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user.
NOTE: Available in v1.163.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.ecs.getEcsImagePipeline({
ids: ["example_value"],
});
export const ecsImagePipelineId1 = ids.then(ids => ids.pipelines?.[0]?.id);
const nameRegex = alicloud.ecs.getEcsImagePipeline({
nameRegex: "^my-ImagePipeline",
});
export const ecsImagePipelineId2 = nameRegex.then(nameRegex => nameRegex.pipelines?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.ecs.get_ecs_image_pipeline(ids=["example_value"])
pulumi.export("ecsImagePipelineId1", ids.pipelines[0].id)
name_regex = alicloud.ecs.get_ecs_image_pipeline(name_regex="^my-ImagePipeline")
pulumi.export("ecsImagePipelineId2", name_regex.pipelines[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := ecs.LookupEcsImagePipeline(ctx, &ecs.LookupEcsImagePipelineArgs{
Ids: []string{
"example_value",
},
}, nil)
if err != nil {
return err
}
ctx.Export("ecsImagePipelineId1", ids.Pipelines[0].Id)
nameRegex, err := ecs.LookupEcsImagePipeline(ctx, &ecs.LookupEcsImagePipelineArgs{
NameRegex: pulumi.StringRef("^my-ImagePipeline"),
}, nil)
if err != nil {
return err
}
ctx.Export("ecsImagePipelineId2", nameRegex.Pipelines[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Ecs.GetEcsImagePipeline.Invoke(new()
{
Ids = new[]
{
"example_value",
},
});
var nameRegex = AliCloud.Ecs.GetEcsImagePipeline.Invoke(new()
{
NameRegex = "^my-ImagePipeline",
});
return new Dictionary<string, object?>
{
["ecsImagePipelineId1"] = ids.Apply(getEcsImagePipelineResult => getEcsImagePipelineResult.Pipelines[0]?.Id),
["ecsImagePipelineId2"] = nameRegex.Apply(getEcsImagePipelineResult => getEcsImagePipelineResult.Pipelines[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetEcsImagePipelineArgs;
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 = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder()
.ids("example_value")
.build());
ctx.export("ecsImagePipelineId1", ids.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id()));
final var nameRegex = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder()
.nameRegex("^my-ImagePipeline")
.build());
ctx.export("ecsImagePipelineId2", nameRegex.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id()));
}
}
variables:
ids:
fn::invoke:
function: alicloud:ecs:getEcsImagePipeline
arguments:
ids:
- example_value
nameRegex:
fn::invoke:
function: alicloud:ecs:getEcsImagePipeline
arguments:
nameRegex: ^my-ImagePipeline
outputs:
ecsImagePipelineId1: ${ids.pipelines[0].id}
ecsImagePipelineId2: ${nameRegex.pipelines[0].id}
Using getEcsImagePipeline
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 getEcsImagePipeline(args: GetEcsImagePipelineArgs, opts?: InvokeOptions): Promise<GetEcsImagePipelineResult>
function getEcsImagePipelineOutput(args: GetEcsImagePipelineOutputArgs, opts?: InvokeOptions): Output<GetEcsImagePipelineResult>
def get_ecs_image_pipeline(ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetEcsImagePipelineResult
def get_ecs_image_pipeline_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEcsImagePipelineResult]
func LookupEcsImagePipeline(ctx *Context, args *LookupEcsImagePipelineArgs, opts ...InvokeOption) (*LookupEcsImagePipelineResult, error)
func LookupEcsImagePipelineOutput(ctx *Context, args *LookupEcsImagePipelineOutputArgs, opts ...InvokeOption) LookupEcsImagePipelineResultOutput
> Note: This function is named LookupEcsImagePipeline
in the Go SDK.
public static class GetEcsImagePipeline
{
public static Task<GetEcsImagePipelineResult> InvokeAsync(GetEcsImagePipelineArgs args, InvokeOptions? opts = null)
public static Output<GetEcsImagePipelineResult> Invoke(GetEcsImagePipelineInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEcsImagePipelineResult> getEcsImagePipeline(GetEcsImagePipelineArgs args, InvokeOptions options)
public static Output<GetEcsImagePipelineResult> getEcsImagePipeline(GetEcsImagePipelineArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:ecs/getEcsImagePipeline:getEcsImagePipeline
arguments:
# arguments dictionary
The following arguments are supported:
- Ids
Changes to this property will trigger replacement.
- A list of Image Pipeline ids.
- Name
Changes to this property will trigger replacement.
- The name of the image template.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Image Pipeline name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group to which the image template belongs.
Changes to this property will trigger replacement.
- A mapping of tags to assign to the resource.
- Ids
Changes to this property will trigger replacement.
- A list of Image Pipeline ids.
- Name
Changes to this property will trigger replacement.
- The name of the image template.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Image Pipeline name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group to which the image template belongs.
Changes to this property will trigger replacement.
- A mapping of tags to assign to the resource.
- ids
Changes to this property will trigger replacement.
- A list of Image Pipeline ids.
- name
Changes to this property will trigger replacement.
- The name of the image template.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Image Pipeline name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group to which the image template belongs.
Changes to this property will trigger replacement.
- A mapping of tags to assign to the resource.
- ids
Changes to this property will trigger replacement.
- A list of Image Pipeline ids.
- name
Changes to this property will trigger replacement.
- The name of the image template.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Image Pipeline name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group to which the image template belongs.
Changes to this property will trigger replacement.
- A mapping of tags to assign to the resource.
- ids
Changes to this property will trigger replacement.
- A list of Image Pipeline ids.
- name
Changes to this property will trigger replacement.
- The name of the image template.
- name_
regex Changes to this property will trigger replacement.
- A regex string to filter results by Image Pipeline name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - resource_
group_ id Changes to this property will trigger replacement.
- The ID of the resource group to which the image template belongs.
Changes to this property will trigger replacement.
- A mapping of tags to assign to the resource.
- ids
Changes to this property will trigger replacement.
- A list of Image Pipeline ids.
- name
Changes to this property will trigger replacement.
- The name of the image template.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Image Pipeline name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group to which the image template belongs.
Changes to this property will trigger replacement.
- A mapping of tags to assign to the resource.
getEcsImagePipeline Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Pipelines
List<Pulumi.
Ali Cloud. Ecs. Outputs. Get Ecs Image Pipeline Pipeline> - Name string
- Name
Regex string - Output
File string - Resource
Group stringId - Dictionary<string, string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Pipelines
[]Get
Ecs Image Pipeline Pipeline - Name string
- Name
Regex string - Output
File string - Resource
Group stringId - map[string]string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- pipelines
List<Get
Ecs Image Pipeline Pipeline> - name String
- name
Regex String - output
File String - resource
Group StringId - Map<String,String>
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- pipelines
Get
Ecs Image Pipeline Pipeline[] - name string
- name
Regex string - output
File string - resource
Group stringId - {[key: string]: string}
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- pipelines
Sequence[Get
Ecs Image Pipeline Pipeline] - name str
- name_
regex str - output_
file str - resource_
group_ strid - Mapping[str, str]
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- pipelines List<Property Map>
- name String
- name
Regex String - output
File String - resource
Group StringId - Map<String>
Supporting Types
GetEcsImagePipelinePipeline
- Add
Accounts This property is required. List<string> - The IDs of Alibaba Cloud accounts to which the image was shared.
- Base
Image This property is required. string - The source image.
- Base
Image Type This property is required. string - The type of the source image.
- Build
Content This property is required. string - The content of the image template.
- Creation
Time This property is required. string - The time when the image template was created.
- Delete
Instance On Failure This property is required. bool - Indicates whether the intermediate instance was released when the image failed to be created.
- Description
This property is required. string - The description of the image template.
- Id
This property is required. string - The ID of the Image Pipeline.
- Image
Name This property is required. string - The name prefix of the created image.
- Image
Pipeline Id This property is required. string - The ID of the image template.
- Instance
Type This property is required. string - The instance type of the intermediate instance.
- Internet
Max Bandwidth Out This property is required. int - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - Name
This property is required. string - The name of the image template.
- Resource
Group Id This property is required. string - The ID of the resource group to which the image template belongs.
- System
Disk Size This property is required. int - The system disk size of the intermediate instance. Unit:
GiB
. - To
Region Ids This property is required. List<string> - The IDs of regions to which to distribute the created image.
- Vswitch
Id This property is required. string - The vswitch id.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Add
Accounts This property is required. []string - The IDs of Alibaba Cloud accounts to which the image was shared.
- Base
Image This property is required. string - The source image.
- Base
Image Type This property is required. string - The type of the source image.
- Build
Content This property is required. string - The content of the image template.
- Creation
Time This property is required. string - The time when the image template was created.
- Delete
Instance On Failure This property is required. bool - Indicates whether the intermediate instance was released when the image failed to be created.
- Description
This property is required. string - The description of the image template.
- Id
This property is required. string - The ID of the Image Pipeline.
- Image
Name This property is required. string - The name prefix of the created image.
- Image
Pipeline Id This property is required. string - The ID of the image template.
- Instance
Type This property is required. string - The instance type of the intermediate instance.
- Internet
Max Bandwidth Out This property is required. int - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - Name
This property is required. string - The name of the image template.
- Resource
Group Id This property is required. string - The ID of the resource group to which the image template belongs.
- System
Disk Size This property is required. int - The system disk size of the intermediate instance. Unit:
GiB
. - To
Region Ids This property is required. []string - The IDs of regions to which to distribute the created image.
- Vswitch
Id This property is required. string - The vswitch id.
- map[string]string
- A mapping of tags to assign to the resource.
- add
Accounts This property is required. List<String> - The IDs of Alibaba Cloud accounts to which the image was shared.
- base
Image This property is required. String - The source image.
- base
Image Type This property is required. String - The type of the source image.
- build
Content This property is required. String - The content of the image template.
- creation
Time This property is required. String - The time when the image template was created.
- delete
Instance On Failure This property is required. Boolean - Indicates whether the intermediate instance was released when the image failed to be created.
- description
This property is required. String - The description of the image template.
- id
This property is required. String - The ID of the Image Pipeline.
- image
Name This property is required. String - The name prefix of the created image.
- image
Pipeline Id This property is required. String - The ID of the image template.
- instance
Type This property is required. String - The instance type of the intermediate instance.
- internet
Max Bandwidth Out This property is required. Integer - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - name
This property is required. String - The name of the image template.
- resource
Group Id This property is required. String - The ID of the resource group to which the image template belongs.
- system
Disk Size This property is required. Integer - The system disk size of the intermediate instance. Unit:
GiB
. - to
Region Ids This property is required. List<String> - The IDs of regions to which to distribute the created image.
- vswitch
Id This property is required. String - The vswitch id.
- Map<String,String>
- A mapping of tags to assign to the resource.
- add
Accounts This property is required. string[] - The IDs of Alibaba Cloud accounts to which the image was shared.
- base
Image This property is required. string - The source image.
- base
Image Type This property is required. string - The type of the source image.
- build
Content This property is required. string - The content of the image template.
- creation
Time This property is required. string - The time when the image template was created.
- delete
Instance On Failure This property is required. boolean - Indicates whether the intermediate instance was released when the image failed to be created.
- description
This property is required. string - The description of the image template.
- id
This property is required. string - The ID of the Image Pipeline.
- image
Name This property is required. string - The name prefix of the created image.
- image
Pipeline Id This property is required. string - The ID of the image template.
- instance
Type This property is required. string - The instance type of the intermediate instance.
- internet
Max Bandwidth Out This property is required. number - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - name
This property is required. string - The name of the image template.
- resource
Group Id This property is required. string - The ID of the resource group to which the image template belongs.
- system
Disk Size This property is required. number - The system disk size of the intermediate instance. Unit:
GiB
. - to
Region Ids This property is required. string[] - The IDs of regions to which to distribute the created image.
- vswitch
Id This property is required. string - The vswitch id.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- add_
accounts This property is required. Sequence[str] - The IDs of Alibaba Cloud accounts to which the image was shared.
- base_
image This property is required. str - The source image.
- base_
image_ type This property is required. str - The type of the source image.
- build_
content This property is required. str - The content of the image template.
- creation_
time This property is required. str - The time when the image template was created.
- delete_
instance_ on_ failure This property is required. bool - Indicates whether the intermediate instance was released when the image failed to be created.
- description
This property is required. str - The description of the image template.
- id
This property is required. str - The ID of the Image Pipeline.
- image_
name This property is required. str - The name prefix of the created image.
- image_
pipeline_ id This property is required. str - The ID of the image template.
- instance_
type This property is required. str - The instance type of the intermediate instance.
- internet_
max_ bandwidth_ out This property is required. int - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - name
This property is required. str - The name of the image template.
- resource_
group_ id This property is required. str - The ID of the resource group to which the image template belongs.
- system_
disk_ size This property is required. int - The system disk size of the intermediate instance. Unit:
GiB
. - to_
region_ ids This property is required. Sequence[str] - The IDs of regions to which to distribute the created image.
- vswitch_
id This property is required. str - The vswitch id.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- add
Accounts This property is required. List<String> - The IDs of Alibaba Cloud accounts to which the image was shared.
- base
Image This property is required. String - The source image.
- base
Image Type This property is required. String - The type of the source image.
- build
Content This property is required. String - The content of the image template.
- creation
Time This property is required. String - The time when the image template was created.
- delete
Instance On Failure This property is required. Boolean - Indicates whether the intermediate instance was released when the image failed to be created.
- description
This property is required. String - The description of the image template.
- id
This property is required. String - The ID of the Image Pipeline.
- image
Name This property is required. String - The name prefix of the created image.
- image
Pipeline Id This property is required. String - The ID of the image template.
- instance
Type This property is required. String - The instance type of the intermediate instance.
- internet
Max Bandwidth Out This property is required. Number - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - name
This property is required. String - The name of the image template.
- resource
Group Id This property is required. String - The ID of the resource group to which the image template belongs.
- system
Disk Size This property is required. Number - The system disk size of the intermediate instance. Unit:
GiB
. - to
Region Ids This property is required. List<String> - The IDs of regions to which to distribute the created image.
- vswitch
Id This property is required. String - The vswitch id.
- Map<String>
- A mapping of tags to assign to the resource.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.