Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getComputeImageCapabilitySchemas
Explore with Pulumi AI
This data source provides the list of Compute Image Capability Schemas in Oracle Cloud Infrastructure Core service.
Lists Compute Image Capability Schema in the specified compartment. You can also query by a specific imageId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeImageCapabilitySchemas = oci.Core.getComputeImageCapabilitySchemas({
    compartmentId: compartmentId,
    displayName: computeImageCapabilitySchemaDisplayName,
    imageId: testImage.id,
});
import pulumi
import pulumi_oci as oci
test_compute_image_capability_schemas = oci.Core.get_compute_image_capability_schemas(compartment_id=compartment_id,
    display_name=compute_image_capability_schema_display_name,
    image_id=test_image["id"])
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.GetComputeImageCapabilitySchemas(ctx, &core.GetComputeImageCapabilitySchemasArgs{
			CompartmentId: pulumi.StringRef(compartmentId),
			DisplayName:   pulumi.StringRef(computeImageCapabilitySchemaDisplayName),
			ImageId:       pulumi.StringRef(testImage.Id),
		}, 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 testComputeImageCapabilitySchemas = Oci.Core.GetComputeImageCapabilitySchemas.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = computeImageCapabilitySchemaDisplayName,
        ImageId = testImage.Id,
    });
});
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.GetComputeImageCapabilitySchemasArgs;
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 testComputeImageCapabilitySchemas = CoreFunctions.getComputeImageCapabilitySchemas(GetComputeImageCapabilitySchemasArgs.builder()
            .compartmentId(compartmentId)
            .displayName(computeImageCapabilitySchemaDisplayName)
            .imageId(testImage.id())
            .build());
    }
}
variables:
  testComputeImageCapabilitySchemas:
    fn::invoke:
      function: oci:Core:getComputeImageCapabilitySchemas
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${computeImageCapabilitySchemaDisplayName}
        imageId: ${testImage.id}
Using getComputeImageCapabilitySchemas
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 getComputeImageCapabilitySchemas(args: GetComputeImageCapabilitySchemasArgs, opts?: InvokeOptions): Promise<GetComputeImageCapabilitySchemasResult>
function getComputeImageCapabilitySchemasOutput(args: GetComputeImageCapabilitySchemasOutputArgs, opts?: InvokeOptions): Output<GetComputeImageCapabilitySchemasResult>def get_compute_image_capability_schemas(compartment_id: Optional[str] = None,
                                         display_name: Optional[str] = None,
                                         filters: Optional[Sequence[GetComputeImageCapabilitySchemasFilter]] = None,
                                         image_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetComputeImageCapabilitySchemasResult
def get_compute_image_capability_schemas_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                         display_name: Optional[pulumi.Input[str]] = None,
                                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetComputeImageCapabilitySchemasFilterArgs]]]] = None,
                                         image_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetComputeImageCapabilitySchemasResult]func GetComputeImageCapabilitySchemas(ctx *Context, args *GetComputeImageCapabilitySchemasArgs, opts ...InvokeOption) (*GetComputeImageCapabilitySchemasResult, error)
