1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeImageCapabilitySchema
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getComputeImageCapabilitySchema

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Compute Image Capability Schema resource in Oracle Cloud Infrastructure Core service.

    Gets the specified Compute Image Capability Schema

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeImageCapabilitySchema = oci.Core.getComputeImageCapabilitySchema({
        computeImageCapabilitySchemaId: testComputeImageCapabilitySchemaOciCoreComputeImageCapabilitySchema.id,
        isMergeEnabled: computeImageCapabilitySchemaIsMergeEnabled,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_image_capability_schema = oci.Core.get_compute_image_capability_schema(compute_image_capability_schema_id=test_compute_image_capability_schema_oci_core_compute_image_capability_schema["id"],
        is_merge_enabled=compute_image_capability_schema_is_merge_enabled)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetComputeImageCapabilitySchema(ctx, &core.GetComputeImageCapabilitySchemaArgs{
    			ComputeImageCapabilitySchemaId: testComputeImageCapabilitySchemaOciCoreComputeImageCapabilitySchema.Id,
    			IsMergeEnabled:                 pulumi.StringRef(computeImageCapabilitySchemaIsMergeEnabled),
    		}, 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 testComputeImageCapabilitySchema = Oci.Core.GetComputeImageCapabilitySchema.Invoke(new()
        {
            ComputeImageCapabilitySchemaId = testComputeImageCapabilitySchemaOciCoreComputeImageCapabilitySchema.Id,
            IsMergeEnabled = computeImageCapabilitySchemaIsMergeEnabled,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetComputeImageCapabilitySchemaArgs;
    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 testComputeImageCapabilitySchema = CoreFunctions.getComputeImageCapabilitySchema(GetComputeImageCapabilitySchemaArgs.builder()
                .computeImageCapabilitySchemaId(testComputeImageCapabilitySchemaOciCoreComputeImageCapabilitySchema.id())
                .isMergeEnabled(computeImageCapabilitySchemaIsMergeEnabled)
                .build());
    
        }
    }
    
    variables:
      testComputeImageCapabilitySchema:
        fn::invoke:
          Function: oci:Core:getComputeImageCapabilitySchema
          Arguments:
            computeImageCapabilitySchemaId: ${testComputeImageCapabilitySchemaOciCoreComputeImageCapabilitySchema.id}
            isMergeEnabled: ${computeImageCapabilitySchemaIsMergeEnabled}
    

    Using getComputeImageCapabilitySchema

    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 getComputeImageCapabilitySchema(args: GetComputeImageCapabilitySchemaArgs, opts?: InvokeOptions): Promise<GetComputeImageCapabilitySchemaResult>
    function getComputeImageCapabilitySchemaOutput(args: GetComputeImageCapabilitySchemaOutputArgs, opts?: InvokeOptions): Output<GetComputeImageCapabilitySchemaResult>
    def get_compute_image_capability_schema(compute_image_capability_schema_id: Optional[str] = None,
                                            is_merge_enabled: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetComputeImageCapabilitySchemaResult
    def get_compute_image_capability_schema_output(compute_image_capability_schema_id: Optional[pulumi.Input[str]] = None,
                                            is_merge_enabled: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetComputeImageCapabilitySchemaResult]
    func GetComputeImageCapabilitySchema(ctx *Context, args *GetComputeImageCapabilitySchemaArgs, opts ...InvokeOption) (*GetComputeImageCapabilitySchemaResult, error)
    func GetComputeImageCapabilitySchemaOutput(ctx *Context, args *GetComputeImageCapabilitySchemaOutputArgs, opts ...InvokeOption) GetComputeImageCapabilitySchemaResultOutput

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

    public static class GetComputeImageCapabilitySchema 
    {
        public static Task<GetComputeImageCapabilitySchemaResult> InvokeAsync(GetComputeImageCapabilitySchemaArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeImageCapabilitySchemaResult> Invoke(GetComputeImageCapabilitySchemaInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetComputeImageCapabilitySchemaResult> getComputeImageCapabilitySchema(GetComputeImageCapabilitySchemaArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getComputeImageCapabilitySchema:getComputeImageCapabilitySchema
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ComputeImageCapabilitySchemaId string
    The id of the compute image capability schema or the image ocid
    IsMergeEnabled string
    Merge the image capability schema with the global image capability schema
    ComputeImageCapabilitySchemaId string
    The id of the compute image capability schema or the image ocid
    IsMergeEnabled string
    Merge the image capability schema with the global image capability schema
    computeImageCapabilitySchemaId String
    The id of the compute image capability schema or the image ocid
    isMergeEnabled String
    Merge the image capability schema with the global image capability schema
    computeImageCapabilitySchemaId string
    The id of the compute image capability schema or the image ocid
    isMergeEnabled string
    Merge the image capability schema with the global image capability schema
    compute_image_capability_schema_id str
    The id of the compute image capability schema or the image ocid
    is_merge_enabled str
    Merge the image capability schema with the global image capability schema
    computeImageCapabilitySchemaId String
    The id of the compute image capability schema or the image ocid
    isMergeEnabled String
    Merge the image capability schema with the global image capability schema

    getComputeImageCapabilitySchema Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the compute global image capability schema
    ComputeGlobalImageCapabilitySchemaId string
    The ocid of the compute global image capability schema
    ComputeGlobalImageCapabilitySchemaVersionName string
    The name of the compute global image capability schema version
    ComputeImageCapabilitySchemaId string
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The compute image capability schema OCID.
    ImageId string
    The OCID of the image associated with this compute image capability schema
    SchemaData Dictionary<string, string>
    A mapping of each capability name to its ImageCapabilityDescriptor.
    TimeCreated string
    The date and time the compute image capability schema was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    IsMergeEnabled string
    CompartmentId string
    The OCID of the compartment containing the compute global image capability schema
    ComputeGlobalImageCapabilitySchemaId string
    The ocid of the compute global image capability schema
    ComputeGlobalImageCapabilitySchemaVersionName string
    The name of the compute global image capability schema version
    ComputeImageCapabilitySchemaId string
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The compute image capability schema OCID.
    ImageId string
    The OCID of the image associated with this compute image capability schema
    SchemaData map[string]string
    A mapping of each capability name to its ImageCapabilityDescriptor.
    TimeCreated string
    The date and time the compute image capability schema was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    IsMergeEnabled string
    compartmentId String
    The OCID of the compartment containing the compute global image capability schema
    computeGlobalImageCapabilitySchemaId String
    The ocid of the compute global image capability schema
    computeGlobalImageCapabilitySchemaVersionName String
    The name of the compute global image capability schema version
    computeImageCapabilitySchemaId String
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The compute image capability schema OCID.
    imageId String
    The OCID of the image associated with this compute image capability schema
    schemaData Map<String,String>
    A mapping of each capability name to its ImageCapabilityDescriptor.
    timeCreated String
    The date and time the compute image capability schema was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    isMergeEnabled String
    compartmentId string
    The OCID of the compartment containing the compute global image capability schema
    computeGlobalImageCapabilitySchemaId string
    The ocid of the compute global image capability schema
    computeGlobalImageCapabilitySchemaVersionName string
    The name of the compute global image capability schema version
    computeImageCapabilitySchemaId string
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The compute image capability schema OCID.
    imageId string
    The OCID of the image associated with this compute image capability schema
    schemaData {[key: string]: string}
    A mapping of each capability name to its ImageCapabilityDescriptor.
    timeCreated string
    The date and time the compute image capability schema was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    isMergeEnabled string
    compartment_id str
    The OCID of the compartment containing the compute global image capability schema
    compute_global_image_capability_schema_id str
    The ocid of the compute global image capability schema
    compute_global_image_capability_schema_version_name str
    The name of the compute global image capability schema version
    compute_image_capability_schema_id str
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The compute image capability schema OCID.
    image_id str
    The OCID of the image associated with this compute image capability schema
    schema_data Mapping[str, str]
    A mapping of each capability name to its ImageCapabilityDescriptor.
    time_created str
    The date and time the compute image capability schema was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    is_merge_enabled str
    compartmentId String
    The OCID of the compartment containing the compute global image capability schema
    computeGlobalImageCapabilitySchemaId String
    The ocid of the compute global image capability schema
    computeGlobalImageCapabilitySchemaVersionName String
    The name of the compute global image capability schema version
    computeImageCapabilitySchemaId String
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The compute image capability schema OCID.
    imageId String
    The OCID of the image associated with this compute image capability schema
    schemaData Map<String>
    A mapping of each capability name to its ImageCapabilityDescriptor.
    timeCreated String
    The date and time the compute image capability schema was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    isMergeEnabled String

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi