Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
This data source provides Cloud Control Product available to the user.What is Product
NOTE: Available since v1.241.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.cloudcontrol.getProducts({
ids: ["VPC"],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.cloudcontrol.get_products(ids=["VPC"])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudcontrol"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := cloudcontrol.GetProducts(ctx, &cloudcontrol.GetProductsArgs{
Ids: []string{
"VPC",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.CloudControl.GetProducts.Invoke(new()
{
Ids = new[]
{
"VPC",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudcontrol.CloudcontrolFunctions;
import com.pulumi.alicloud.cloudcontrol.inputs.GetProductsArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var default = CloudcontrolFunctions.getProducts(GetProductsArgs.builder()
.ids("VPC")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
variables:
default:
fn::invoke:
function: alicloud:cloudcontrol:getProducts
arguments:
ids:
- VPC
Using getProducts
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 getProducts(args: GetProductsArgs, opts?: InvokeOptions): Promise<GetProductsResult>
function getProductsOutput(args: GetProductsOutputArgs, opts?: InvokeOptions): Output<GetProductsResult>def get_products(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProductsResult
def get_products_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProductsResult]func GetProducts(ctx *Context, args *GetProductsArgs, opts ...InvokeOption) (*GetProductsResult, error)
func GetProductsOutput(ctx *Context, args *GetProductsOutputArgs, opts ...InvokeOption) GetProductsResultOutput> Note: This function is named GetProducts in the Go SDK.
public static class GetProducts
{
public static Task<GetProductsResult> InvokeAsync(GetProductsArgs args, InvokeOptions? opts = null)
public static Output<GetProductsResult> Invoke(GetProductsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProductsResult> getProducts(GetProductsArgs args, InvokeOptions options)
public static Output<GetProductsResult> getProducts(GetProductsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:cloudcontrol/getProducts:getProducts
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Product 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).
- Ids []string
- A list of Product 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).
- ids List<String>
- A list of Product 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).
- ids string[]
- A list of Product 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).
- ids Sequence[str]
- A list of Product 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).
- ids List<String>
- A list of Product 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).
getProducts 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 IDs.
- Names List<string>
- A list of name of Products.
- Products
List<Pulumi.
Ali Cloud. Cloud Control. Outputs. Get Products Product> - A list of Product Entries. Each element contains the following attributes:
- Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Product IDs.
- Names []string
- A list of name of Products.
- Products
[]Get
Products Product - A list of Product Entries. Each element contains the following attributes:
- Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Product IDs.
- names List<String>
- A list of name of Products.
- products
List<Get
Products Product> - A list of Product Entries. Each element contains the following attributes:
- name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Product IDs.
- names string[]
- A list of name of Products.
- products
Get
Products Product[] - A list of Product Entries. Each element contains the following attributes:
- name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Product IDs.
- names Sequence[str]
- A list of name of Products.
- products
Sequence[Get
Products Product] - A list of Product Entries. Each element contains the following attributes:
- name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Product IDs.
- names List<String>
- A list of name of Products.
- products List<Property Map>
- A list of Product Entries. Each element contains the following attributes:
- name
Regex String - output
File String
Supporting Types
GetProductsProduct
- Id string
- The ID of the resource supplied above.
- Product
Code string - The first ID of the resource
- Product
Name string - The name of the resource
- Id string
- The ID of the resource supplied above.
- Product
Code string - The first ID of the resource
- Product
Name string - The name of the resource
- id String
- The ID of the resource supplied above.
- product
Code String - The first ID of the resource
- product
Name String - The name of the resource
- id string
- The ID of the resource supplied above.
- product
Code string - The first ID of the resource
- product
Name string - The name of the resource
- id str
- The ID of the resource supplied above.
- product_
code str - The first ID of the resource
- product_
name str - The name of the resource
- id String
- The ID of the resource supplied above.
- product
Code String - The first ID of the resource
- product
Name String - The name of the resource
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