func GetComputeImageCapabilitySchemasOutput(ctx *Context, args *GetComputeImageCapabilitySchemasOutputArgs, opts ...InvokeOption) GetComputeImageCapabilitySchemasResultOutput> Note: This function is named GetComputeImageCapabilitySchemas in the Go SDK.
public static class GetComputeImageCapabilitySchemas 
{
    public static Task<GetComputeImageCapabilitySchemasResult> InvokeAsync(GetComputeImageCapabilitySchemasArgs args, InvokeOptions? opts = null)
    public static Output<GetComputeImageCapabilitySchemasResult> Invoke(GetComputeImageCapabilitySchemasInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetComputeImageCapabilitySchemasResult> getComputeImageCapabilitySchemas(GetComputeImageCapabilitySchemasArgs args, InvokeOptions options)
public static Output<GetComputeImageCapabilitySchemasResult> getComputeImageCapabilitySchemas(GetComputeImageCapabilitySchemasArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getComputeImageCapabilitySchemas:getComputeImageCapabilitySchemas
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- A filter to return only resources that match the given compartment OCID exactly.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
List<GetCompute Image Capability Schemas Filter> 
- ImageId string
- The OCID of an image.
- CompartmentId string
- A filter to return only resources that match the given compartment OCID exactly.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
[]GetCompute Image Capability Schemas Filter 
- ImageId string
- The OCID of an image.
- compartmentId String
- A filter to return only resources that match the given compartment OCID exactly.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters
List<GetCompute Image Capability Schemas Filter> 
- imageId String
- The OCID of an image.
- compartmentId string
- A filter to return only resources that match the given compartment OCID exactly.
- displayName string
- A filter to return only resources that match the given display name exactly.
- filters
GetCompute Image Capability Schemas Filter[] 
- imageId string
- The OCID of an image.
- compartment_id str
- A filter to return only resources that match the given compartment OCID exactly.
- display_name str
- A filter to return only resources that match the given display name exactly.
- filters
Sequence[GetCompute Image Capability Schemas Filter] 
- image_id str
- The OCID of an image.
- compartmentId String
- A filter to return only resources that match the given compartment OCID exactly.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- imageId String
- The OCID of an image.
getComputeImageCapabilitySchemas Result
The following output properties are available:
- ComputeImage List<GetCapability Schemas Compute Image Capability Schemas Compute Image Capability Schema> 
- The list of compute_image_capability_schemas.
- Id string
- The provider-assigned unique ID for this managed resource.
- CompartmentId string
- The OCID of the compartment containing the compute global image capability schema
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<GetCompute Image Capability Schemas Filter> 
- ImageId string
- The OCID of the image associated with this compute image capability schema
- ComputeImage []GetCapability Schemas Compute Image Capability Schemas Compute Image Capability Schema 
- The list of compute_image_capability_schemas.
- Id string
- The provider-assigned unique ID for this managed resource.
- CompartmentId string
- The OCID of the compartment containing the compute global image capability schema
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]GetCompute Image Capability Schemas Filter 
- ImageId string
- The OCID of the image associated with this compute image capability schema
- computeImage List<GetCapability Schemas Compute Image Capability Schemas Compute Image Capability Schema> 
- The list of compute_image_capability_schemas.
- id String
- The provider-assigned unique ID for this managed resource.
- compartmentId String
- The OCID of the compartment containing the compute global image capability schema
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<GetCompute Image Capability Schemas Filter> 
- imageId String
- The OCID of the image associated with this compute image capability schema
- computeImage GetCapability Schemas Compute Image Capability Schemas Compute Image Capability Schema[] 
- The list of compute_image_capability_schemas.
- id string
- The provider-assigned unique ID for this managed resource.
- compartmentId string
- The OCID of the compartment containing the compute global image capability schema
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
GetCompute Image Capability Schemas Filter[] 
- imageId string
- The OCID of the image associated with this compute image capability schema
- compute_image_ Sequence[Getcapability_ schemas Compute Image Capability Schemas Compute Image Capability Schema] 
- The list of compute_image_capability_schemas.
- id str
- The provider-assigned unique ID for this managed resource.
- compartment_id str
- The OCID of the compartment containing the compute global image capability schema
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[GetCompute Image Capability Schemas Filter] 
- image_id str
- The OCID of the image associated with this compute image capability schema
- computeImage List<Property Map>Capability Schemas 
- The list of compute_image_capability_schemas.
- id String
- The provider-assigned unique ID for this managed resource.
- compartmentId String
- The OCID of the compartment containing the compute global image capability schema
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- imageId String
- The OCID of the image associated with this compute image capability schema
Supporting Types
GetComputeImageCapabilitySchemasComputeImageCapabilitySchema        
- CompartmentId string
- A filter to return only resources that match the given compartment OCID exactly.
- ComputeGlobal stringImage Capability Schema Id 
- The ocid of the compute global image capability schema
- ComputeGlobal stringImage Capability Schema Version Name 
- The name of the compute global image capability schema version
- 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 filter to return only resources that match the given display name exactly.
- 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 an image.
- 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
- CompartmentId string
- A filter to return only resources that match the given compartment OCID exactly.
- ComputeGlobal stringImage Capability Schema Id 
- The ocid of the compute global image capability schema
- ComputeGlobal stringImage Capability Schema Version Name 
- The name of the compute global image capability schema version
- 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 filter to return only resources that match the given display name exactly.
- 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 an image.
- 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
- compartmentId String
- A filter to return only resources that match the given compartment OCID exactly.
- computeGlobal StringImage Capability Schema Id 
- The ocid of the compute global image capability schema
- computeGlobal StringImage Capability Schema Version Name 
- The name of the compute global image capability schema version
- 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 filter to return only resources that match the given display name exactly.
- 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 an image.
- 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
- compartmentId string
- A filter to return only resources that match the given compartment OCID exactly.
- computeGlobal stringImage Capability Schema Id 
- The ocid of the compute global image capability schema
- computeGlobal stringImage Capability Schema Version Name 
- The name of the compute global image capability schema version
- {[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 filter to return only resources that match the given display name exactly.
- {[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 an image.
- 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
- compartment_id str
- A filter to return only resources that match the given compartment OCID exactly.
- compute_global_ strimage_ capability_ schema_ id 
- The ocid of the compute global image capability schema
- compute_global_ strimage_ capability_ schema_ version_ name 
- The name of the compute global image capability schema version
- 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 filter to return only resources that match the given display name exactly.
- 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 an image.
- 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
- compartmentId String
- A filter to return only resources that match the given compartment OCID exactly.
- computeGlobal StringImage Capability Schema Id 
- The ocid of the compute global image capability schema
- computeGlobal StringImage Capability Schema Version Name 
- The name of the compute global image capability schema version
- 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 filter to return only resources that match the given display name exactly.
- 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 an image.
- 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
GetComputeImageCapabilitySchemasFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.