Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.simpleapplicationserver.getImages
Explore with Pulumi AI
This data source provides the Simple Application Server Images of the current Alibaba Cloud user.
NOTE: Available in v1.135.0+.
Example Usage
Basic Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.simpleapplicationserver.SimpleapplicationserverFunctions;
import com.pulumi.alicloud.simpleapplicationserver.inputs.GetImagesArgs;
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 instanceImageType = SimpleapplicationserverFunctions.getImages(GetImagesArgs.builder()
.instanceImageType("system")
.build());
ctx.export("simpleApplicationServerImageId1", ids.images()[0].id());
}
}
variables:
instanceImageType:
fn::invoke:
Function: alicloud:simpleapplicationserver:getImages
Arguments:
instanceImageType: system
outputs:
simpleApplicationServerImageId1: ${ids.images[0].id}
The following arguments are supported:
ids
- (Optional, ForceNew, Computed) A list of Image IDs.image_type
- (Optional, ForceNew) The image type. Valid values:app
,custom
,system
.name_regex
- (Optional, ForceNew) A regex string to filter results by Image name.platform
- (Available in v1.161.0) The platform of Image supported. Valid values: [“Linux”, “Windows”].output_file
- (Optional) File name where to save data source results (after runningpulumi preview
).
Using getImages
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 getImages(args: GetImagesArgs, opts?: InvokeOptions): Promise<GetImagesResult>
function getImagesOutput(args: GetImagesOutputArgs, opts?: InvokeOptions): Output<GetImagesResult>
def get_images(ids: Optional[Sequence[str]] = None,
image_type: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
platform: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImagesResult
def get_images_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
image_type: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
platform: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImagesResult]
func GetImages(ctx *Context, args *GetImagesArgs, opts ...InvokeOption) (*GetImagesResult, error)
func GetImagesOutput(ctx *Context, args *GetImagesOutputArgs, opts ...InvokeOption) GetImagesResultOutput
> Note: This function is named GetImages
in the Go SDK.
public static class GetImages
{
public static Task<GetImagesResult> InvokeAsync(GetImagesArgs args, InvokeOptions? opts = null)
public static Output<GetImagesResult> Invoke(GetImagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImagesResult> getImages(GetImagesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:simpleapplicationserver/getImages:getImages
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- Image
Type string - Name
Regex string - Output
File string - Platform string
- Ids []string
- Image
Type string - Name
Regex string - Output
File string - Platform string
- ids List<String>
- image
Type String - name
Regex String - output
File String - platform String
- ids string[]
- image
Type string - name
Regex string - output
File string - platform string
- ids Sequence[str]
- image_
type str - name_
regex str - output_
file str - platform str
- ids List<String>
- image
Type String - name
Regex String - output
File String - platform String
getImages Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Images
List<Pulumi.
Ali Cloud. Simple Application Server. Outputs. Get Images Image> - Names List<string>
- Image
Type string - Name
Regex string - Output
File string - Platform string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Images
[]Get
Images Image - Names []string
- Image
Type string - Name
Regex string - Output
File string - Platform string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- images
List<Get
Images Image> - names List<String>
- image
Type String - name
Regex String - output
File String - platform String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- images
Get
Images Image[] - names string[]
- image
Type string - name
Regex string - output
File string - platform string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- images
Sequence[Get
Images Image] - names Sequence[str]
- image_
type str - name_
regex str - output_
file str - platform str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- images List<Property Map>
- names List<String>
- image
Type String - name
Regex String - output
File String - platform String
Supporting Types
GetImagesImage
- description str
- The description of the image.
- id str
- The ID of the Instance Image.
- image_
id str - The ID of the image.
- image_
name str - The name of the resource.
- image_
type str - The type of the image. Valid values:
app
,custom
,system
. - platform str
- The platform of Plan supported.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.