1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Ocvp
  5. getSupportedSkus
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.Ocvp.getSupportedSkus

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

    This data source provides the list of Supported Skus in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service.
    !> WARNING: This data source is deprecated and will be removed, please use “oci.Ocvp.getSupportedCommitments” instead.

    Lists supported SKUs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSupportedSkus = oci.Ocvp.getSupportedSkus({
        compartmentId: compartmentId,
        hostShapeName: testShape.name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_supported_skus = oci.Ocvp.get_supported_skus(compartment_id=compartment_id,
        host_shape_name=test_shape["name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Ocvp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Ocvp.GetSupportedSkus(ctx, &ocvp.GetSupportedSkusArgs{
    			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 testSupportedSkus = Oci.Ocvp.GetSupportedSkus.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.GetSupportedSkusArgs;
    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 testSupportedSkus = OcvpFunctions.getSupportedSkus(GetSupportedSkusArgs.builder()
                .compartmentId(compartmentId)
                .hostShapeName(testShape.name())
                .build());
    
        }
    }
    
    variables:
      testSupportedSkus:
        fn::invoke:
          Function: oci:Ocvp:getSupportedSkus
          Arguments:
            compartmentId: ${compartmentId}
            hostShapeName: ${testShape.name}
    

    Using getSupportedSkus

    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 getSupportedSkus(args: GetSupportedSkusArgs, opts?: InvokeOptions): Promise<GetSupportedSkusResult>
    function getSupportedSkusOutput(args: GetSupportedSkusOutputArgs, opts?: InvokeOptions): Output<GetSupportedSkusResult>
    def get_supported_skus(compartment_id: Optional[str] = None,
                           filters: Optional[Sequence[_ocvp.GetSupportedSkusFilter]] = None,
                           host_shape_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetSupportedSkusResult
    def get_supported_skus_output(compartment_id: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_ocvp.GetSupportedSkusFilterArgs]]]] = None,
                           host_shape_name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetSupportedSkusResult]
    func GetSupportedSkus(ctx *Context, args *GetSupportedSkusArgs, opts ...InvokeOption) (*GetSupportedSkusResult, error)
    func GetSupportedSkusOutput(ctx *Context, args *GetSupportedSkusOutputArgs, opts ...InvokeOption) GetSupportedSkusResultOutput

    > Note: This function is named GetSupportedSkus in the Go SDK.

    public static class GetSupportedSkus 
    {
        public static Task<GetSupportedSkusResult> InvokeAsync(GetSupportedSkusArgs args, InvokeOptions? opts = null)
        public static Output<GetSupportedSkusResult> Invoke(GetSupportedSkusInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSupportedSkusResult> getSupportedSkus(GetSupportedSkusArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Ocvp/getSupportedSkus:getSupportedSkus
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment.
    Filters List<GetSupportedSkusFilter>
    HostShapeName string
    A filter to return only resources that match or support the given ESXi host shape.
    CompartmentId string
    The OCID of the compartment.
    Filters []GetSupportedSkusFilter
    HostShapeName string
    A filter to return only resources that match or support the given ESXi host shape.
    compartmentId String
    The OCID of the compartment.
    filters List<GetSupportedSkusFilter>
    hostShapeName String
    A filter to return only resources that match or support the given ESXi host shape.
    compartmentId string
    The OCID of the compartment.
    filters GetSupportedSkusFilter[]
    hostShapeName string
    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[ocvp.GetSupportedSkusFilter]
    host_shape_name str
    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>
    hostShapeName String
    A filter to return only resources that match or support the given ESXi host shape.

    getSupportedSkus Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetSupportedSkusItem>
    The list of the supported SKUs.
    Filters List<GetSupportedSkusFilter>
    HostShapeName string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetSupportedSkusItem
    The list of the supported SKUs.
    Filters []GetSupportedSkusFilter
    HostShapeName string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetSupportedSkusItem>
    The list of the supported SKUs.
    filters List<GetSupportedSkusFilter>
    hostShapeName String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    items GetSupportedSkusItem[]
    The list of the supported SKUs.
    filters GetSupportedSkusFilter[]
    hostShapeName string
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[ocvp.GetSupportedSkusItem]
    The list of the supported SKUs.
    filters Sequence[ocvp.GetSupportedSkusFilter]
    host_shape_name str
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    The list of the supported SKUs.
    filters List<Property Map>
    hostShapeName String

    Supporting Types

    GetSupportedSkusFilter

    Name string
    name of SKU
    Values List<string>
    Regex bool
    Name string
    name of SKU
    Values []string
    Regex bool
    name String
    name of SKU
    values List<String>
    regex Boolean
    name string
    name of SKU
    values string[]
    regex boolean
    name str
    name of SKU
    values Sequence[str]
    regex bool
    name String
    name of SKU
    values List<String>
    regex Boolean

    GetSupportedSkusItem

    Name string
    name of SKU
    Name string
    name of SKU
    name String
    name of SKU
    name string
    name of SKU
    name str
    name of SKU
    name String
    name of SKU

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi