Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.servicecatalog.getProductVersions
Explore with Pulumi AI
This data source provides Service Catalog Product Version available to the user.What is Product Version
NOTE: Available in 1.196.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.servicecatalog.getProductVersions({
nameRegex: "1.0.0",
productId: "prod-bp125x4k29wb7q",
});
export const alicloudServiceCatalogProductVersionExampleId = _default.then(_default => _default.productVersions?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.servicecatalog.get_product_versions(name_regex="1.0.0",
product_id="prod-bp125x4k29wb7q")
pulumi.export("alicloudServiceCatalogProductVersionExampleId", default.product_versions[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/servicecatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := servicecatalog.GetProductVersions(ctx, &servicecatalog.GetProductVersionsArgs{
NameRegex: pulumi.StringRef("1.0.0"),
ProductId: "prod-bp125x4k29wb7q",
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudServiceCatalogProductVersionExampleId", _default.ProductVersions[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.ServiceCatalog.GetProductVersions.Invoke(new()
{
NameRegex = "1.0.0",
ProductId = "prod-bp125x4k29wb7q",
});
return new Dictionary<string, object?>
{
["alicloudServiceCatalogProductVersionExampleId"] = @default.Apply(@default => @default.Apply(getProductVersionsResult => getProductVersionsResult.ProductVersions[0]?.Id)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
import com.pulumi.alicloud.servicecatalog.inputs.GetProductVersionsArgs;
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 = ServicecatalogFunctions.getProductVersions(GetProductVersionsArgs.builder()
.nameRegex("1.0.0")
.productId("prod-bp125x4k29wb7q")
.build());
ctx.export("alicloudServiceCatalogProductVersionExampleId", default_.productVersions()[0].id());
}
}
variables:
default:
fn::invoke:
Function: alicloud:servicecatalog:getProductVersions
Arguments:
nameRegex: 1.0.0
productId: prod-bp125x4k29wb7q
outputs:
alicloudServiceCatalogProductVersionExampleId: ${default.productVersions[0].id}
Using getProductVersions
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 getProductVersions(args: GetProductVersionsArgs, opts?: InvokeOptions): Promise<GetProductVersionsResult>
function getProductVersionsOutput(args: GetProductVersionsOutputArgs, opts?: InvokeOptions): Output<GetProductVersionsResult>
def get_product_versions(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
product_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProductVersionsResult
def get_product_versions_output(enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
product_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProductVersionsResult]
func GetProductVersions(ctx *Context, args *GetProductVersionsArgs, opts ...InvokeOption) (*GetProductVersionsResult, error)
func GetProductVersionsOutput(ctx *Context, args *GetProductVersionsOutputArgs, opts ...InvokeOption) GetProductVersionsResultOutput
> Note: This function is named GetProductVersions
in the Go SDK.
public static class GetProductVersions
{
public static Task<GetProductVersionsResult> InvokeAsync(GetProductVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetProductVersionsResult> Invoke(GetProductVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProductVersionsResult> getProductVersions(GetProductVersionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:servicecatalog/getProductVersions:getProductVersions
arguments:
# arguments dictionary
The following arguments are supported:
- Product
Id string - Product ID
- Enable
Details bool - Ids List<string>
- A list of Product Version IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Product
Id string - Product ID
- Enable
Details bool - Ids []string
- A list of Product Version IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- product
Id String - Product ID
- enable
Details Boolean - ids List<String>
- A list of Product Version IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- product
Id string - Product ID
- enable
Details boolean - ids string[]
- A list of Product Version IDs.
- name
Regex string - A regex string to filter results by Group Metric Rule name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- product_
id str - Product ID
- enable_
details bool - ids Sequence[str]
- A list of Product Version IDs.
- name_
regex str - A regex string to filter results by Group Metric Rule name.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- product
Id String - Product ID
- enable
Details Boolean - ids List<String>
- A list of Product Version IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getProductVersions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Product Version IDs.
- Names List<string>
- A list of name of Product Versions.
- Product
Id string - Product
Versions List<Pulumi.Ali Cloud. Service Catalog. Outputs. Get Product Versions Product Version> - A list of Product Version Entries. Each element contains the following attributes:
- Versions
List<Pulumi.
Ali Cloud. Service Catalog. Outputs. Get Product Versions Version> - Enable
Details bool - Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Product Version IDs.
- Names []string
- A list of name of Product Versions.
- Product
Id string - Product
Versions []GetProduct Versions Product Version - A list of Product Version Entries. Each element contains the following attributes:
- Versions
[]Get
Product Versions Version - Enable
Details bool - Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Product Version IDs.
- names List<String>
- A list of name of Product Versions.
- product
Id String - product
Versions List<GetProduct Versions Product Version> - A list of Product Version Entries. Each element contains the following attributes:
- versions
List<Get
Product Versions Version> - enable
Details Boolean - name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Product Version IDs.
- names string[]
- A list of name of Product Versions.
- product
Id string - product
Versions GetProduct Versions Product Version[] - A list of Product Version Entries. Each element contains the following attributes:
- versions
Get
Product Versions Version[] - enable
Details boolean - name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Product Version IDs.
- names Sequence[str]
- A list of name of Product Versions.
- product_
id str - product_
versions Sequence[GetProduct Versions Product Version] - A list of Product Version Entries. Each element contains the following attributes:
- versions
Sequence[Get
Product Versions Version] - enable_
details bool - name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Product Version IDs.
- names List<String>
- A list of name of Product Versions.
- product
Id String - product
Versions List<Property Map> - A list of Product Version Entries. Each element contains the following attributes:
- versions List<Property Map>
- enable
Details Boolean - name
Regex String - output
File String
Supporting Types
GetProductVersionsProductVersion
- Active bool
- Whether the version is activated
- Create
Time string - The creation time of the resource
- Description string
- Version description
- Guidance string
- Administrator guidance
- Id string
- ID of product version.
- Product
Id string - Product ID
- Product
Version stringId - The first ID of the resource
- Product
Version stringName - The name of the resource
- Template
Type string - Template Type
- Template
Url string - Template URL
- Active bool
- Whether the version is activated
- Create
Time string - The creation time of the resource
- Description string
- Version description
- Guidance string
- Administrator guidance
- Id string
- ID of product version.
- Product
Id string - Product ID
- Product
Version stringId - The first ID of the resource
- Product
Version stringName - The name of the resource
- Template
Type string - Template Type
- Template
Url string - Template URL
- active Boolean
- Whether the version is activated
- create
Time String - The creation time of the resource
- description String
- Version description
- guidance String
- Administrator guidance
- id String
- ID of product version.
- product
Id String - Product ID
- product
Version StringId - The first ID of the resource
- product
Version StringName - The name of the resource
- template
Type String - Template Type
- template
Url String - Template URL
- active boolean
- Whether the version is activated
- create
Time string - The creation time of the resource
- description string
- Version description
- guidance string
- Administrator guidance
- id string
- ID of product version.
- product
Id string - Product ID
- product
Version stringId - The first ID of the resource
- product
Version stringName - The name of the resource
- template
Type string - Template Type
- template
Url string - Template URL
- active bool
- Whether the version is activated
- create_
time str - The creation time of the resource
- description str
- Version description
- guidance str
- Administrator guidance
- id str
- ID of product version.
- product_
id str - Product ID
- product_
version_ strid - The first ID of the resource
- product_
version_ strname - The name of the resource
- template_
type str - Template Type
- template_
url str - Template URL
- active Boolean
- Whether the version is activated
- create
Time String - The creation time of the resource
- description String
- Version description
- guidance String
- Administrator guidance
- id String
- ID of product version.
- product
Id String - Product ID
- product
Version StringId - The first ID of the resource
- product
Version StringName - The name of the resource
- template
Type String - Template Type
- template
Url String - Template URL
GetProductVersionsVersion
- Active bool
- Whether the version is activated
- Create
Time string - The creation time of the resource
- Description string
- Version description
- Guidance string
- Administrator guidance
- Id string
- ID of product version.
- Product
Id string - Product ID
- Product
Version stringId - The first ID of the resource
- Product
Version stringName - The name of the resource
- Template
Type string - Template Type
- Template
Url string - Template URL
- Active bool
- Whether the version is activated
- Create
Time string - The creation time of the resource
- Description string
- Version description
- Guidance string
- Administrator guidance
- Id string
- ID of product version.
- Product
Id string - Product ID
- Product
Version stringId - The first ID of the resource
- Product
Version stringName - The name of the resource
- Template
Type string - Template Type
- Template
Url string - Template URL
- active Boolean
- Whether the version is activated
- create
Time String - The creation time of the resource
- description String
- Version description
- guidance String
- Administrator guidance
- id String
- ID of product version.
- product
Id String - Product ID
- product
Version StringId - The first ID of the resource
- product
Version StringName - The name of the resource
- template
Type String - Template Type
- template
Url String - Template URL
- active boolean
- Whether the version is activated
- create
Time string - The creation time of the resource
- description string
- Version description
- guidance string
- Administrator guidance
- id string
- ID of product version.
- product
Id string - Product ID
- product
Version stringId - The first ID of the resource
- product
Version stringName - The name of the resource
- template
Type string - Template Type
- template
Url string - Template URL
- active bool
- Whether the version is activated
- create_
time str - The creation time of the resource
- description str
- Version description
- guidance str
- Administrator guidance
- id str
- ID of product version.
- product_
id str - Product ID
- product_
version_ strid - The first ID of the resource
- product_
version_ strname - The name of the resource
- template_
type str - Template Type
- template_
url str - Template URL
- active Boolean
- Whether the version is activated
- create
Time String - The creation time of the resource
- description String
- Version description
- guidance String
- Administrator guidance
- id String
- ID of product version.
- product
Id String - Product ID
- product
Version StringId - The first ID of the resource
- product
Version StringName - The name of the resource
- template
Type String - Template Type
- template
Url String - Template URL
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.