ionoscloud 6.7.7 published on Tuesday, May 20, 2025 by ionos-cloud
ionoscloud.getContracts
Explore with Pulumi AI
ionoscloud 6.7.7 published on Tuesday, May 20, 2025 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 "@pulumi/ionoscloud";
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/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/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 = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.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();
ctx.export("contracts", example.applyValue(getContractsResult -> getContractsResult.contracts()));
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getContracts
arguments: {}
outputs:
contracts: ${example.contracts}
The following attributes are returned by the datasource:
Sure! Here’s the list of attributes formatted as requested:
contracts
contract_number
- The contract number.owner
- The contract owner’s user name.status
- The contract status.reg_domain
- The registration domain of the contract.resource_limits
cores_per_server
- The maximum number of cores per server.ram_per_server
- The maximum RAM per server in MB.ram_per_contract
- The maximum RAM per contract in MB.cores_per_contract
- The maximum number of cores per contract.cores_provisioned
- The number of cores provisioned.das_volume_provisioned
- The DAS volume provisioned.hdd_limit_per_contract
- The HDD limit per contract.hdd_limit_per_volume
- The HDD limit per volume.hdd_volume_provisioned
- The HDD volume provisioned.k8s_cluster_limit_total
- The total Kubernetes cluster limit.k8s_clusters_provisioned
- The number of Kubernetes clusters provisioned.nat_gateway_limit_total
- The total NAT gateway limit.nat_gateway_provisioned
- The number of NAT gateways provisioned.nlb_limit_total
- The total NLB limit.nlb_provisioned
- The number of NLBs provisioned.ram_provisioned
- The RAM provisioned.reservable_ips
- The number of reservable IPs.reserved_ips_in_use
- The number of reserved IPs in use.reserved_ips_on_contract
- The number of reserved IPs on the contract.ssd_limit_per_contract
- The SSD limit per contract.ssd_limit_per_volume
- The SSD limit per volume.ssd_volume_provisioned
- The SSD volume provisioned.security_groups_per_vdc
- The number of security groups per VDC.security_groups_per_resource
- The number of security groups per resource.rules_per_security_group
- 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 dictionary
getContracts Result
The following output properties are available:
- 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
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 double - 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 float64 - 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 Double - 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 float - 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 doubleContract - The maximum number of cores per contract.
- Cores
Per doubleServer - The maximum number of cores per server.
- Cores
Provisioned double - The number of cores provisioned.
- Das
Volume doubleProvisioned - The DAS volume provisioned.
- Hdd
Limit doublePer Contract - The HDD limit per contract.
- Hdd
Limit doublePer Volume - The HDD limit per volume.
- Hdd
Volume doubleProvisioned - The HDD volume provisioned.
- K8s
Cluster doubleLimit Total - The total Kubernetes cluster limit.
- K8s
Clusters doubleProvisioned - The number of Kubernetes clusters provisioned.
- Nat
Gateway doubleLimit Total - The total NAT gateway limit.
- Nat
Gateway doubleProvisioned - The number of NAT gateways provisioned.
- Nlb
Limit doubleTotal - The total NLB limit.
- Nlb
Provisioned double - The number of NLBs provisioned.
- Ram
Per doubleContract - The maximum RAM per contract in MB.
- Ram
Per doubleServer - The maximum RAM per server in MB.
- Ram
Provisioned double - The RAM provisioned.
- Reservable
Ips double - The number of reservable IPs.
- Reserved
Ips doubleIn Use - The number of reserved IPs in use.
- Reserved
Ips doubleOn Contract - The number of reserved IPs on the contract.
- Rules
Per doubleSecurity Group - The number of rules per security group.
- Security
Groups doublePer Resource - The number of security groups per resource.
- Security
Groups doublePer Vdc - The number of security groups per VDC.
- Ssd
Limit doublePer Contract - The SSD limit per contract.
- Ssd
Limit doublePer Volume - The SSD limit per volume.
- Ssd
Volume doubleProvisioned - The SSD volume provisioned.
- Cores
Per float64Contract - The maximum number of cores per contract.
- Cores
Per float64Server - The maximum number of cores per server.
- Cores
Provisioned float64 - The number of cores provisioned.
- Das
Volume float64Provisioned - The DAS volume provisioned.
- Hdd
Limit float64Per Contract - The HDD limit per contract.
- Hdd
Limit float64Per Volume - The HDD limit per volume.
- Hdd
Volume float64Provisioned - The HDD volume provisioned.
- K8s
Cluster float64Limit Total - The total Kubernetes cluster limit.
- K8s
Clusters float64Provisioned - The number of Kubernetes clusters provisioned.
- Nat
Gateway float64Limit Total - The total NAT gateway limit.
- Nat
Gateway float64Provisioned - The number of NAT gateways provisioned.
- Nlb
Limit float64Total - The total NLB limit.
- Nlb
Provisioned float64 - The number of NLBs provisioned.
- Ram
Per float64Contract - The maximum RAM per contract in MB.
- Ram
Per float64Server - The maximum RAM per server in MB.
- Ram
Provisioned float64 - The RAM provisioned.
- Reservable
Ips float64 - The number of reservable IPs.
- Reserved
Ips float64In Use - The number of reserved IPs in use.
- Reserved
Ips float64On Contract - The number of reserved IPs on the contract.
- Rules
Per float64Security Group - The number of rules per security group.
- Security
Groups float64Per Resource - The number of security groups per resource.
- Security
Groups float64Per Vdc - The number of security groups per VDC.
- Ssd
Limit float64Per Contract - The SSD limit per contract.
- Ssd
Limit float64Per Volume - The SSD limit per volume.
- Ssd
Volume float64Provisioned - The SSD volume provisioned.
- cores
Per DoubleContract - The maximum number of cores per contract.
- cores
Per DoubleServer - The maximum number of cores per server.
- cores
Provisioned Double - The number of cores provisioned.
- das
Volume DoubleProvisioned - The DAS volume provisioned.
- hdd
Limit DoublePer Contract - The HDD limit per contract.
- hdd
Limit DoublePer Volume - The HDD limit per volume.
- hdd
Volume DoubleProvisioned - The HDD volume provisioned.
- k8s
Cluster DoubleLimit Total - The total Kubernetes cluster limit.
- k8s
Clusters DoubleProvisioned - The number of Kubernetes clusters provisioned.
- nat
Gateway DoubleLimit Total - The total NAT gateway limit.
- nat
Gateway DoubleProvisioned - The number of NAT gateways provisioned.
- nlb
Limit DoubleTotal - The total NLB limit.
- nlb
Provisioned Double - The number of NLBs provisioned.
- ram
Per DoubleContract - The maximum RAM per contract in MB.
- ram
Per DoubleServer - The maximum RAM per server in MB.
- ram
Provisioned Double - The RAM provisioned.
- reservable
Ips Double - The number of reservable IPs.
- reserved
Ips DoubleIn Use - The number of reserved IPs in use.
- reserved
Ips DoubleOn Contract - The number of reserved IPs on the contract.
- rules
Per DoubleSecurity Group - The number of rules per security group.
- security
Groups DoublePer Resource - The number of security groups per resource.
- security
Groups DoublePer Vdc - The number of security groups per VDC.
- ssd
Limit DoublePer Contract - The SSD limit per contract.
- ssd
Limit DoublePer Volume - The SSD limit per volume.
- ssd
Volume DoubleProvisioned - 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_ floatcontract - The maximum number of cores per contract.
- cores_
per_ floatserver - The maximum number of cores per server.
- cores_
provisioned float - The number of cores provisioned.
- das_
volume_ floatprovisioned - The DAS volume provisioned.
- hdd_
limit_ floatper_ contract - The HDD limit per contract.
- hdd_
limit_ floatper_ volume - The HDD limit per volume.
- hdd_
volume_ floatprovisioned - The HDD volume provisioned.
- k8s_
cluster_ floatlimit_ total - The total Kubernetes cluster limit.
- k8s_
clusters_ floatprovisioned - The number of Kubernetes clusters provisioned.
- nat_
gateway_ floatlimit_ total - The total NAT gateway limit.
- nat_
gateway_ floatprovisioned - The number of NAT gateways provisioned.
- nlb_
limit_ floattotal - The total NLB limit.
- nlb_
provisioned float - The number of NLBs provisioned.
- ram_
per_ floatcontract - The maximum RAM per contract in MB.
- ram_
per_ floatserver - The maximum RAM per server in MB.
- ram_
provisioned float - The RAM provisioned.
- reservable_
ips float - The number of reservable IPs.
- reserved_
ips_ floatin_ use - The number of reserved IPs in use.
- reserved_
ips_ floaton_ contract - The number of reserved IPs on the contract.
- rules_
per_ floatsecurity_ group - The number of rules per security group.
- security_
groups_ floatper_ resource - The number of security groups per resource.
- security_
groups_ floatper_ vdc - The number of security groups per VDC.
- ssd_
limit_ floatper_ contract - The SSD limit per contract.
- ssd_
limit_ floatper_ volume - The SSD limit per volume.
- ssd_
volume_ floatprovisioned - 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/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.
ionoscloud 6.7.7 published on Tuesday, May 20, 2025 by ionos-cloud