Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.ecs.Images
Explore with Pulumi AI
Use this data source to query detailed information of images
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Ecs.Images.Invoke(new()
{
InstanceTypeId = "ecs.g1.large",
OsType = "Linux",
Visibility = "public",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.Images(ctx, &ecs.ImagesArgs{
InstanceTypeId: pulumi.StringRef("ecs.g1.large"),
OsType: pulumi.StringRef("Linux"),
Visibility: pulumi.StringRef("public"),
}, 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.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ImagesArgs;
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 foo = EcsFunctions.Images(ImagesArgs.builder()
.instanceTypeId("ecs.g1.large")
.osType("Linux")
.visibility("public")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ecs.images(instance_type_id="ecs.g1.large",
os_type="Linux",
visibility="public")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.ecs.Images({
instanceTypeId: "ecs.g1.large",
osType: "Linux",
visibility: "public",
});
variables:
foo:
fn::invoke:
Function: volcengine:ecs:Images
Arguments:
instanceTypeId: ecs.g1.large
osType: Linux
visibility: public
Using Images
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 images(args: ImagesArgs, opts?: InvokeOptions): Promise<ImagesResult>
function imagesOutput(args: ImagesOutputArgs, opts?: InvokeOptions): Output<ImagesResult>
def images(ids: Optional[Sequence[str]] = None,
instance_type_id: Optional[str] = None,
is_support_cloud_init: Optional[bool] = None,
name_regex: Optional[str] = None,
os_type: Optional[str] = None,
output_file: Optional[str] = None,
statuses: Optional[Sequence[str]] = None,
visibility: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ImagesResult
def images_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_type_id: Optional[pulumi.Input[str]] = None,
is_support_cloud_init: Optional[pulumi.Input[bool]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
os_type: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
visibility: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ImagesResult]
func Images(ctx *Context, args *ImagesArgs, opts ...InvokeOption) (*ImagesResult, error)
func ImagesOutput(ctx *Context, args *ImagesOutputArgs, opts ...InvokeOption) ImagesResultOutput
public static class Images
{
public static Task<ImagesResult> InvokeAsync(ImagesArgs args, InvokeOptions? opts = null)
public static Output<ImagesResult> Invoke(ImagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<ImagesResult> images(ImagesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:ecs:Images
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Image IDs.
- Instance
Type stringId - The specification of Instance.
- Is
Support boolCloud Init - Whether the Image support cloud-init.
- Name
Regex string - A Name Regex of Image.
- Os
Type string - The operating system type of Image.
- Output
File string - File name where to save data source results.
- Statuses List<string>
- A list of Image status, the value can be
available
orcreating
orerror
. - Visibility string
- The visibility of Image.
- Ids []string
- A list of Image IDs.
- Instance
Type stringId - The specification of Instance.
- Is
Support boolCloud Init - Whether the Image support cloud-init.
- Name
Regex string - A Name Regex of Image.
- Os
Type string - The operating system type of Image.
- Output
File string - File name where to save data source results.
- Statuses []string
- A list of Image status, the value can be
available
orcreating
orerror
. - Visibility string
- The visibility of Image.
- ids List<String>
- A list of Image IDs.
- instance
Type StringId - The specification of Instance.
- is
Support BooleanCloud Init - Whether the Image support cloud-init.
- name
Regex String - A Name Regex of Image.
- os
Type String - The operating system type of Image.
- output
File String - File name where to save data source results.
- statuses List<String>
- A list of Image status, the value can be
available
orcreating
orerror
. - visibility String
- The visibility of Image.
- ids string[]
- A list of Image IDs.
- instance
Type stringId - The specification of Instance.
- is
Support booleanCloud Init - Whether the Image support cloud-init.
- name
Regex string - A Name Regex of Image.
- os
Type string - The operating system type of Image.
- output
File string - File name where to save data source results.
- statuses string[]
- A list of Image status, the value can be
available
orcreating
orerror
. - visibility string
- The visibility of Image.
- ids Sequence[str]
- A list of Image IDs.
- instance_
type_ strid - The specification of Instance.
- is_
support_ boolcloud_ init - Whether the Image support cloud-init.
- name_
regex str - A Name Regex of Image.
- os_
type str - The operating system type of Image.
- output_
file str - File name where to save data source results.
- statuses Sequence[str]
- A list of Image status, the value can be
available
orcreating
orerror
. - visibility str
- The visibility of Image.
- ids List<String>
- A list of Image IDs.
- instance
Type StringId - The specification of Instance.
- is
Support BooleanCloud Init - Whether the Image support cloud-init.
- name
Regex String - A Name Regex of Image.
- os
Type String - The operating system type of Image.
- output
File String - File name where to save data source results.
- statuses List<String>
- A list of Image status, the value can be
available
orcreating
orerror
. - visibility String
- The visibility of Image.
Images Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
List<Images
Image> - The collection of Image query.
- Total
Count int - The total count of Image query.
- Ids List<string>
- Instance
Type stringId - Is
Support boolCloud Init - Whether the Image support cloud-init.
- Name
Regex string - Os
Type string - The operating system type of Image.
- Output
File string - Statuses List<string>
- The status of Image.
- Visibility string
- The visibility of Image.
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
[]Images
Image - The collection of Image query.
- Total
Count int - The total count of Image query.
- Ids []string
- Instance
Type stringId - Is
Support boolCloud Init - Whether the Image support cloud-init.
- Name
Regex string - Os
Type string - The operating system type of Image.
- Output
File string - Statuses []string
- The status of Image.
- Visibility string
- The visibility of Image.
- id String
- The provider-assigned unique ID for this managed resource.
- images
List<Images
Image> - The collection of Image query.
- total
Count Integer - The total count of Image query.
- ids List<String>
- instance
Type StringId - is
Support BooleanCloud Init - Whether the Image support cloud-init.
- name
Regex String - os
Type String - The operating system type of Image.
- output
File String - statuses List<String>
- The status of Image.
- visibility String
- The visibility of Image.
- id string
- The provider-assigned unique ID for this managed resource.
- images
Images
Image[] - The collection of Image query.
- total
Count number - The total count of Image query.
- ids string[]
- instance
Type stringId - is
Support booleanCloud Init - Whether the Image support cloud-init.
- name
Regex string - os
Type string - The operating system type of Image.
- output
File string - statuses string[]
- The status of Image.
- visibility string
- The visibility of Image.
- id str
- The provider-assigned unique ID for this managed resource.
- images
Sequence[Images
Image] - The collection of Image query.
- total_
count int - The total count of Image query.
- ids Sequence[str]
- instance_
type_ strid - is_
support_ boolcloud_ init - Whether the Image support cloud-init.
- name_
regex str - os_
type str - The operating system type of Image.
- output_
file str - statuses Sequence[str]
- The status of Image.
- visibility str
- The visibility of Image.
- id String
- The provider-assigned unique ID for this managed resource.
- images List<Property Map>
- The collection of Image query.
- total
Count Number - The total count of Image query.
- ids List<String>
- instance
Type StringId - is
Support BooleanCloud Init - Whether the Image support cloud-init.
- name
Regex String - os
Type String - The operating system type of Image.
- output
File String - statuses List<String>
- The status of Image.
- visibility String
- The visibility of Image.
Supporting Types
ImagesImage
- Architecture string
- The architecture of Image.
- Created
At string - The create time of Image.
- Description string
- The description of Image.
- Image
Id string - The ID of Image.
- Image
Name string - The name of Image.
- Is
Support boolCloud Init - Whether the Image support cloud-init.
- Os
Name string - The name of Image operating system.
- Os
Type string - The operating system type of Image.
- Platform string
- The platform of Image.
- Platform
Version string - The platform version of Image.
- string
- The share mode of Image.
- Size int
- The size(GiB) of Image.
- Status string
- A list of Image status, the value can be
available
orcreating
orerror
. - Updated
At string - The update time of Image.
- Visibility string
- The visibility of Image.
- Architecture string
- The architecture of Image.
- Created
At string - The create time of Image.
- Description string
- The description of Image.
- Image
Id string - The ID of Image.
- Image
Name string - The name of Image.
- Is
Support boolCloud Init - Whether the Image support cloud-init.
- Os
Name string - The name of Image operating system.
- Os
Type string - The operating system type of Image.
- Platform string
- The platform of Image.
- Platform
Version string - The platform version of Image.
- string
- The share mode of Image.
- Size int
- The size(GiB) of Image.
- Status string
- A list of Image status, the value can be
available
orcreating
orerror
. - Updated
At string - The update time of Image.
- Visibility string
- The visibility of Image.
- architecture String
- The architecture of Image.
- created
At String - The create time of Image.
- description String
- The description of Image.
- image
Id String - The ID of Image.
- image
Name String - The name of Image.
- is
Support BooleanCloud Init - Whether the Image support cloud-init.
- os
Name String - The name of Image operating system.
- os
Type String - The operating system type of Image.
- platform String
- The platform of Image.
- platform
Version String - The platform version of Image.
- String
- The share mode of Image.
- size Integer
- The size(GiB) of Image.
- status String
- A list of Image status, the value can be
available
orcreating
orerror
. - updated
At String - The update time of Image.
- visibility String
- The visibility of Image.
- architecture string
- The architecture of Image.
- created
At string - The create time of Image.
- description string
- The description of Image.
- image
Id string - The ID of Image.
- image
Name string - The name of Image.
- is
Support booleanCloud Init - Whether the Image support cloud-init.
- os
Name string - The name of Image operating system.
- os
Type string - The operating system type of Image.
- platform string
- The platform of Image.
- platform
Version string - The platform version of Image.
- string
- The share mode of Image.
- size number
- The size(GiB) of Image.
- status string
- A list of Image status, the value can be
available
orcreating
orerror
. - updated
At string - The update time of Image.
- visibility string
- The visibility of Image.
- architecture str
- The architecture of Image.
- created_
at str - The create time of Image.
- description str
- The description of Image.
- image_
id str - The ID of Image.
- image_
name str - The name of Image.
- is_
support_ boolcloud_ init - Whether the Image support cloud-init.
- os_
name str - The name of Image operating system.
- os_
type str - The operating system type of Image.
- platform str
- The platform of Image.
- platform_
version str - The platform version of Image.
- str
- The share mode of Image.
- size int
- The size(GiB) of Image.
- status str
- A list of Image status, the value can be
available
orcreating
orerror
. - updated_
at str - The update time of Image.
- visibility str
- The visibility of Image.
- architecture String
- The architecture of Image.
- created
At String - The create time of Image.
- description String
- The description of Image.
- image
Id String - The ID of Image.
- image
Name String - The name of Image.
- is
Support BooleanCloud Init - Whether the Image support cloud-init.
- os
Name String - The name of Image operating system.
- os
Type String - The operating system type of Image.
- platform String
- The platform of Image.
- platform
Version String - The platform version of Image.
- String
- The share mode of Image.
- size Number
- The size(GiB) of Image.
- status String
- A list of Image status, the value can be
available
orcreating
orerror
. - updated
At String - The update time of Image.
- visibility String
- The visibility of Image.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.