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) AvailableResourcesResultOutput
public 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 dictionary
The following arguments are supported:
- Destination
Resource string - The type of resource to query. Valid values:
InstanceType
,DedicatedHost
. - Instance
Charge stringType - The charge type of instance. Valid values:
PostPaid
,PrePaid
,ReservedInstance
. Default isPostPaid
. - Instance
Type stringId - The id of instance type.
- Output
File string - File name where to save data source results.
- Spot
Strategy string - The spot strategy of PostPaid instance. Valid values:
NoSpot
,SpotAsPriceGo
. Default isNoSpot
. - Zone
Id string - The id of available zone.
- Destination
Resource string - The type of resource to query. Valid values:
InstanceType
,DedicatedHost
. - Instance
Charge stringType - The charge type of instance. Valid values:
PostPaid
,PrePaid
,ReservedInstance
. Default isPostPaid
. - Instance
Type stringId - The id of instance type.
- Output
File string - File name where to save data source results.
- Spot
Strategy string - The spot strategy of PostPaid instance. Valid values:
NoSpot
,SpotAsPriceGo
. Default isNoSpot
. - Zone
Id string - The id of available zone.
- destination
Resource String - The type of resource to query. Valid values:
InstanceType
,DedicatedHost
. - instance
Charge StringType - The charge type of instance. Valid values:
PostPaid
,PrePaid
,ReservedInstance
. Default isPostPaid
. - instance
Type StringId - The id of instance type.
- output
File String - File name where to save data source results.
- spot
Strategy String - The spot strategy of PostPaid instance. Valid values:
NoSpot
,SpotAsPriceGo
. Default isNoSpot
. - zone
Id String - The id of available zone.
- destination
Resource string - The type of resource to query. Valid values:
InstanceType
,DedicatedHost
. - instance
Charge stringType - The charge type of instance. Valid values:
PostPaid
,PrePaid
,ReservedInstance
. Default isPostPaid
. - instance
Type stringId - The id of instance type.
- output
File string - File name where to save data source results.
- spot
Strategy string - The spot strategy of PostPaid instance. Valid values:
NoSpot
,SpotAsPriceGo
. Default isNoSpot
. - zone
Id 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.
- destination
Resource String - The type of resource to query. Valid values:
InstanceType
,DedicatedHost
. - instance
Charge StringType - The charge type of instance. Valid values:
PostPaid
,PrePaid
,ReservedInstance
. Default isPostPaid
. - instance
Type StringId - The id of instance type.
- output
File String - File name where to save data source results.
- spot
Strategy String - The spot strategy of PostPaid instance. Valid values:
NoSpot
,SpotAsPriceGo
. Default isNoSpot
. - zone
Id String - The id of available zone.
AvailableResources Result
The following output properties are available:
- Available
Zones List<AvailableResources Available Zone> - The collection of query.
- Destination
Resource string - Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Instance
Charge stringType - Instance
Type stringId - Output
File string - Spot
Strategy string - Zone
Id string - The id of the available zone.
- Available
Zones []AvailableResources Available Zone - The collection of query.
- Destination
Resource string - Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Instance
Charge stringType - Instance
Type stringId - Output
File string - Spot
Strategy string - Zone
Id string - The id of the available zone.
- available
Zones List<AvailableResources Available Zone> - The collection of query.
- destination
Resource String - id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- instance
Charge StringType - instance
Type StringId - output
File String - spot
Strategy String - zone
Id String - The id of the available zone.
- available
Zones AvailableResources Available Zone[] - The collection of query.
- destination
Resource string - id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- instance
Charge stringType - instance
Type stringId - output
File string - spot
Strategy string - zone
Id 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.
- available
Zones List<Property Map> - The collection of query.
- destination
Resource String - id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- instance
Charge StringType - instance
Type StringId - output
File String - spot
Strategy String - zone
Id String - The id of the available zone.
Supporting Types
AvailableResourcesAvailableZone
- Available
Resources List<AvailableResources Available Zone Available Resource> - The resource information of the available zone.
- Region
Id string - The id of the region.
- Status string
- The resource status of the available zone. Valid values:
Available
,SoldOut
. - Zone
Id string - The id of available zone.
- Available
Resources []AvailableResources Available Zone Available Resource - The resource information of the available zone.
- Region
Id string - The id of the region.
- Status string
- The resource status of the available zone. Valid values:
Available
,SoldOut
. - Zone
Id string - The id of available zone.
- available
Resources List<AvailableResources Available Zone Available Resource> - The resource information of the available zone.
- region
Id String - The id of the region.
- status String
- The resource status of the available zone. Valid values:
Available
,SoldOut
. - zone
Id String - The id of available zone.
- available
Resources AvailableResources Available Zone Available Resource[] - The resource information of the available zone.
- region
Id string - The id of the region.
- status string
- The resource status of the available zone. Valid values:
Available
,SoldOut
. - zone
Id 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.
- available
Resources List<Property Map> - The resource information of the available zone.
- region
Id String - The id of the region.
- status String
- The resource status of the available zone. Valid values:
Available
,SoldOut
. - zone
Id String - The id of available zone.
AvailableResourcesAvailableZoneAvailableResource
- Supported
Resources List<AvailableResources Available Zone Available Resource Supported Resource> - The supported resource information.
- Type string
- The type of resource. Valid values:
InstanceType
,DedicatedHost
.
- Supported
Resources []AvailableResources Available Zone Available Resource Supported Resource - The supported resource information.
- Type string
- The type of resource. Valid values:
InstanceType
,DedicatedHost
.
- supported
Resources List<AvailableResources Available Zone Available Resource Supported Resource> - The supported resource information.
- type String
- The type of resource. Valid values:
InstanceType
,DedicatedHost
.
- supported
Resources 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
.
- supported
Resources 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
volcengine
Terraform Provider.