1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. bss
  5. getOpenApiPricingModules
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.bss.getOpenApiPricingModules

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    This data source provides Bss Open Api Pricing Module available to the user.What is Pricing Module

    NOTE: Available in 1.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:bss/getOpenApiPricingModules:getOpenApiPricingModules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProductCode string
    The product code.
    SubscriptionType string
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    Ids List<string>
    NameRegex string
    A regex string to filter results by Property name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ProductType string
    The product type.
    ProductCode string
    The product code.
    SubscriptionType string
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    Ids []string
    NameRegex string
    A regex string to filter results by Property name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ProductType string
    The product type.
    productCode String
    The product code.
    subscriptionType String
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    ids List<String>
    nameRegex String
    A regex string to filter results by Property name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    productType String
    The product type.
    productCode string
    The product code.
    subscriptionType string
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    ids string[]
    nameRegex string
    A regex string to filter results by Property name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    productType 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.
    productCode String
    The product code.
    subscriptionType String
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    ids List<String>
    nameRegex String
    A regex string to filter results by Property name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    productType 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.AliCloud.Bss.Outputs.GetOpenApiPricingModulesModule>
    A list of Pricing Module Entries. Each element contains the following attributes:
    Names List<string>
    A list of name of Pricing Modules.
    ProductCode string
    SubscriptionType string
    NameRegex string
    OutputFile string
    ProductType string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Modules []GetOpenApiPricingModulesModule
    A list of Pricing Module Entries. Each element contains the following attributes:
    Names []string
    A list of name of Pricing Modules.
    ProductCode string
    SubscriptionType string
    NameRegex string
    OutputFile string
    ProductType string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    modules List<GetOpenApiPricingModulesModule>
    A list of Pricing Module Entries. Each element contains the following attributes:
    names List<String>
    A list of name of Pricing Modules.
    productCode String
    subscriptionType String
    nameRegex String
    outputFile String
    productType String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    modules GetOpenApiPricingModulesModule[]
    A list of Pricing Module Entries. Each element contains the following attributes:
    names string[]
    A list of name of Pricing Modules.
    productCode string
    subscriptionType string
    nameRegex string
    outputFile string
    productType string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    modules Sequence[GetOpenApiPricingModulesModule]
    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.
    productCode String
    subscriptionType String
    nameRegex String
    outputFile String
    productType String

    Supporting Types

    GetOpenApiPricingModulesModule

    Code string
    Property Code.
    Id string
    A list of Price Module IDs.
    PricingModuleName string
    Attribute name.
    ProductCode string
    The product code.
    ProductType string
    The product type.
    SubscriptionType string
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    Unit string
    Attribute unit.
    Values List<Pulumi.AliCloud.Bss.Inputs.GetOpenApiPricingModulesModuleValue>
    Property.
    Code string
    Property Code.
    Id string
    A list of Price Module IDs.
    PricingModuleName string
    Attribute name.
    ProductCode string
    The product code.
    ProductType string
    The product type.
    SubscriptionType string
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    Unit string
    Attribute unit.
    Values []GetOpenApiPricingModulesModuleValue
    Property.
    code String
    Property Code.
    id String
    A list of Price Module IDs.
    pricingModuleName String
    Attribute name.
    productCode String
    The product code.
    productType String
    The product type.
    subscriptionType String
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    unit String
    Attribute unit.
    values List<GetOpenApiPricingModulesModuleValue>
    Property.
    code string
    Property Code.
    id string
    A list of Price Module IDs.
    pricingModuleName string
    Attribute name.
    productCode string
    The product code.
    productType string
    The product type.
    subscriptionType string
    Subscription type. Value:

    • Subscription: Prepaid.
    • PayAsYouGo: postpaid.
    unit string
    Attribute unit.
    values GetOpenApiPricingModulesModuleValue[]
    Property.
    code str
    Property Code.
    id str
    A list of Price Module IDs.
    pricing_module_name str
    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[GetOpenApiPricingModulesModuleValue]
    Property.
    code String
    Property Code.
    id String
    A list of Price Module IDs.
    pricingModuleName String
    Attribute name.
    productCode String
    The product code.
    productType String
    The product type.
    subscriptionType 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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi