Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.ecs.AvailableResources
Explore with Pulumi AI
Use this data source to query detailed information of ecs available resources
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.ecs.AvailableResources({
    destinationResource: "InstanceType",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ecs.available_resources(destination_resource="InstanceType")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ecs.AvailableResources(ctx, &ecs.AvailableResourcesArgs{
			DestinationResource: "InstanceType",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var foo = Volcengine.Ecs.AvailableResources.Invoke(new()
    {
        DestinationResource = "InstanceType",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.AvailableResourcesArgs;
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 foo = EcsFunctions.AvailableResources(AvailableResourcesArgs.builder()
            .destinationResource("InstanceType")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      Function: volcengine:ecs:AvailableResources
      Arguments:
        destinationResource: InstanceType
Using AvailableResources
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 availableResources(args: AvailableResourcesArgs, opts?: InvokeOptions): Promise<AvailableResourcesResult>
function availableResourcesOutput(args: AvailableResourcesOutputArgs, opts?: InvokeOptions): Output<AvailableResourcesResult>def available_resources(destination_resource: Optional[str] = None,
                        instance_charge_type: Optional[str] = None,
                        instance_type_id: Optional[str] = None,
                        output_file: Optional[str] = None,
                        spot_strategy: Optional[str] = None,
                        zone_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> AvailableResourcesResult
def available_resources_output(destination_resource: Optional[pulumi.Input[str]] = None,
                        instance_charge_type: Optional[pulumi.Input[str]] = None,
                        instance_type_id: Optional[pulumi.Input[str]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        spot_strategy: Optional[pulumi.Input[str]] = None,
                        zone_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[AvailableResourcesResult]func AvailableResources(ctx *Context, args *AvailableResourcesArgs, opts ...InvokeOption) (*AvailableResourcesResult, error)
func AvailableResourcesOutput(ctx *Context, args *AvailableResourcesOutputArgs, opts ...InvokeOption) AvailableResourcesResultOutputpublic static class AvailableResources 
{
    public static Task<AvailableResourcesResult> InvokeAsync(AvailableResourcesArgs args, InvokeOptions? opts = null)
    public static Output<AvailableResourcesResult> Invoke(AvailableResourcesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<AvailableResourcesResult> availableResources(AvailableResourcesArgs args, InvokeOptions options)
public static Output<AvailableResourcesResult> availableResources(AvailableResourcesArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:ecs:AvailableResources
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DestinationResource string
- The type of resource to query. Valid values: InstanceType,DedicatedHost.
- InstanceCharge stringType 
- The charge type of instance. Valid values: PostPaid,PrePaid,ReservedInstance. Default isPostPaid.
- InstanceType stringId 
- The id of instance type.
- OutputFile string
- File name where to save data source results.
- SpotStrategy string
- The spot strategy of PostPaid instance. Valid values: NoSpot,SpotAsPriceGo. Default isNoSpot.
- ZoneId string
- The id of available zone.
- DestinationResource string
- The type of resource to query. Valid values: InstanceType,DedicatedHost.
- InstanceCharge stringType 
- The charge type of instance. Valid values: PostPaid,PrePaid,ReservedInstance. Default isPostPaid.
- InstanceType stringId 
- The id of instance type.
- OutputFile string
- File name where to save data source results.
- SpotStrategy string
- The spot strategy of PostPaid instance. Valid values: NoSpot,SpotAsPriceGo. Default isNoSpot.
- ZoneId string
- The id of available zone.
- destinationResource String
- The type of resource to query. Valid values: InstanceType,DedicatedHost.
- instanceCharge StringType 
- The charge type of instance. Valid values: PostPaid,PrePaid,ReservedInstance. Default isPostPaid.
- instanceType StringId 
- The id of instance type.
- outputFile String
- File name where to save data source results.
- spotStrategy String
- The spot strategy of PostPaid instance. Valid values: NoSpot,SpotAsPriceGo. Default isNoSpot.
- zoneId String
- The id of available zone.
- destinationResource string
- The type of resource to query. Valid values: InstanceType,DedicatedHost.
- instanceCharge stringType 
- The charge type of instance. Valid values: PostPaid,PrePaid,ReservedInstance. Default isPostPaid.
- instanceType stringId 
- The id of instance type.
- outputFile string
- File name where to save data source results.
- spotStrategy string
- The spot strategy of PostPaid instance. Valid values: NoSpot,SpotAsPriceGo. Default isNoSpot.
- zoneId string
- The id of available zone.
- destination_resource str
- The type of resource to query. Valid values: InstanceType,DedicatedHost.
- instance_charge_ strtype 
- The charge type of instance. Valid values: PostPaid,PrePaid,ReservedInstance. Default isPostPaid.
- instance_type_ strid 
- The id of instance type.
- output_file str
- File name where to save data source results.
- spot_strategy str
- The spot strategy of PostPaid instance. Valid values: NoSpot,SpotAsPriceGo. Default isNoSpot.
- zone_id str
- The id of available zone.
- destinationResource String
- The type of resource to query. Valid values: InstanceType,DedicatedHost.
- instanceCharge StringType 
- The charge type of instance. Valid values: PostPaid,PrePaid,ReservedInstance. Default isPostPaid.
- instanceType StringId 
- The id of instance type.
- outputFile String
- File name where to save data source results.
- spotStrategy String
- The spot strategy of PostPaid instance. Valid values: NoSpot,SpotAsPriceGo. Default isNoSpot.
- zoneId String
- The id of available zone.
AvailableResources Result
The following output properties are available:
- AvailableZones List<AvailableResources Available Zone> 
- The collection of query.
- DestinationResource string
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- InstanceCharge stringType 
- InstanceType stringId 
- OutputFile string
- SpotStrategy string
- ZoneId string
- The id of the available zone.
- AvailableZones []AvailableResources Available Zone 
- The collection of query.
- DestinationResource string
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- InstanceCharge stringType 
- InstanceType stringId 
- OutputFile string
- SpotStrategy string
- ZoneId string
- The id of the available zone.
- availableZones List<AvailableResources Available Zone> 
- The collection of query.
- destinationResource String
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Integer
- The total count of query.
- instanceCharge StringType 
- instanceType StringId 
- outputFile String
- spotStrategy String
- zoneId String
- The id of the available zone.
- availableZones AvailableResources Available Zone[] 
- The collection of query.
- destinationResource string
- id string
- The provider-assigned unique ID for this managed resource.
- totalCount number
- The total count of query.
- instanceCharge stringType 
- instanceType stringId 
- outputFile string
- spotStrategy string
- zoneId string
- The id of the available zone.
- available_zones Sequence[AvailableResources Available Zone] 
- The collection of query.
- destination_resource str
- id str
- The provider-assigned unique ID for this managed resource.
- total_count int
- The total count of query.
- instance_charge_ strtype 
- instance_type_ strid 
- output_file str
- spot_strategy str
- zone_id str
- The id of the available zone.
- availableZones List<Property Map>
- The collection of query.
- destinationResource String
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Number
- The total count of query.
- instanceCharge StringType 
- instanceType StringId 
- outputFile String
- spotStrategy String
- zoneId String
- The id of the available zone.
Supporting Types
AvailableResourcesAvailableZone   
- AvailableResources List<AvailableResources Available Zone Available Resource> 
- The resource information of the available zone.
- RegionId string
- The id of the region.
- Status string
- The resource status of the available zone. Valid values: Available,SoldOut.
- ZoneId string
- The id of available zone.
- AvailableResources []AvailableResources Available Zone Available Resource 
- The resource information of the available zone.
- RegionId string
- The id of the region.
- Status string
- The resource status of the available zone. Valid values: Available,SoldOut.
- ZoneId string
- The id of available zone.
- availableResources List<AvailableResources Available Zone Available Resource> 
- The resource information of the available zone.
- regionId String
- The id of the region.
- status String
- The resource status of the available zone. Valid values: Available,SoldOut.
- zoneId String
- The id of available zone.
- availableResources AvailableResources Available Zone Available Resource[] 
- The resource information of the available zone.
- regionId string
- The id of the region.
- status string
- The resource status of the available zone. Valid values: Available,SoldOut.
- zoneId string
- The id of available zone.
- available_resources Sequence[AvailableResources Available Zone Available Resource] 
- The resource information of the available zone.
- region_id str
- The id of the region.
- status str
- The resource status of the available zone. Valid values: Available,SoldOut.
- zone_id str
- The id of available zone.
- availableResources List<Property Map>
- The resource information of the available zone.
- regionId String
- The id of the region.
- status String
- The resource status of the available zone. Valid values: Available,SoldOut.
- zoneId String
- The id of available zone.
AvailableResourcesAvailableZoneAvailableResource     
- SupportedResources List<AvailableResources Available Zone Available Resource Supported Resource> 
- The supported resource information.
- Type string
- The type of resource. Valid values: InstanceType,DedicatedHost.
- SupportedResources []AvailableResources Available Zone Available Resource Supported Resource 
- The supported resource information.
- Type string
- The type of resource. Valid values: InstanceType,DedicatedHost.
- supportedResources List<AvailableResources Available Zone Available Resource Supported Resource> 
- The supported resource information.
- type String
- The type of resource. Valid values: InstanceType,DedicatedHost.
- supportedResources AvailableResources Available Zone Available Resource Supported Resource[] 
- The supported resource information.
- type string
- The type of resource. Valid values: InstanceType,DedicatedHost.
- supported_resources Sequence[AvailableResources Available Zone Available Resource Supported Resource] 
- The supported resource information.
- type str
- The type of resource. Valid values: InstanceType,DedicatedHost.
- supportedResources List<Property Map>
- The supported resource information.
- type String
- The type of resource. Valid values: InstanceType,DedicatedHost.
AvailableResourcesAvailableZoneAvailableResourceSupportedResource       
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.