Viewing docs for spectrocloud 0.30.5
published on Wednesday, Nov 4, 2026 by spectrocloud
published on Wednesday, Nov 4, 2026 by spectrocloud
spectrocloud
Viewing docs for spectrocloud 0.30.5
published on Wednesday, Nov 4, 2026 by spectrocloud
published on Wednesday, Nov 4, 2026 by spectrocloud
Provides the tenant-level cloud rate config, the unit prices Palette uses to estimate cluster cloud cost and usage cost.
The rate config is a tenant-level singleton, so this data source takes no arguments and always returns the rate config of the tenant the provider is authenticated against.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
// Retrieve the tenant cloud rate config
const current = spectrocloud.getRateConfig({});
export const vsphereCpuUnitPricePerHour = current.then(current => current.vspheres?.[0]?.cpuUnitPricePerHour);
import pulumi
import pulumi_spectrocloud as spectrocloud
# Retrieve the tenant cloud rate config
current = spectrocloud.get_rate_config()
pulumi.export("vsphereCpuUnitPricePerHour", current.vspheres[0].cpu_unit_price_per_hour)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Retrieve the tenant cloud rate config
current, err := spectrocloud.LookupRateConfig(ctx, &spectrocloud.LookupRateConfigArgs{}, nil)
if err != nil {
return err
}
ctx.Export("vsphereCpuUnitPricePerHour", current.Vspheres[0].CpuUnitPricePerHour)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
// Retrieve the tenant cloud rate config
var current = Spectrocloud.GetRateConfig.Invoke();
return new Dictionary<string, object?>
{
["vsphereCpuUnitPricePerHour"] = current.Apply(getRateConfigResult => getRateConfigResult.Vspheres[0]?.CpuUnitPricePerHour),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetRateConfigArgs;
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) {
// Retrieve the tenant cloud rate config
final var current = SpectrocloudFunctions.getRateConfig(GetRateConfigArgs.builder()
.build());
ctx.export("vsphereCpuUnitPricePerHour", current.vspheres()[0].cpuUnitPricePerHour());
}
}
variables:
# Retrieve the tenant cloud rate config
current:
fn::invoke:
function: spectrocloud:getRateConfig
arguments: {}
outputs:
# Output the vSphere CPU rate Palette uses for cost estimates
vsphereCpuUnitPricePerHour: ${current.vspheres[0].cpuUnitPricePerHour}
Example coming soon!
Using getRateConfig
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 getRateConfig(args: GetRateConfigArgs, opts?: InvokeOptions): Promise<GetRateConfigResult>
function getRateConfigOutput(args: GetRateConfigOutputArgs, opts?: InvokeOutputOptions): Output<GetRateConfigResult>def get_rate_config(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRateConfigResult
def get_rate_config_output(id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetRateConfigResult]func LookupRateConfig(ctx *Context, args *LookupRateConfigArgs, opts ...InvokeOption) (*LookupRateConfigResult, error)
func LookupRateConfigOutput(ctx *Context, args *LookupRateConfigOutputArgs, opts ...InvokeOption) LookupRateConfigResultOutput> Note: This function is named LookupRateConfig in the Go SDK.
public static class GetRateConfig
{
public static Task<GetRateConfigResult> InvokeAsync(GetRateConfigArgs args, InvokeOptions? opts = null)
public static Output<GetRateConfigResult> Invoke(GetRateConfigInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetRateConfigResult> Invoke(GetRateConfigInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetRateConfigResult> getRateConfig(GetRateConfigArgs args, InvokeOptions options)
public static Output<GetRateConfigResult> getRateConfig(GetRateConfigArgs args, InvokeOptions options)
public static Output<GetRateConfigResult> getRateConfig(GetRateConfigArgs args, InvokeOutputOptions options)
fn::invoke:
function: spectrocloud:index/getRateConfig:getRateConfig
arguments:
# arguments dictionarydata "spectrocloud_get_rate_config" "name" {
# arguments
}The following arguments are supported:
- Id string
- The ID of this resource.
- Id string
- The ID of this resource.
- id string
- The ID of this resource.
- id String
- The ID of this resource.
- id string
- The ID of this resource.
- id str
- The ID of this resource.
- id String
- The ID of this resource.
getRateConfig Result
The following output properties are available:
- Apache
Cloudstacks List<GetRate Config Apache Cloudstack> - Unit prices used to estimate the cost of Apache CloudStack resources.
- Aws
List<Get
Rate Config Aw> - Rate proportions used to estimate the cost of AWS instances.
- Azures
List<Get
Rate Config Azure> - Rate proportions used to estimate the cost of Azure instances.
- Customs
List<Get
Rate Config Custom> - Unit prices applied to the custom cloud types registered in the tenant. One block per custom cloud.
- Gcps
List<Get
Rate Config Gcp> - Rate proportions used to estimate the cost of GCP instances.
- Generics
List<Get
Rate Config Generic> - Unit prices used to estimate the cost of generic cloud resources.
- Id string
- The ID of this resource.
- Maas
List<Get
Rate Config Maa> - Unit prices used to estimate the cost of MAAS resources.
- Vspheres
List<Get
Rate Config Vsphere> - Unit prices used to estimate the cost of VMware vSphere resources.
- Apache
Cloudstacks []GetRate Config Apache Cloudstack - Unit prices used to estimate the cost of Apache CloudStack resources.
- Aws
[]Get
Rate Config Aw - Rate proportions used to estimate the cost of AWS instances.
- Azures
[]Get
Rate Config Azure - Rate proportions used to estimate the cost of Azure instances.
- Customs
[]Get
Rate Config Custom - Unit prices applied to the custom cloud types registered in the tenant. One block per custom cloud.
- Gcps
[]Get
Rate Config Gcp - Rate proportions used to estimate the cost of GCP instances.
- Generics
[]Get
Rate Config Generic - Unit prices used to estimate the cost of generic cloud resources.
- Id string
- The ID of this resource.
- Maas
[]Get
Rate Config Maa - Unit prices used to estimate the cost of MAAS resources.
- Vspheres
[]Get
Rate Config Vsphere - Unit prices used to estimate the cost of VMware vSphere resources.
- apache_
cloudstacks list(object) - Unit prices used to estimate the cost of Apache CloudStack resources.
- aws list(object)
- Rate proportions used to estimate the cost of AWS instances.
- azures list(object)
- Rate proportions used to estimate the cost of Azure instances.
- customs list(object)
- Unit prices applied to the custom cloud types registered in the tenant. One block per custom cloud.
- gcps list(object)
- Rate proportions used to estimate the cost of GCP instances.
- generics list(object)
- Unit prices used to estimate the cost of generic cloud resources.
- id string
- The ID of this resource.
- maas list(object)
- Unit prices used to estimate the cost of MAAS resources.
- vspheres list(object)
- Unit prices used to estimate the cost of VMware vSphere resources.
- apache
Cloudstacks List<GetRate Config Apache Cloudstack> - Unit prices used to estimate the cost of Apache CloudStack resources.
- aws
List<Get
Rate Config Aw> - Rate proportions used to estimate the cost of AWS instances.
- azures
List<Get
Rate Config Azure> - Rate proportions used to estimate the cost of Azure instances.
- customs
List<Get
Rate Config Custom> - Unit prices applied to the custom cloud types registered in the tenant. One block per custom cloud.
- gcps
List<Get
Rate Config Gcp> - Rate proportions used to estimate the cost of GCP instances.
- generics
List<Get
Rate Config Generic> - Unit prices used to estimate the cost of generic cloud resources.
- id String
- The ID of this resource.
- maas
List<Get
Rate Config Maa> - Unit prices used to estimate the cost of MAAS resources.
- vspheres
List<Get
Rate Config Vsphere> - Unit prices used to estimate the cost of VMware vSphere resources.
- apache
Cloudstacks GetRate Config Apache Cloudstack[] - Unit prices used to estimate the cost of Apache CloudStack resources.
- aws
Get
Rate Config Aw[] - Rate proportions used to estimate the cost of AWS instances.
- azures
Get
Rate Config Azure[] - Rate proportions used to estimate the cost of Azure instances.
- customs
Get
Rate Config Custom[] - Unit prices applied to the custom cloud types registered in the tenant. One block per custom cloud.
- gcps
Get
Rate Config Gcp[] - Rate proportions used to estimate the cost of GCP instances.
- generics
Get
Rate Config Generic[] - Unit prices used to estimate the cost of generic cloud resources.
- id string
- The ID of this resource.
- maas
Get
Rate Config Maa[] - Unit prices used to estimate the cost of MAAS resources.
- vspheres
Get
Rate Config Vsphere[] - Unit prices used to estimate the cost of VMware vSphere resources.
- apache_
cloudstacks Sequence[GetRate Config Apache Cloudstack] - Unit prices used to estimate the cost of Apache CloudStack resources.
- aws
Sequence[Get
Rate Config Aw] - Rate proportions used to estimate the cost of AWS instances.
- azures
Sequence[Get
Rate Config Azure] - Rate proportions used to estimate the cost of Azure instances.
- customs
Sequence[Get
Rate Config Custom] - Unit prices applied to the custom cloud types registered in the tenant. One block per custom cloud.
- gcps
Sequence[Get
Rate Config Gcp] - Rate proportions used to estimate the cost of GCP instances.
- generics
Sequence[Get
Rate Config Generic] - Unit prices used to estimate the cost of generic cloud resources.
- id str
- The ID of this resource.
- maas
Sequence[Get
Rate Config Maa] - Unit prices used to estimate the cost of MAAS resources.
- vspheres
Sequence[Get
Rate Config Vsphere] - Unit prices used to estimate the cost of VMware vSphere resources.
- apache
Cloudstacks List<Property Map> - Unit prices used to estimate the cost of Apache CloudStack resources.
- aws List<Property Map>
- Rate proportions used to estimate the cost of AWS instances.
- azures List<Property Map>
- Rate proportions used to estimate the cost of Azure instances.
- customs List<Property Map>
- Unit prices applied to the custom cloud types registered in the tenant. One block per custom cloud.
- gcps List<Property Map>
- Rate proportions used to estimate the cost of GCP instances.
- generics List<Property Map>
- Unit prices used to estimate the cost of generic cloud resources.
- id String
- The ID of this resource.
- maas List<Property Map>
- Unit prices used to estimate the cost of MAAS resources.
- vspheres List<Property Map>
- Unit prices used to estimate the cost of VMware vSphere resources.
Supporting Types
GetRateConfigApacheCloudstack
- Cpu
Unit doublePrice Per Hour - Gpu
Unit doublePrice Per Hour - Memory
Unit doublePrice Gib Per Hour - Storage
Unit doublePrice Gib Per Hour
- Cpu
Unit float64Price Per Hour - Gpu
Unit float64Price Per Hour - Memory
Unit float64Price Gib Per Hour - Storage
Unit float64Price Gib Per Hour
- cpu_
unit_ numberprice_ per_ hour - gpu_
unit_ numberprice_ per_ hour - memory_
unit_ numberprice_ gib_ per_ hour - storage_
unit_ numberprice_ gib_ per_ hour
- cpu
Unit DoublePrice Per Hour - gpu
Unit DoublePrice Per Hour - memory
Unit DoublePrice Gib Per Hour - storage
Unit DoublePrice Gib Per Hour
- cpu
Unit numberPrice Per Hour - gpu
Unit numberPrice Per Hour - memory
Unit numberPrice Gib Per Hour - storage
Unit numberPrice Gib Per Hour
- cpu
Unit NumberPrice Per Hour - gpu
Unit NumberPrice Per Hour - memory
Unit NumberPrice Gib Per Hour - storage
Unit NumberPrice Gib Per Hour
GetRateConfigAw
GetRateConfigAwComputeOptimized
- Compute
Rate doubleProportion - Memory
Rate doubleProportion
- Compute
Rate float64Proportion - Memory
Rate float64Proportion
- compute_
rate_ numberproportion - memory_
rate_ numberproportion
- compute
Rate DoubleProportion - memory
Rate DoubleProportion
- compute
Rate numberProportion - memory
Rate numberProportion
- compute_
rate_ floatproportion - memory_
rate_ floatproportion
- compute
Rate NumberProportion - memory
Rate NumberProportion
GetRateConfigAwMemoryOptimized
- Compute
Rate doubleProportion - Memory
Rate doubleProportion
- Compute
Rate float64Proportion - Memory
Rate float64Proportion
- compute_
rate_ numberproportion - memory_
rate_ numberproportion
- compute
Rate DoubleProportion - memory
Rate DoubleProportion
- compute
Rate numberProportion - memory
Rate numberProportion
- compute_
rate_ floatproportion - memory_
rate_ floatproportion
- compute
Rate NumberProportion - memory
Rate NumberProportion
GetRateConfigAzure
GetRateConfigAzureComputeOptimized
- Compute
Rate doubleProportion - Memory
Rate doubleProportion
- Compute
Rate float64Proportion - Memory
Rate float64Proportion
- compute_
rate_ numberproportion - memory_
rate_ numberproportion
- compute
Rate DoubleProportion - memory
Rate DoubleProportion
- compute
Rate numberProportion - memory
Rate numberProportion
- compute_
rate_ floatproportion - memory_
rate_ floatproportion
- compute
Rate NumberProportion - memory
Rate NumberProportion
GetRateConfigAzureMemoryOptimized
- Compute
Rate doubleProportion - Memory
Rate doubleProportion
- Compute
Rate float64Proportion - Memory
Rate float64Proportion
- compute_
rate_ numberproportion - memory_
rate_ numberproportion
- compute
Rate DoubleProportion - memory
Rate DoubleProportion
- compute
Rate numberProportion - memory
Rate numberProportion
- compute_
rate_ floatproportion - memory_
rate_ floatproportion
- compute
Rate NumberProportion - memory
Rate NumberProportion
GetRateConfigCustom
GetRateConfigCustomRateConfig
- Cpu
Unit doublePrice Per Hour - Gpu
Unit doublePrice Per Hour - Memory
Unit doublePrice Gib Per Hour - Storage
Unit doublePrice Gib Per Hour
- Cpu
Unit float64Price Per Hour - Gpu
Unit float64Price Per Hour - Memory
Unit float64Price Gib Per Hour - Storage
Unit float64Price Gib Per Hour
- cpu_
unit_ numberprice_ per_ hour - gpu_
unit_ numberprice_ per_ hour - memory_
unit_ numberprice_ gib_ per_ hour - storage_
unit_ numberprice_ gib_ per_ hour
- cpu
Unit DoublePrice Per Hour - gpu
Unit DoublePrice Per Hour - memory
Unit DoublePrice Gib Per Hour - storage
Unit DoublePrice Gib Per Hour
- cpu
Unit numberPrice Per Hour - gpu
Unit numberPrice Per Hour - memory
Unit numberPrice Gib Per Hour - storage
Unit numberPrice Gib Per Hour
- cpu
Unit NumberPrice Per Hour - gpu
Unit NumberPrice Per Hour - memory
Unit NumberPrice Gib Per Hour - storage
Unit NumberPrice Gib Per Hour
GetRateConfigGcp
GetRateConfigGcpComputeOptimized
- Compute
Rate doubleProportion - Memory
Rate doubleProportion
- Compute
Rate float64Proportion - Memory
Rate float64Proportion
- compute_
rate_ numberproportion - memory_
rate_ numberproportion
- compute
Rate DoubleProportion - memory
Rate DoubleProportion
- compute
Rate numberProportion - memory
Rate numberProportion
- compute_
rate_ floatproportion - memory_
rate_ floatproportion
- compute
Rate NumberProportion - memory
Rate NumberProportion
GetRateConfigGcpMemoryOptimized
- Compute
Rate doubleProportion - Memory
Rate doubleProportion
- Compute
Rate float64Proportion - Memory
Rate float64Proportion
- compute_
rate_ numberproportion - memory_
rate_ numberproportion
- compute
Rate DoubleProportion - memory
Rate DoubleProportion
- compute
Rate numberProportion - memory
Rate numberProportion
- compute_
rate_ floatproportion - memory_
rate_ floatproportion
- compute
Rate NumberProportion - memory
Rate NumberProportion
GetRateConfigGeneric
- Cpu
Unit doublePrice Per Hour - Gpu
Unit doublePrice Per Hour - Memory
Unit doublePrice Gib Per Hour - Storage
Unit doublePrice Gib Per Hour
- Cpu
Unit float64Price Per Hour - Gpu
Unit float64Price Per Hour - Memory
Unit float64Price Gib Per Hour - Storage
Unit float64Price Gib Per Hour
- cpu_
unit_ numberprice_ per_ hour - gpu_
unit_ numberprice_ per_ hour - memory_
unit_ numberprice_ gib_ per_ hour - storage_
unit_ numberprice_ gib_ per_ hour
- cpu
Unit DoublePrice Per Hour - gpu
Unit DoublePrice Per Hour - memory
Unit DoublePrice Gib Per Hour - storage
Unit DoublePrice Gib Per Hour
- cpu
Unit numberPrice Per Hour - gpu
Unit numberPrice Per Hour - memory
Unit numberPrice Gib Per Hour - storage
Unit numberPrice Gib Per Hour
- cpu
Unit NumberPrice Per Hour - gpu
Unit NumberPrice Per Hour - memory
Unit NumberPrice Gib Per Hour - storage
Unit NumberPrice Gib Per Hour
GetRateConfigMaa
- Cpu
Unit doublePrice Per Hour - Gpu
Unit doublePrice Per Hour - Memory
Unit doublePrice Gib Per Hour - Storage
Unit doublePrice Gib Per Hour
- Cpu
Unit float64Price Per Hour - Gpu
Unit float64Price Per Hour - Memory
Unit float64Price Gib Per Hour - Storage
Unit float64Price Gib Per Hour
- cpu_
unit_ numberprice_ per_ hour - gpu_
unit_ numberprice_ per_ hour - memory_
unit_ numberprice_ gib_ per_ hour - storage_
unit_ numberprice_ gib_ per_ hour
- cpu
Unit DoublePrice Per Hour - gpu
Unit DoublePrice Per Hour - memory
Unit DoublePrice Gib Per Hour - storage
Unit DoublePrice Gib Per Hour
- cpu
Unit numberPrice Per Hour - gpu
Unit numberPrice Per Hour - memory
Unit numberPrice Gib Per Hour - storage
Unit numberPrice Gib Per Hour
- cpu
Unit NumberPrice Per Hour - gpu
Unit NumberPrice Per Hour - memory
Unit NumberPrice Gib Per Hour - storage
Unit NumberPrice Gib Per Hour
GetRateConfigVsphere
- Cpu
Unit doublePrice Per Hour - Gpu
Unit doublePrice Per Hour - Memory
Unit doublePrice Gib Per Hour - Storage
Unit doublePrice Gib Per Hour
- Cpu
Unit float64Price Per Hour - Gpu
Unit float64Price Per Hour - Memory
Unit float64Price Gib Per Hour - Storage
Unit float64Price Gib Per Hour
- cpu_
unit_ numberprice_ per_ hour - gpu_
unit_ numberprice_ per_ hour - memory_
unit_ numberprice_ gib_ per_ hour - storage_
unit_ numberprice_ gib_ per_ hour
- cpu
Unit DoublePrice Per Hour - gpu
Unit DoublePrice Per Hour - memory
Unit DoublePrice Gib Per Hour - storage
Unit DoublePrice Gib Per Hour
- cpu
Unit numberPrice Per Hour - gpu
Unit numberPrice Per Hour - memory
Unit numberPrice Gib Per Hour - storage
Unit numberPrice Gib Per Hour
- cpu
Unit NumberPrice Per Hour - gpu
Unit NumberPrice Per Hour - memory
Unit NumberPrice Gib Per Hour - storage
Unit NumberPrice Gib Per Hour
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloudTerraform Provider.
spectrocloud
Viewing docs for spectrocloud 0.30.5
published on Wednesday, Nov 4, 2026 by spectrocloud
published on Wednesday, Nov 4, 2026 by spectrocloud