Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
The contracts data source provides information about the contracts available in your IONOS Cloud account, including resource limits and other contract details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = ionoscloud.getContracts({});
export const contracts = example.then(example => example.contracts);
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_contracts()
pulumi.export("contracts", example.contracts)
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ionoscloud.GetContracts(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
ctx.Export("contracts", example.Contracts)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Index.GetContracts.Invoke();
return new Dictionary<string, object?>
{
["contracts"] = example.Apply(getContractsResult => getContractsResult.Contracts),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
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 example = IonoscloudFunctions.getContracts(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
ctx.export("contracts", example.contracts());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getContracts
arguments: {}
outputs:
contracts: ${example.contracts}
Example coming soon!
The following attributes are returned by the datasource:
Sure! Here’s the list of attributes formatted as requested:
contractscontractNumber- The contract number.owner- The contract owner’s user name.status- The contract status.regDomain- The registration domain of the contract.resourceLimitscoresPerServer- The maximum number of cores per server.ramPerServer- The maximum RAM per server in MB.ramPerContract- The maximum RAM per contract in MB.coresPerContract- The maximum number of cores per contract.coresProvisioned- The number of cores provisioned.dasVolumeProvisioned- The DAS volume provisioned.hddLimitPerContract- The HDD limit per contract.hddLimitPerVolume- The HDD limit per volume.hddVolumeProvisioned- The HDD volume provisioned.k8sClusterLimitTotal- The total Kubernetes cluster limit.k8sClustersProvisioned- The number of Kubernetes clusters provisioned.natGatewayLimitTotal- The total NAT gateway limit.natGatewayProvisioned- The number of NAT gateways provisioned.nlbLimitTotal- The total NLB limit.nlbProvisioned- The number of NLBs provisioned.ramProvisioned- The RAM provisioned.reservableIps- The number of reservable IPs.reservedIpsInUse- The number of reserved IPs in use.reservedIpsOnContract- The number of reserved IPs on the contract.ssdLimitPerContract- The SSD limit per contract.ssdLimitPerVolume- The SSD limit per volume.ssdVolumeProvisioned- The SSD volume provisioned.securityGroupsPerVdc- The number of security groups per VDC.securityGroupsPerResource- The number of security groups per resource.rulesPerSecurityGroup- The number of rules per security group.
Using getContracts
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 getContracts(opts?: InvokeOptions): Promise<GetContractsResult>
function getContractsOutput(opts?: InvokeOptions): Output<GetContractsResult>def get_contracts(opts: Optional[InvokeOptions] = None) -> GetContractsResult
def get_contracts_output(opts: Optional[InvokeOptions] = None) -> Output[GetContractsResult]func GetContracts(ctx *Context, opts ...InvokeOption) (*GetContractsResult, error)
func GetContractsOutput(ctx *Context, opts ...InvokeOption) GetContractsResultOutput> Note: This function is named GetContracts in the Go SDK.
public static class GetContracts
{
public static Task<GetContractsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetContractsResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetContractsResult> getContracts(InvokeOptions options)
public static Output<GetContractsResult> getContracts(InvokeOptions options)
fn::invoke:
function: ionoscloud:index/getContracts:getContracts
arguments:
# arguments dictionarydata "ionoscloud_getcontracts" "name" {
# arguments
}getContracts Result
The following output properties are available:
- Contracts
List<Ionoscloud.
Get Contracts Contract> - Id string
- The provider-assigned unique ID for this managed resource.
- Contracts
[]Get
Contracts Contract - Id string
- The provider-assigned unique ID for this managed resource.
- contracts list(object)
- id string
- The provider-assigned unique ID for this managed resource.
- contracts
List<Get
Contracts Contract> - id String
- The provider-assigned unique ID for this managed resource.
- contracts
Get
Contracts Contract[] - id string
- The provider-assigned unique ID for this managed resource.
- contracts
Sequence[Get
Contracts Contract] - id str
- The provider-assigned unique ID for this managed resource.
- contracts List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
GetContractsContract
- Contract
Number int - The contract number.
- Owner string
- The contract owner's user name.
- Reg
Domain string - The registration domain of the contract.
- Resource
Limits Ionoscloud.Get Contracts Contract Resource Limits - The resource limits of the contract.
- Status string
- The contract status.
- Contract
Number int - The contract number.
- Owner string
- The contract owner's user name.
- Reg
Domain string - The registration domain of the contract.
- Resource
Limits GetContracts Contract Resource Limits - The resource limits of the contract.
- Status string
- The contract status.
- contract_
number number - The contract number.
- owner string
- The contract owner's user name.
- reg_
domain string - The registration domain of the contract.
- resource_
limits object - The resource limits of the contract.
- status string
- The contract status.
- contract
Number Integer - The contract number.
- owner String
- The contract owner's user name.
- reg
Domain String - The registration domain of the contract.
- resource
Limits GetContracts Contract Resource Limits - The resource limits of the contract.
- status String
- The contract status.
- contract
Number number - The contract number.
- owner string
- The contract owner's user name.
- reg
Domain string - The registration domain of the contract.
- resource
Limits GetContracts Contract Resource Limits - The resource limits of the contract.
- status string
- The contract status.
- contract_
number int - The contract number.
- owner str
- The contract owner's user name.
- reg_
domain str - The registration domain of the contract.
- resource_
limits GetContracts Contract Resource Limits - The resource limits of the contract.
- status str
- The contract status.
- contract
Number Number - The contract number.
- owner String
- The contract owner's user name.
- reg
Domain String - The registration domain of the contract.
- resource
Limits Property Map - The resource limits of the contract.
- status String
- The contract status.
GetContractsContractResourceLimits
- Cores
Per intContract - The maximum number of cores per contract.
- Cores
Per intServer - The maximum number of cores per server.
- Cores
Provisioned int - The number of cores provisioned.
- Das
Volume intProvisioned - The DAS volume provisioned.
- Hdd
Limit intPer Contract - The HDD limit per contract.
- Hdd
Limit intPer Volume - The HDD limit per volume.
- Hdd
Volume intProvisioned - The HDD volume provisioned.
- K8s
Cluster intLimit Total - The total Kubernetes cluster limit.
- K8s
Clusters intProvisioned - The number of Kubernetes clusters provisioned.
- Nat
Gateway intLimit Total - The total NAT gateway limit.
- Nat
Gateway intProvisioned - The number of NAT gateways provisioned.
- Nlb
Limit intTotal - The total NLB limit.
- Nlb
Provisioned int - The number of NLBs provisioned.
- Ram
Per intContract - The maximum RAM per contract in MB.
- Ram
Per intServer - The maximum RAM per server in MB.
- Ram
Provisioned int - The RAM provisioned.
- Reservable
Ips int - The number of reservable IPs.
- Reserved
Ips intIn Use - The number of reserved IPs in use.
- Reserved
Ips intOn Contract - The number of reserved IPs on the contract.
- Rules
Per intSecurity Group - The number of rules per security group.
- Security
Groups intPer Resource - The number of security groups per resource.
- Security
Groups intPer Vdc - The number of security groups per VDC.
- Ssd
Limit intPer Contract - The SSD limit per contract.
- Ssd
Limit intPer Volume - The SSD limit per volume.
- Ssd
Volume intProvisioned - The SSD volume provisioned.
- Cores
Per intContract - The maximum number of cores per contract.
- Cores
Per intServer - The maximum number of cores per server.
- Cores
Provisioned int - The number of cores provisioned.
- Das
Volume intProvisioned - The DAS volume provisioned.
- Hdd
Limit intPer Contract - The HDD limit per contract.
- Hdd
Limit intPer Volume - The HDD limit per volume.
- Hdd
Volume intProvisioned - The HDD volume provisioned.
- K8s
Cluster intLimit Total - The total Kubernetes cluster limit.
- K8s
Clusters intProvisioned - The number of Kubernetes clusters provisioned.
- Nat
Gateway intLimit Total - The total NAT gateway limit.
- Nat
Gateway intProvisioned - The number of NAT gateways provisioned.
- Nlb
Limit intTotal - The total NLB limit.
- Nlb
Provisioned int - The number of NLBs provisioned.
- Ram
Per intContract - The maximum RAM per contract in MB.
- Ram
Per intServer - The maximum RAM per server in MB.
- Ram
Provisioned int - The RAM provisioned.
- Reservable
Ips int - The number of reservable IPs.
- Reserved
Ips intIn Use - The number of reserved IPs in use.
- Reserved
Ips intOn Contract - The number of reserved IPs on the contract.
- Rules
Per intSecurity Group - The number of rules per security group.
- Security
Groups intPer Resource - The number of security groups per resource.
- Security
Groups intPer Vdc - The number of security groups per VDC.
- Ssd
Limit intPer Contract - The SSD limit per contract.
- Ssd
Limit intPer Volume - The SSD limit per volume.
- Ssd
Volume intProvisioned - The SSD volume provisioned.
- cores_
per_ numbercontract - The maximum number of cores per contract.
- cores_
per_ numberserver - The maximum number of cores per server.
- cores_
provisioned number - The number of cores provisioned.
- das_
volume_ numberprovisioned - The DAS volume provisioned.
- hdd_
limit_ numberper_ contract - The HDD limit per contract.
- hdd_
limit_ numberper_ volume - The HDD limit per volume.
- hdd_
volume_ numberprovisioned - The HDD volume provisioned.
- k8s_
cluster_ numberlimit_ total - The total Kubernetes cluster limit.
- k8s_
clusters_ numberprovisioned - The number of Kubernetes clusters provisioned.
- nat_
gateway_ numberlimit_ total - The total NAT gateway limit.
- nat_
gateway_ numberprovisioned - The number of NAT gateways provisioned.
- nlb_
limit_ numbertotal - The total NLB limit.
- nlb_
provisioned number - The number of NLBs provisioned.
- ram_
per_ numbercontract - The maximum RAM per contract in MB.
- ram_
per_ numberserver - The maximum RAM per server in MB.
- ram_
provisioned number - The RAM provisioned.
- reservable_
ips number - The number of reservable IPs.
- reserved_
ips_ numberin_ use - The number of reserved IPs in use.
- reserved_
ips_ numberon_ contract - The number of reserved IPs on the contract.
- rules_
per_ numbersecurity_ group - The number of rules per security group.
- security_
groups_ numberper_ resource - The number of security groups per resource.
- security_
groups_ numberper_ vdc - The number of security groups per VDC.
- ssd_
limit_ numberper_ contract - The SSD limit per contract.
- ssd_
limit_ numberper_ volume - The SSD limit per volume.
- ssd_
volume_ numberprovisioned - The SSD volume provisioned.
- cores
Per IntegerContract - The maximum number of cores per contract.
- cores
Per IntegerServer - The maximum number of cores per server.
- cores
Provisioned Integer - The number of cores provisioned.
- das
Volume IntegerProvisioned - The DAS volume provisioned.
- hdd
Limit IntegerPer Contract - The HDD limit per contract.
- hdd
Limit IntegerPer Volume - The HDD limit per volume.
- hdd
Volume IntegerProvisioned - The HDD volume provisioned.
- k8s
Cluster IntegerLimit Total - The total Kubernetes cluster limit.
- k8s
Clusters IntegerProvisioned - The number of Kubernetes clusters provisioned.
- nat
Gateway IntegerLimit Total - The total NAT gateway limit.
- nat
Gateway IntegerProvisioned - The number of NAT gateways provisioned.
- nlb
Limit IntegerTotal - The total NLB limit.
- nlb
Provisioned Integer - The number of NLBs provisioned.
- ram
Per IntegerContract - The maximum RAM per contract in MB.
- ram
Per IntegerServer - The maximum RAM per server in MB.
- ram
Provisioned Integer - The RAM provisioned.
- reservable
Ips Integer - The number of reservable IPs.
- reserved
Ips IntegerIn Use - The number of reserved IPs in use.
- reserved
Ips IntegerOn Contract - The number of reserved IPs on the contract.
- rules
Per IntegerSecurity Group - The number of rules per security group.
- security
Groups IntegerPer Resource - The number of security groups per resource.
- security
Groups IntegerPer Vdc - The number of security groups per VDC.
- ssd
Limit IntegerPer Contract - The SSD limit per contract.
- ssd
Limit IntegerPer Volume - The SSD limit per volume.
- ssd
Volume IntegerProvisioned - The SSD volume provisioned.
- cores
Per numberContract - The maximum number of cores per contract.
- cores
Per numberServer - The maximum number of cores per server.
- cores
Provisioned number - The number of cores provisioned.
- das
Volume numberProvisioned - The DAS volume provisioned.
- hdd
Limit numberPer Contract - The HDD limit per contract.
- hdd
Limit numberPer Volume - The HDD limit per volume.
- hdd
Volume numberProvisioned - The HDD volume provisioned.
- k8s
Cluster numberLimit Total - The total Kubernetes cluster limit.
- k8s
Clusters numberProvisioned - The number of Kubernetes clusters provisioned.
- nat
Gateway numberLimit Total - The total NAT gateway limit.
- nat
Gateway numberProvisioned - The number of NAT gateways provisioned.
- nlb
Limit numberTotal - The total NLB limit.
- nlb
Provisioned number - The number of NLBs provisioned.
- ram
Per numberContract - The maximum RAM per contract in MB.
- ram
Per numberServer - The maximum RAM per server in MB.
- ram
Provisioned number - The RAM provisioned.
- reservable
Ips number - The number of reservable IPs.
- reserved
Ips numberIn Use - The number of reserved IPs in use.
- reserved
Ips numberOn Contract - The number of reserved IPs on the contract.
- rules
Per numberSecurity Group - The number of rules per security group.
- security
Groups numberPer Resource - The number of security groups per resource.
- security
Groups numberPer Vdc - The number of security groups per VDC.
- ssd
Limit numberPer Contract - The SSD limit per contract.
- ssd
Limit numberPer Volume - The SSD limit per volume.
- ssd
Volume numberProvisioned - The SSD volume provisioned.
- cores_
per_ intcontract - The maximum number of cores per contract.
- cores_
per_ intserver - The maximum number of cores per server.
- cores_
provisioned int - The number of cores provisioned.
- das_
volume_ intprovisioned - The DAS volume provisioned.
- hdd_
limit_ intper_ contract - The HDD limit per contract.
- hdd_
limit_ intper_ volume - The HDD limit per volume.
- hdd_
volume_ intprovisioned - The HDD volume provisioned.
- k8s_
cluster_ intlimit_ total - The total Kubernetes cluster limit.
- k8s_
clusters_ intprovisioned - The number of Kubernetes clusters provisioned.
- nat_
gateway_ intlimit_ total - The total NAT gateway limit.
- nat_
gateway_ intprovisioned - The number of NAT gateways provisioned.
- nlb_
limit_ inttotal - The total NLB limit.
- nlb_
provisioned int - The number of NLBs provisioned.
- ram_
per_ intcontract - The maximum RAM per contract in MB.
- ram_
per_ intserver - The maximum RAM per server in MB.
- ram_
provisioned int - The RAM provisioned.
- reservable_
ips int - The number of reservable IPs.
- reserved_
ips_ intin_ use - The number of reserved IPs in use.
- reserved_
ips_ inton_ contract - The number of reserved IPs on the contract.
- rules_
per_ intsecurity_ group - The number of rules per security group.
- security_
groups_ intper_ resource - The number of security groups per resource.
- security_
groups_ intper_ vdc - The number of security groups per VDC.
- ssd_
limit_ intper_ contract - The SSD limit per contract.
- ssd_
limit_ intper_ volume - The SSD limit per volume.
- ssd_
volume_ intprovisioned - The SSD volume provisioned.
- cores
Per NumberContract - The maximum number of cores per contract.
- cores
Per NumberServer - The maximum number of cores per server.
- cores
Provisioned Number - The number of cores provisioned.
- das
Volume NumberProvisioned - The DAS volume provisioned.
- hdd
Limit NumberPer Contract - The HDD limit per contract.
- hdd
Limit NumberPer Volume - The HDD limit per volume.
- hdd
Volume NumberProvisioned - The HDD volume provisioned.
- k8s
Cluster NumberLimit Total - The total Kubernetes cluster limit.
- k8s
Clusters NumberProvisioned - The number of Kubernetes clusters provisioned.
- nat
Gateway NumberLimit Total - The total NAT gateway limit.
- nat
Gateway NumberProvisioned - The number of NAT gateways provisioned.
- nlb
Limit NumberTotal - The total NLB limit.
- nlb
Provisioned Number - The number of NLBs provisioned.
- ram
Per NumberContract - The maximum RAM per contract in MB.
- ram
Per NumberServer - The maximum RAM per server in MB.
- ram
Provisioned Number - The RAM provisioned.
- reservable
Ips Number - The number of reservable IPs.
- reserved
Ips NumberIn Use - The number of reserved IPs in use.
- reserved
Ips NumberOn Contract - The number of reserved IPs on the contract.
- rules
Per NumberSecurity Group - The number of rules per security group.
- security
Groups NumberPer Resource - The number of security groups per resource.
- security
Groups NumberPer Vdc - The number of security groups per VDC.
- ssd
Limit NumberPer Contract - The SSD limit per contract.
- ssd
Limit NumberPer Volume - The SSD limit per volume.
- ssd
Volume NumberProvisioned - The SSD volume provisioned.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
