Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.servicemesh.getVersions
Explore with Pulumi AI
This data source provides ASM available versions in the specified region.
NOTE: Available in v1.161.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.servicemesh.getVersions({
edition: "Default",
});
export const serviceMeshVersion = versions[0].version;
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.servicemesh.get_versions(edition="Default")
pulumi.export("serviceMeshVersion", versions[0]["version"])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/servicemesh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicemesh.GetVersions(ctx, &servicemesh.GetVersionsArgs{
Edition: pulumi.StringRef("Default"),
}, nil)
if err != nil {
return err
}
ctx.Export("serviceMeshVersion", versions[0].Version)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.ServiceMesh.GetVersions.Invoke(new()
{
Edition = "Default",
});
return new Dictionary<string, object?>
{
["serviceMeshVersion"] = versions[0].Version,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.servicemesh.ServicemeshFunctions;
import com.pulumi.alicloud.servicemesh.inputs.GetVersionsArgs;
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 default = ServicemeshFunctions.getVersions(GetVersionsArgs.builder()
.edition("Default")
.build());
ctx.export("serviceMeshVersion", versions[0].version());
}
}
variables:
default:
fn::invoke:
Function: alicloud:servicemesh:getVersions
Arguments:
edition: Default
outputs:
serviceMeshVersion: ${versions[0].version}
Using getVersions
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 getVersions(args: GetVersionsArgs, opts?: InvokeOptions): Promise<GetVersionsResult>
function getVersionsOutput(args: GetVersionsOutputArgs, opts?: InvokeOptions): Output<GetVersionsResult>
def get_versions(edition: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVersionsResult
def get_versions_output(edition: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVersionsResult]
func GetVersions(ctx *Context, args *GetVersionsArgs, opts ...InvokeOption) (*GetVersionsResult, error)
func GetVersionsOutput(ctx *Context, args *GetVersionsOutputArgs, opts ...InvokeOption) GetVersionsResultOutput
> Note: This function is named GetVersions
in the Go SDK.
public static class GetVersions
{
public static Task<GetVersionsResult> InvokeAsync(GetVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetVersionsResult> Invoke(GetVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVersionsResult> getVersions(GetVersionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:servicemesh/getVersions:getVersions
arguments:
# arguments dictionary
The following arguments are supported:
- Edition string
- The edition of the ASM instance. Valid values:
- Default: Standard Edition
- Pro: Professional Edition
- Ids List<string>
- A list of ASM versions. Its element formats as
<edition>:<version>
. - Output
File string - File name where to save data source results (after running
pulumi preview
).
- Edition string
- The edition of the ASM instance. Valid values:
- Default: Standard Edition
- Pro: Professional Edition
- Ids []string
- A list of ASM versions. Its element formats as
<edition>:<version>
. - Output
File string - File name where to save data source results (after running
pulumi preview
).
- edition String
- The edition of the ASM instance. Valid values:
- Default: Standard Edition
- Pro: Professional Edition
- ids List<String>
- A list of ASM versions. Its element formats as
<edition>:<version>
. - output
File String - File name where to save data source results (after running
pulumi preview
).
- edition string
- The edition of the ASM instance. Valid values:
- Default: Standard Edition
- Pro: Professional Edition
- ids string[]
- A list of ASM versions. Its element formats as
<edition>:<version>
. - output
File string - File name where to save data source results (after running
pulumi preview
).
- edition str
- The edition of the ASM instance. Valid values:
- Default: Standard Edition
- Pro: Professional Edition
- ids Sequence[str]
- A list of ASM versions. Its element formats as
<edition>:<version>
. - output_
file str - File name where to save data source results (after running
pulumi preview
).
- edition String
- The edition of the ASM instance. Valid values:
- Default: Standard Edition
- Pro: Professional Edition
- ids List<String>
- A list of ASM versions. Its element formats as
<edition>:<version>
. - output
File String - File name where to save data source results (after running
pulumi preview
).
getVersions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Versions
List<Pulumi.
Ali Cloud. Service Mesh. Outputs. Get Versions Version> - Edition string
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Versions
[]Get
Versions Version - Edition string
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- versions
List<Get
Versions Version> - edition String
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- versions
Get
Versions Version[] - edition string
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- versions
Sequence[Get
Versions Version] - edition str
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- versions List<Property Map>
- edition String
- output
File String
Supporting Types
GetVersionsVersion
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.