published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
This data source provides Bss Open Api Pricing Module available to the user.What is Pricing Module
NOTE: Available since v1.195.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.bss.getOpenApiPricingModules({
nameRegex: "国内月均日峰值带宽",
productCode: "cdn",
productType: "CDN",
subscriptionType: "PayAsYouGo",
});
export const alicloudBssOpenapiPricingModuleExampleId = _default.then(_default => _default.modules?.[0]?.code);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.bss.get_open_api_pricing_modules(name_regex="国内月均日峰值带宽",
product_code="cdn",
product_type="CDN",
subscription_type="PayAsYouGo")
pulumi.export("alicloudBssOpenapiPricingModuleExampleId", default.modules[0].code)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/bss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := bss.GetOpenApiPricingModules(ctx, &bss.GetOpenApiPricingModulesArgs{
NameRegex: pulumi.StringRef("国内月均日峰值带宽"),
ProductCode: "cdn",
ProductType: pulumi.StringRef("CDN"),
SubscriptionType: "PayAsYouGo",
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudBssOpenapiPricingModuleExampleId", _default.Modules[0].Code)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Bss.GetOpenApiPricingModules.Invoke(new()
{
NameRegex = "国内月均日峰值带宽",
ProductCode = "cdn",
ProductType = "CDN",
SubscriptionType = "PayAsYouGo",
});
return new Dictionary<string, object?>
{
["alicloudBssOpenapiPricingModuleExampleId"] = @default.Apply(@default => @default.Apply(getOpenApiPricingModulesResult => getOpenApiPricingModulesResult.Modules[0]?.Code)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.bss.BssFunctions;
import com.pulumi.alicloud.bss.inputs.GetOpenApiPricingModulesArgs;
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 = BssFunctions.getOpenApiPricingModules(GetOpenApiPricingModulesArgs.builder()
.nameRegex("国内月均日峰值带宽")
.productCode("cdn")
.productType("CDN")
.subscriptionType("PayAsYouGo")
.build());
ctx.export("alicloudBssOpenapiPricingModuleExampleId", default_.modules()[0].code());
}
}
variables:
default:
fn::invoke:
function: alicloud:bss:getOpenApiPricingModules
arguments:
nameRegex: 国内月均日峰值带宽
productCode: cdn
productType: CDN
subscriptionType: PayAsYouGo
outputs:
alicloudBssOpenapiPricingModuleExampleId: ${default.modules[0].code}
Using getOpenApiPricingModules
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 getOpenApiPricingModules(args: GetOpenApiPricingModulesArgs, opts?: InvokeOptions): Promise<GetOpenApiPricingModulesResult>
function getOpenApiPricingModulesOutput(args: GetOpenApiPricingModulesOutputArgs, opts?: InvokeOptions): Output<GetOpenApiPricingModulesResult>def get_open_api_pricing_modules(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
product_code: Optional[str] = None,
product_type: Optional[str] = None,
subscription_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOpenApiPricingModulesResult
def get_open_api_pricing_modules_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
product_code: Optional[pulumi.Input[str]] = None,
product_type: Optional[pulumi.Input[str]] = None,
subscription_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOpenApiPricingModulesResult]func GetOpenApiPricingModules(ctx *Context, args *GetOpenApiPricingModulesArgs, opts ...InvokeOption) (*GetOpenApiPricingModulesResult, error)
func GetOpenApiPricingModulesOutput(ctx *Context, args *GetOpenApiPricingModulesOutputArgs, opts ...InvokeOption) GetOpenApiPricingModulesResultOutput> Note: This function is named GetOpenApiPricingModules in the Go SDK.
public static class GetOpenApiPricingModules
{
public static Task<GetOpenApiPricingModulesResult> InvokeAsync(GetOpenApiPricingModulesArgs args, InvokeOptions? opts = null)
public static Output<GetOpenApiPricingModulesResult> Invoke(GetOpenApiPricingModulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOpenApiPricingModulesResult> getOpenApiPricingModules(GetOpenApiPricingModulesArgs args, InvokeOptions options)
public static Output<GetOpenApiPricingModulesResult> getOpenApiPricingModules(GetOpenApiPricingModulesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:bss/getOpenApiPricingModules:getOpenApiPricingModules
arguments:
# arguments dictionaryThe following arguments are supported:
- Product
Code string - The product code.
- Subscription
Type string - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- Ids List<string>
- Name
Regex string - A regex string to filter results by Property name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Product
Type string - The product type.
- Product
Code string - The product code.
- Subscription
Type string - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- Ids []string
- Name
Regex string - A regex string to filter results by Property name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Product
Type string - The product type.
- product
Code String - The product code.
- subscription
Type String - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- ids List<String>
- name
Regex String - A regex string to filter results by Property name.
- output
File String - File name where to save data source results (after running
pulumi preview). - product
Type String - The product type.
- product
Code string - The product code.
- subscription
Type string - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- ids string[]
- name
Regex string - A regex string to filter results by Property name.
- output
File string - File name where to save data source results (after running
pulumi preview). - product
Type string - The product type.
- product_
code str - The product code.
- subscription_
type str - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- ids Sequence[str]
- name_
regex str - A regex string to filter results by Property name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - product_
type str - The product type.
- product
Code String - The product code.
- subscription
Type String - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- ids List<String>
- name
Regex String - A regex string to filter results by Property name.
- output
File String - File name where to save data source results (after running
pulumi preview). - product
Type String - The product type.
getOpenApiPricingModules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Modules
List<Pulumi.
Ali Cloud. Bss. Outputs. Get Open Api Pricing Modules Module> - A list of Pricing Module Entries. Each element contains the following attributes:
- Names List<string>
- A list of name of Pricing Modules.
- Product
Code string - Subscription
Type string - Name
Regex string - Output
File string - Product
Type string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Modules
[]Get
Open Api Pricing Modules Module - A list of Pricing Module Entries. Each element contains the following attributes:
- Names []string
- A list of name of Pricing Modules.
- Product
Code string - Subscription
Type string - Name
Regex string - Output
File string - Product
Type string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- modules
List<Get
Open Api Pricing Modules Module> - A list of Pricing Module Entries. Each element contains the following attributes:
- names List<String>
- A list of name of Pricing Modules.
- product
Code String - subscription
Type String - name
Regex String - output
File String - product
Type String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- modules
Get
Open Api Pricing Modules Module[] - A list of Pricing Module Entries. Each element contains the following attributes:
- names string[]
- A list of name of Pricing Modules.
- product
Code string - subscription
Type string - name
Regex string - output
File string - product
Type string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- modules
Sequence[Get
Open Api Pricing Modules Module] - A list of Pricing Module Entries. Each element contains the following attributes:
- names Sequence[str]
- A list of name of Pricing Modules.
- product_
code str - subscription_
type str - name_
regex str - output_
file str - product_
type str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- modules List<Property Map>
- A list of Pricing Module Entries. Each element contains the following attributes:
- names List<String>
- A list of name of Pricing Modules.
- product
Code String - subscription
Type String - name
Regex String - output
File String - product
Type String
Supporting Types
GetOpenApiPricingModulesModule
- Code string
- Property Code.
- Id string
- A list of Price Module IDs.
- Pricing
Module stringName - Attribute name.
- Product
Code string - The product code.
- Product
Type string - The product type.
- Subscription
Type string - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- Unit string
- Attribute unit.
- Values
List<Pulumi.
Ali Cloud. Bss. Inputs. Get Open Api Pricing Modules Module Value> - Property.
- Code string
- Property Code.
- Id string
- A list of Price Module IDs.
- Pricing
Module stringName - Attribute name.
- Product
Code string - The product code.
- Product
Type string - The product type.
- Subscription
Type string - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- Unit string
- Attribute unit.
- Values
[]Get
Open Api Pricing Modules Module Value - Property.
- code String
- Property Code.
- id String
- A list of Price Module IDs.
- pricing
Module StringName - Attribute name.
- product
Code String - The product code.
- product
Type String - The product type.
- subscription
Type String - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- unit String
- Attribute unit.
- values
List<Get
Open Api Pricing Modules Module Value> - Property.
- code string
- Property Code.
- id string
- A list of Price Module IDs.
- pricing
Module stringName - Attribute name.
- product
Code string - The product code.
- product
Type string - The product type.
- subscription
Type string - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- unit string
- Attribute unit.
- values
Get
Open Api Pricing Modules Module Value[] - Property.
- code str
- Property Code.
- id str
- A list of Price Module IDs.
- pricing_
module_ strname - Attribute name.
- product_
code str - The product code.
- product_
type str - The product type.
- subscription_
type str - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- unit str
- Attribute unit.
- values
Sequence[Get
Open Api Pricing Modules Module Value] - Property.
- code String
- Property Code.
- id String
- A list of Price Module IDs.
- pricing
Module StringName - Attribute name.
- product
Code String - The product code.
- product
Type String - The product type.
- subscription
Type String - Subscription type. Value:
- Subscription: Prepaid.
- PayAsYouGo: postpaid.
- unit String
- Attribute unit.
- values List<Property Map>
- Property.
GetOpenApiPricingModulesModuleValue
- Name string
- The module Code corresponds to the attribute value.
- Remark string
- Module value description information.
- Type string
- The attribute value type corresponding to the module Code. Value:
- single_float: single value type.
- range_float: range value type.
- Value string
The module Code corresponds to the attribute value.
format 1024-1024000 when Type = range_float: 1024 means from 1024 to 1024000, step size 1024.
- Name string
- The module Code corresponds to the attribute value.
- Remark string
- Module value description information.
- Type string
- The attribute value type corresponding to the module Code. Value:
- single_float: single value type.
- range_float: range value type.
- Value string
The module Code corresponds to the attribute value.
format 1024-1024000 when Type = range_float: 1024 means from 1024 to 1024000, step size 1024.
- name String
- The module Code corresponds to the attribute value.
- remark String
- Module value description information.
- type String
- The attribute value type corresponding to the module Code. Value:
- single_float: single value type.
- range_float: range value type.
- value String
The module Code corresponds to the attribute value.
format 1024-1024000 when Type = range_float: 1024 means from 1024 to 1024000, step size 1024.
- name string
- The module Code corresponds to the attribute value.
- remark string
- Module value description information.
- type string
- The attribute value type corresponding to the module Code. Value:
- single_float: single value type.
- range_float: range value type.
- value string
The module Code corresponds to the attribute value.
format 1024-1024000 when Type = range_float: 1024 means from 1024 to 1024000, step size 1024.
- name str
- The module Code corresponds to the attribute value.
- remark str
- Module value description information.
- type str
- The attribute value type corresponding to the module Code. Value:
- single_float: single value type.
- range_float: range value type.
- value str
The module Code corresponds to the attribute value.
format 1024-1024000 when Type = range_float: 1024 means from 1024 to 1024000, step size 1024.
- name String
- The module Code corresponds to the attribute value.
- remark String
- Module value description information.
- type String
- The attribute value type corresponding to the module Code. Value:
- single_float: single value type.
- range_float: range value type.
- value String
The module Code corresponds to the attribute value.
format 1024-1024000 when Type = range_float: 1024 means from 1024 to 1024000, step size 1024.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Saturday, Mar 14, 2026 by Pulumi
