1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getManagedKafkaNodeShapes
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    This data source provides the list of Node Shapes in Oracle Cloud Infrastructure Managed Kafka service.

    Returns the list of shapes allowed in the region.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNodeShapes = oci.oci.getManagedKafkaNodeShapes({
        compartmentId: compartmentId,
        name: nodeShapeName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_node_shapes = oci.oci.get_managed_kafka_node_shapes(compartment_id=compartment_id,
        name=node_shape_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetManagedKafkaNodeShapes(ctx, &oci.GetManagedKafkaNodeShapesArgs{
    			CompartmentId: pulumi.StringRef(compartmentId),
    			Name:          pulumi.StringRef(nodeShapeName),
    		}, 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 testNodeShapes = Oci.Oci.GetManagedKafkaNodeShapes.Invoke(new()
        {
            CompartmentId = compartmentId,
            Name = nodeShapeName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetManagedKafkaNodeShapesArgs;
    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 testNodeShapes = OciFunctions.getManagedKafkaNodeShapes(GetManagedKafkaNodeShapesArgs.builder()
                .compartmentId(compartmentId)
                .name(nodeShapeName)
                .build());
    
        }
    }
    
    variables:
      testNodeShapes:
        fn::invoke:
          function: oci:oci:getManagedKafkaNodeShapes
          arguments:
            compartmentId: ${compartmentId}
            name: ${nodeShapeName}
    

    Using getManagedKafkaNodeShapes

    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 getManagedKafkaNodeShapes(args: GetManagedKafkaNodeShapesArgs, opts?: InvokeOptions): Promise<GetManagedKafkaNodeShapesResult>
    function getManagedKafkaNodeShapesOutput(args: GetManagedKafkaNodeShapesOutputArgs, opts?: InvokeOptions): Output<GetManagedKafkaNodeShapesResult>
    def get_managed_kafka_node_shapes(compartment_id: Optional[str] = None,
                                      filters: Optional[Sequence[GetManagedKafkaNodeShapesFilter]] = None,
                                      name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetManagedKafkaNodeShapesResult
    def get_managed_kafka_node_shapes_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetManagedKafkaNodeShapesFilterArgs]]]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetManagedKafkaNodeShapesResult]
    func GetManagedKafkaNodeShapes(ctx *Context, args *GetManagedKafkaNodeShapesArgs, opts ...InvokeOption) (*GetManagedKafkaNodeShapesResult, error)
    func GetManagedKafkaNodeShapesOutput(ctx *Context, args *GetManagedKafkaNodeShapesOutputArgs, opts ...InvokeOption) GetManagedKafkaNodeShapesResultOutput

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

    public static class GetManagedKafkaNodeShapes 
    {
        public static Task<GetManagedKafkaNodeShapesResult> InvokeAsync(GetManagedKafkaNodeShapesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedKafkaNodeShapesResult> Invoke(GetManagedKafkaNodeShapesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedKafkaNodeShapesResult> getManagedKafkaNodeShapes(GetManagedKafkaNodeShapesArgs args, InvokeOptions options)
    public static Output<GetManagedKafkaNodeShapesResult> getManagedKafkaNodeShapes(GetManagedKafkaNodeShapesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getManagedKafkaNodeShapes:getManagedKafkaNodeShapes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters List<GetManagedKafkaNodeShapesFilter>
    Name string
    The name to filter on.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters []GetManagedKafkaNodeShapesFilter
    Name string
    The name to filter on.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<GetManagedKafkaNodeShapesFilter>
    name String
    The name to filter on.
    compartmentId string
    The OCID of the compartment in which to list resources.
    filters GetManagedKafkaNodeShapesFilter[]
    name string
    The name to filter on.
    compartment_id str
    The OCID of the compartment in which to list resources.
    filters Sequence[GetManagedKafkaNodeShapesFilter]
    name str
    The name to filter on.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<Property Map>
    name String
    The name to filter on.

    getManagedKafkaNodeShapes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NodeShapeCollections List<GetManagedKafkaNodeShapesNodeShapeCollection>
    The list of node_shape_collection.
    CompartmentId string
    Filters List<GetManagedKafkaNodeShapesFilter>
    Name string
    The name of the shape
    Id string
    The provider-assigned unique ID for this managed resource.
    NodeShapeCollections []GetManagedKafkaNodeShapesNodeShapeCollection
    The list of node_shape_collection.
    CompartmentId string
    Filters []GetManagedKafkaNodeShapesFilter
    Name string
    The name of the shape
    id String
    The provider-assigned unique ID for this managed resource.
    nodeShapeCollections List<GetManagedKafkaNodeShapesNodeShapeCollection>
    The list of node_shape_collection.
    compartmentId String
    filters List<GetManagedKafkaNodeShapesFilter>
    name String
    The name of the shape
    id string
    The provider-assigned unique ID for this managed resource.
    nodeShapeCollections GetManagedKafkaNodeShapesNodeShapeCollection[]
    The list of node_shape_collection.
    compartmentId string
    filters GetManagedKafkaNodeShapesFilter[]
    name string
    The name of the shape
    id str
    The provider-assigned unique ID for this managed resource.
    node_shape_collections Sequence[GetManagedKafkaNodeShapesNodeShapeCollection]
    The list of node_shape_collection.
    compartment_id str
    filters Sequence[GetManagedKafkaNodeShapesFilter]
    name str
    The name of the shape
    id String
    The provider-assigned unique ID for this managed resource.
    nodeShapeCollections List<Property Map>
    The list of node_shape_collection.
    compartmentId String
    filters List<Property Map>
    name String
    The name of the shape

    Supporting Types

    GetManagedKafkaNodeShapesFilter

    Name string
    The name to filter on.
    Values List<string>
    Regex bool
    Name string
    The name to filter on.
    Values []string
    Regex bool
    name String
    The name to filter on.
    values List<String>
    regex Boolean
    name string
    The name to filter on.
    values string[]
    regex boolean
    name str
    The name to filter on.
    values Sequence[str]
    regex bool
    name String
    The name to filter on.
    values List<String>
    regex Boolean

    GetManagedKafkaNodeShapesNodeShapeCollection

    items List<Property Map>
    List of NodeShapeSummary.

    GetManagedKafkaNodeShapesNodeShapeCollectionItem

    Name string
    The name to filter on.
    Name string
    The name to filter on.
    name String
    The name to filter on.
    name string
    The name to filter on.
    name str
    The name to filter on.
    name String
    The name to filter on.

    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 v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate