Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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, Any]] = 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, Any]]] = 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ecs/getEcsImagePipeline:getEcsImagePipeline
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Image Pipeline ids.
- Name string
- The name of the image template.
- Name
Regex string - 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 stringId - The ID of the resource group to which the image template belongs.
- Dictionary<string, object>
- A mapping of tags to assign to the resource.
- Ids []string
- A list of Image Pipeline ids.
- Name string
- The name of the image template.
- Name
Regex string - 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 stringId - The ID of the resource group to which the image template belongs.
- map[string]interface{}
- A mapping of tags to assign to the resource.
- ids List<String>
- A list of Image Pipeline ids.
- name String
- The name of the image template.
- name
Regex String - 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 StringId - The ID of the resource group to which the image template belongs.
- Map<String,Object>
- A mapping of tags to assign to the resource.
- ids string[]
- A list of Image Pipeline ids.
- name string
- The name of the image template.
- name
Regex string - 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 stringId - The ID of the resource group to which the image template belongs.
- {[key: string]: any}
- A mapping of tags to assign to the resource.
- ids Sequence[str]
- A list of Image Pipeline ids.
- name str
- The name of the image template.
- name_
regex str - 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_ strid - The ID of the resource group to which the image template belongs.
- Mapping[str, Any]
- A mapping of tags to assign to the resource.
- ids List<String>
- A list of Image Pipeline ids.
- name String
- The name of the image template.
- name
Regex String - 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 StringId - The ID of the resource group to which the image template belongs.
- Map<Any>
- 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, object>
- 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]interface{}
- 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,Object>
- 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]: any}
- 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, Any]
- 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<Any>
Supporting Types
GetEcsImagePipelinePipeline
- Add
Accounts List<string> - The IDs of Alibaba Cloud accounts to which the image was shared.
- Base
Image string - The source image.
- Base
Image stringType - The type of the source image.
- Build
Content string - The content of the image template.
- Creation
Time string - The time when the image template was created.
- Delete
Instance boolOn Failure - Indicates whether the intermediate instance was released when the image failed to be created.
- Description string
- The description of the image template.
- Id string
- The ID of the Image Pipeline.
- Image
Name string - The name prefix of the created image.
- Image
Pipeline stringId - The ID of the image template.
- Instance
Type string - The instance type of the intermediate instance.
- Internet
Max intBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - Name string
- The name of the image template.
- Resource
Group stringId - The ID of the resource group to which the image template belongs.
- System
Disk intSize - The system disk size of the intermediate instance. Unit:
GiB
. - To
Region List<string>Ids - The IDs of regions to which to distribute the created image.
- Vswitch
Id string - The vswitch id.
- Dictionary<string, object>
- A mapping of tags to assign to the resource.
- Add
Accounts []string - The IDs of Alibaba Cloud accounts to which the image was shared.
- Base
Image string - The source image.
- Base
Image stringType - The type of the source image.
- Build
Content string - The content of the image template.
- Creation
Time string - The time when the image template was created.
- Delete
Instance boolOn Failure - Indicates whether the intermediate instance was released when the image failed to be created.
- Description string
- The description of the image template.
- Id string
- The ID of the Image Pipeline.
- Image
Name string - The name prefix of the created image.
- Image
Pipeline stringId - The ID of the image template.
- Instance
Type string - The instance type of the intermediate instance.
- Internet
Max intBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - Name string
- The name of the image template.
- Resource
Group stringId - The ID of the resource group to which the image template belongs.
- System
Disk intSize - The system disk size of the intermediate instance. Unit:
GiB
. - To
Region []stringIds - The IDs of regions to which to distribute the created image.
- Vswitch
Id string - The vswitch id.
- map[string]interface{}
- A mapping of tags to assign to the resource.
- add
Accounts List<String> - The IDs of Alibaba Cloud accounts to which the image was shared.
- base
Image String - The source image.
- base
Image StringType - The type of the source image.
- build
Content String - The content of the image template.
- creation
Time String - The time when the image template was created.
- delete
Instance BooleanOn Failure - Indicates whether the intermediate instance was released when the image failed to be created.
- description String
- The description of the image template.
- id String
- The ID of the Image Pipeline.
- image
Name String - The name prefix of the created image.
- image
Pipeline StringId - The ID of the image template.
- instance
Type String - The instance type of the intermediate instance.
- internet
Max IntegerBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - name String
- The name of the image template.
- resource
Group StringId - The ID of the resource group to which the image template belongs.
- system
Disk IntegerSize - The system disk size of the intermediate instance. Unit:
GiB
. - to
Region List<String>Ids - The IDs of regions to which to distribute the created image.
- vswitch
Id String - The vswitch id.
- Map<String,Object>
- A mapping of tags to assign to the resource.
- add
Accounts string[] - The IDs of Alibaba Cloud accounts to which the image was shared.
- base
Image string - The source image.
- base
Image stringType - The type of the source image.
- build
Content string - The content of the image template.
- creation
Time string - The time when the image template was created.
- delete
Instance booleanOn Failure - Indicates whether the intermediate instance was released when the image failed to be created.
- description string
- The description of the image template.
- id string
- The ID of the Image Pipeline.
- image
Name string - The name prefix of the created image.
- image
Pipeline stringId - The ID of the image template.
- instance
Type string - The instance type of the intermediate instance.
- internet
Max numberBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - name string
- The name of the image template.
- resource
Group stringId - The ID of the resource group to which the image template belongs.
- system
Disk numberSize - The system disk size of the intermediate instance. Unit:
GiB
. - to
Region string[]Ids - The IDs of regions to which to distribute the created image.
- vswitch
Id string - The vswitch id.
- {[key: string]: any}
- A mapping of tags to assign to the resource.
- add_
accounts Sequence[str] - The IDs of Alibaba Cloud accounts to which the image was shared.
- base_
image str - The source image.
- base_
image_ strtype - The type of the source image.
- build_
content str - The content of the image template.
- creation_
time str - The time when the image template was created.
- delete_
instance_ boolon_ failure - Indicates whether the intermediate instance was released when the image failed to be created.
- description str
- The description of the image template.
- id str
- The ID of the Image Pipeline.
- image_
name str - The name prefix of the created image.
- image_
pipeline_ strid - The ID of the image template.
- instance_
type str - The instance type of the intermediate instance.
- internet_
max_ intbandwidth_ out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - name str
- The name of the image template.
- resource_
group_ strid - The ID of the resource group to which the image template belongs.
- system_
disk_ intsize - The system disk size of the intermediate instance. Unit:
GiB
. - to_
region_ Sequence[str]ids - The IDs of regions to which to distribute the created image.
- vswitch_
id str - The vswitch id.
- Mapping[str, Any]
- A mapping of tags to assign to the resource.
- add
Accounts List<String> - The IDs of Alibaba Cloud accounts to which the image was shared.
- base
Image String - The source image.
- base
Image StringType - The type of the source image.
- build
Content String - The content of the image template.
- creation
Time String - The time when the image template was created.
- delete
Instance BooleanOn Failure - Indicates whether the intermediate instance was released when the image failed to be created.
- description String
- The description of the image template.
- id String
- The ID of the Image Pipeline.
- image
Name String - The name prefix of the created image.
- image
Pipeline StringId - The ID of the image template.
- instance
Type String - The instance type of the intermediate instance.
- internet
Max NumberBandwidth Out - The size of the outbound public bandwidth for the intermediate instance. Unit:
Mbit/s
. - name String
- The name of the image template.
- resource
Group StringId - The ID of the resource group to which the image template belongs.
- system
Disk NumberSize - The system disk size of the intermediate instance. Unit:
GiB
. - to
Region List<String>Ids - The IDs of regions to which to distribute the created image.
- vswitch
Id String - The vswitch id.
- Map<Any>
- 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.