Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Ocvp.getSupportedCommitments
Explore with Pulumi AI
This data source provides the list of Supported Commitments in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service.
Lists supported Commitments.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSupportedCommitments = oci.Ocvp.getSupportedCommitments({
    compartmentId: compartmentId,
    hostShapeName: testShape.name,
});
import pulumi
import pulumi_oci as oci
test_supported_commitments = oci.Ocvp.get_supported_commitments(compartment_id=compartment_id,
    host_shape_name=test_shape["name"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ocvp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ocvp.GetSupportedCommitments(ctx, &ocvp.GetSupportedCommitmentsArgs{
			CompartmentId: compartmentId,
			HostShapeName: pulumi.StringRef(testShape.Name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testSupportedCommitments = Oci.Ocvp.GetSupportedCommitments.Invoke(new()
    {
        CompartmentId = compartmentId,
        HostShapeName = testShape.Name,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Ocvp.OcvpFunctions;
import com.pulumi.oci.Ocvp.inputs.GetSupportedCommitmentsArgs;
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 testSupportedCommitments = OcvpFunctions.getSupportedCommitments(GetSupportedCommitmentsArgs.builder()
            .compartmentId(compartmentId)
            .hostShapeName(testShape.name())
            .build());
    }
}
variables:
  testSupportedCommitments:
    fn::invoke:
      function: oci:Ocvp:getSupportedCommitments
      arguments:
        compartmentId: ${compartmentId}
        hostShapeName: ${testShape.name}
Using getSupportedCommitments
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 getSupportedCommitments(args: GetSupportedCommitmentsArgs, opts?: InvokeOptions): Promise<GetSupportedCommitmentsResult>
function getSupportedCommitmentsOutput(args: GetSupportedCommitmentsOutputArgs, opts?: InvokeOptions): Output<GetSupportedCommitmentsResult>def get_supported_commitments(compartment_id: Optional[str] = None,
                              filters: Optional[Sequence[GetSupportedCommitmentsFilter]] = None,
                              host_shape_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSupportedCommitmentsResult
def get_supported_commitments_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSupportedCommitmentsFilterArgs]]]] = None,
                              host_shape_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSupportedCommitmentsResult]func GetSupportedCommitments(ctx *Context, args *GetSupportedCommitmentsArgs, opts ...InvokeOption) (*GetSupportedCommitmentsResult, error)
func GetSupportedCommitmentsOutput(ctx *Context, args *GetSupportedCommitmentsOutputArgs, opts ...InvokeOption) GetSupportedCommitmentsResultOutput> Note: This function is named GetSupportedCommitments in the Go SDK.
public static class GetSupportedCommitments 
{
    public static Task<GetSupportedCommitmentsResult> InvokeAsync(GetSupportedCommitmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetSupportedCommitmentsResult> Invoke(GetSupportedCommitmentsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSupportedCommitmentsResult> getSupportedCommitments(GetSupportedCommitmentsArgs args, InvokeOptions options)
public static Output<GetSupportedCommitmentsResult> getSupportedCommitments(GetSupportedCommitmentsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Ocvp/getSupportedCommitments:getSupportedCommitments
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- Filters
List<GetSupported Commitments Filter> 
- HostShape stringName 
- A filter to return only resources that match or support the given ESXi host shape.
- CompartmentId string
- The OCID of the compartment.
- Filters
[]GetSupported Commitments Filter 
- HostShape stringName 
- A filter to return only resources that match or support the given ESXi host shape.
- compartmentId String
- The OCID of the compartment.
- filters
List<GetSupported Commitments Filter> 
- hostShape StringName 
- A filter to return only resources that match or support the given ESXi host shape.
- compartmentId string
- The OCID of the compartment.
- filters
GetSupported Commitments Filter[] 
- hostShape stringName 
- A filter to return only resources that match or support the given ESXi host shape.
- compartment_id str
- The OCID of the compartment.
- filters
Sequence[GetSupported Commitments Filter] 
- host_shape_ strname 
- A filter to return only resources that match or support the given ESXi host shape.
- compartmentId String
- The OCID of the compartment.
- filters List<Property Map>
- hostShape StringName 
- A filter to return only resources that match or support the given ESXi host shape.
getSupportedCommitments Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetSupported Commitments Item> 
- A list of the supported Commitments.
- Filters
List<GetSupported Commitments Filter> 
- HostShape stringName 
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetSupported Commitments Item 
- A list of the supported Commitments.
- Filters
[]GetSupported Commitments Filter 
- HostShape stringName 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetSupported Commitments Item> 
- A list of the supported Commitments.
- filters
List<GetSupported Commitments Filter> 
- hostShape StringName 
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetSupported Commitments Item[] 
- A list of the supported Commitments.
- filters
GetSupported Commitments Filter[] 
- hostShape stringName 
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetSupported Commitments Item] 
- A list of the supported Commitments.
- filters
Sequence[GetSupported Commitments Filter] 
- host_shape_ strname 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- A list of the supported Commitments.
- filters List<Property Map>
- hostShape StringName 
Supporting Types
GetSupportedCommitmentsFilter   
GetSupportedCommitmentsItem   
- Name string
- name of Commitment
- Name string
- name of Commitment
- name String
- name of Commitment
- name string
- name of Commitment
- name str
- name of Commitment
- name String
- name of Commitment
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.