1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. ComputeImageCapabilitySchema
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Core.ComputeImageCapabilitySchema

Explore with Pulumi AI

This resource provides the Compute Image Capability Schema resource in Oracle Cloud Infrastructure Core service.

Creates compute image capability schema.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  testComputeImageCapabilitySchema:
    type: oci:Core:ComputeImageCapabilitySchema
    name: test_compute_image_capability_schema
    properties:
      compartmentId: ${compartmentId}
      computeGlobalImageCapabilitySchemaVersionName: ${computeImageCapabilitySchemaComputeGlobalImageCapabilitySchemaVersionName}
      imageId: ${testImage.id}
      schemaData:
        - descriptorType: ${computeImageCapabilitySchemaSchemaDataDescriptorType}
          source: ${computeImageCapabilitySchemaSchemaDataSource}
          defaultValue: ${computeImageCapabilitySchemaSchemaDataDefaultValue}
          values: ${computeImageCapabilitySchemaSchemaDataValues}
      definedTags:
        Operations.CostCenter: '42'
      displayName: ${computeImageCapabilitySchemaDisplayName}
      freeformTags:
        Department: Finance
Copy

Create ComputeImageCapabilitySchema Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ComputeImageCapabilitySchema(name: string, args: ComputeImageCapabilitySchemaArgs, opts?: CustomResourceOptions);
@overload
def ComputeImageCapabilitySchema(resource_name: str,
                                 args: ComputeImageCapabilitySchemaArgs,
                                 opts: Optional[ResourceOptions] = None)

@overload
def ComputeImageCapabilitySchema(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 compartment_id: Optional[str] = None,
                                 compute_global_image_capability_schema_version_name: Optional[str] = None,
                                 image_id: Optional[str] = None,
                                 schema_data: Optional[Mapping[str, str]] = None,
                                 defined_tags: Optional[Mapping[str, str]] = None,
                                 display_name: Optional[str] = None,
                                 freeform_tags: Optional[Mapping[str, str]] = None)
func NewComputeImageCapabilitySchema(ctx *Context, name string, args ComputeImageCapabilitySchemaArgs, opts ...ResourceOption) (*ComputeImageCapabilitySchema, error)
public ComputeImageCapabilitySchema(string name, ComputeImageCapabilitySchemaArgs args, CustomResourceOptions? opts = null)
public ComputeImageCapabilitySchema(String name, ComputeImageCapabilitySchemaArgs args)
public ComputeImageCapabilitySchema(String name, ComputeImageCapabilitySchemaArgs args, CustomResourceOptions options)
type: oci:Core:ComputeImageCapabilitySchema
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var computeImageCapabilitySchemaResource = new Oci.Core.ComputeImageCapabilitySchema("computeImageCapabilitySchemaResource", new()
{
    CompartmentId = "string",
    ComputeGlobalImageCapabilitySchemaVersionName = "string",
    ImageId = "string",
    SchemaData = 
    {
        { "string", "string" },
    },
    DefinedTags = 
    {
        { "string", "string" },
    },
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := Core.NewComputeImageCapabilitySchema(ctx, "computeImageCapabilitySchemaResource", &Core.ComputeImageCapabilitySchemaArgs{
	CompartmentId: pulumi.String("string"),
	ComputeGlobalImageCapabilitySchemaVersionName: pulumi.String("string"),
	ImageId: pulumi.String("string"),
	SchemaData: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DisplayName: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var computeImageCapabilitySchemaResource = new ComputeImageCapabilitySchema("computeImageCapabilitySchemaResource", ComputeImageCapabilitySchemaArgs.builder()
    .compartmentId("string")
    .computeGlobalImageCapabilitySchemaVersionName("string")
    .imageId("string")
    .schemaData(Map.of("string", "string"))
    .definedTags(Map.of("string", "string"))
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .build());
Copy
compute_image_capability_schema_resource = oci.core.ComputeImageCapabilitySchema("computeImageCapabilitySchemaResource",
    compartment_id="string",
    compute_global_image_capability_schema_version_name="string",
    image_id="string",
    schema_data={
        "string": "string",
    },
    defined_tags={
        "string": "string",
    },
    display_name="string",
    freeform_tags={
        "string": "string",
    })
Copy
const computeImageCapabilitySchemaResource = new oci.core.ComputeImageCapabilitySchema("computeImageCapabilitySchemaResource", {
    compartmentId: "string",
    computeGlobalImageCapabilitySchemaVersionName: "string",
    imageId: "string",
    schemaData: {
        string: "string",
    },
    definedTags: {
        string: "string",
    },
    displayName: "string",
    freeformTags: {
        string: "string",
    },
});
Copy
type: oci:Core:ComputeImageCapabilitySchema
properties:
    compartmentId: string
    computeGlobalImageCapabilitySchemaVersionName: string
    definedTags:
        string: string
    displayName: string
    freeformTags:
        string: string
    imageId: string
    schemaData:
        string: string
Copy

ComputeImageCapabilitySchema Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ComputeImageCapabilitySchema resource accepts the following input properties:

CompartmentId This property is required. string
(Updatable) The OCID of the compartment that contains the resource.
ComputeGlobalImageCapabilitySchemaVersionName
This property is required.
Changes to this property will trigger replacement.
string
The name of the compute global image capability schema version
ImageId
This property is required.
Changes to this property will trigger replacement.
string
The ocid of the image
SchemaData This property is required. Dictionary<string, string>
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
DefinedTags Dictionary<string, string>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
FreeformTags Dictionary<string, string>
(Updatable) 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"}
CompartmentId This property is required. string
(Updatable) The OCID of the compartment that contains the resource.
ComputeGlobalImageCapabilitySchemaVersionName
This property is required.
Changes to this property will trigger replacement.
string
The name of the compute global image capability schema version
ImageId
This property is required.
Changes to this property will trigger replacement.
string
The ocid of the image
SchemaData This property is required. map[string]string
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
DefinedTags map[string]string
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
FreeformTags map[string]string
(Updatable) 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"}
compartmentId This property is required. String
(Updatable) The OCID of the compartment that contains the resource.
computeGlobalImageCapabilitySchemaVersionName
This property is required.
Changes to this property will trigger replacement.
String
The name of the compute global image capability schema version
imageId
This property is required.
Changes to this property will trigger replacement.
String
The ocid of the image
schemaData This property is required. Map<String,String>
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
definedTags Map<String,String>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags Map<String,String>
(Updatable) 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"}
compartmentId This property is required. string
(Updatable) The OCID of the compartment that contains the resource.
computeGlobalImageCapabilitySchemaVersionName
This property is required.
Changes to this property will trigger replacement.
string
The name of the compute global image capability schema version
imageId
This property is required.
Changes to this property will trigger replacement.
string
The ocid of the image
schemaData This property is required. {[key: string]: string}
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
definedTags {[key: string]: string}
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags {[key: string]: string}
(Updatable) 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"}
compartment_id This property is required. str
(Updatable) The OCID of the compartment that contains the resource.
compute_global_image_capability_schema_version_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the compute global image capability schema version
image_id
This property is required.
Changes to this property will trigger replacement.
str
The ocid of the image
schema_data This property is required. Mapping[str, str]
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
defined_tags Mapping[str, str]
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeform_tags Mapping[str, str]
(Updatable) 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"}
compartmentId This property is required. String
(Updatable) The OCID of the compartment that contains the resource.
computeGlobalImageCapabilitySchemaVersionName
This property is required.
Changes to this property will trigger replacement.
String
The name of the compute global image capability schema version
imageId
This property is required.
Changes to this property will trigger replacement.
String
The ocid of the image
schemaData This property is required. Map<String>
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
definedTags Map<String>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags Map<String>
(Updatable) 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"}

Outputs

All input properties are implicitly available as output properties. Additionally, the ComputeImageCapabilitySchema resource produces the following output properties:

ComputeGlobalImageCapabilitySchemaId string
The ocid of the compute global image capability schema
Id string
The provider-assigned unique ID for this managed resource.
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
ComputeGlobalImageCapabilitySchemaId string
The ocid of the compute global image capability schema
Id string
The provider-assigned unique ID for this managed resource.
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
computeGlobalImageCapabilitySchemaId String
The ocid of the compute global image capability schema
id String
The provider-assigned unique ID for this managed resource.
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
computeGlobalImageCapabilitySchemaId string
The ocid of the compute global image capability schema
id string
The provider-assigned unique ID for this managed resource.
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
compute_global_image_capability_schema_id str
The ocid of the compute global image capability schema
id str
The provider-assigned unique ID for this managed resource.
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
computeGlobalImageCapabilitySchemaId String
The ocid of the compute global image capability schema
id String
The provider-assigned unique ID for this managed resource.
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

Look up Existing ComputeImageCapabilitySchema Resource

Get an existing ComputeImageCapabilitySchema resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ComputeImageCapabilitySchemaState, opts?: CustomResourceOptions): ComputeImageCapabilitySchema
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        compute_global_image_capability_schema_id: Optional[str] = None,
        compute_global_image_capability_schema_version_name: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        image_id: Optional[str] = None,
        schema_data: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None) -> ComputeImageCapabilitySchema
func GetComputeImageCapabilitySchema(ctx *Context, name string, id IDInput, state *ComputeImageCapabilitySchemaState, opts ...ResourceOption) (*ComputeImageCapabilitySchema, error)
public static ComputeImageCapabilitySchema Get(string name, Input<string> id, ComputeImageCapabilitySchemaState? state, CustomResourceOptions? opts = null)
public static ComputeImageCapabilitySchema get(String name, Output<String> id, ComputeImageCapabilitySchemaState state, CustomResourceOptions options)
resources:  _:    type: oci:Core:ComputeImageCapabilitySchema    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId string
(Updatable) The OCID of the compartment that contains the resource.
ComputeGlobalImageCapabilitySchemaId string
The ocid of the compute global image capability schema
ComputeGlobalImageCapabilitySchemaVersionName Changes to this property will trigger replacement. string
The name of the compute global image capability schema version
DefinedTags Dictionary<string, string>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
FreeformTags Dictionary<string, string>
(Updatable) 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"}
ImageId Changes to this property will trigger replacement. string
The ocid of the image
SchemaData Dictionary<string, string>
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
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
(Updatable) The OCID of the compartment that contains the resource.
ComputeGlobalImageCapabilitySchemaId string
The ocid of the compute global image capability schema
ComputeGlobalImageCapabilitySchemaVersionName Changes to this property will trigger replacement. string
The name of the compute global image capability schema version
DefinedTags map[string]string
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
FreeformTags map[string]string
(Updatable) 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"}
ImageId Changes to this property will trigger replacement. string
The ocid of the image
SchemaData map[string]string
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
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
(Updatable) The OCID of the compartment that contains the resource.
computeGlobalImageCapabilitySchemaId String
The ocid of the compute global image capability schema
computeGlobalImageCapabilitySchemaVersionName Changes to this property will trigger replacement. String
The name of the compute global image capability schema version
definedTags Map<String,String>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags Map<String,String>
(Updatable) 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"}
imageId Changes to this property will trigger replacement. String
The ocid of the image
schemaData Map<String,String>
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
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
(Updatable) The OCID of the compartment that contains the resource.
computeGlobalImageCapabilitySchemaId string
The ocid of the compute global image capability schema
computeGlobalImageCapabilitySchemaVersionName Changes to this property will trigger replacement. string
The name of the compute global image capability schema version
definedTags {[key: string]: string}
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags {[key: string]: string}
(Updatable) 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"}
imageId Changes to this property will trigger replacement. string
The ocid of the image
schemaData {[key: string]: string}
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
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
(Updatable) The OCID of the compartment that contains the resource.
compute_global_image_capability_schema_id str
The ocid of the compute global image capability schema
compute_global_image_capability_schema_version_name Changes to this property will trigger replacement. str
The name of the compute global image capability schema version
defined_tags Mapping[str, str]
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeform_tags Mapping[str, str]
(Updatable) 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"}
image_id Changes to this property will trigger replacement. str
The ocid of the image
schema_data Mapping[str, str]
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
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
(Updatable) The OCID of the compartment that contains the resource.
computeGlobalImageCapabilitySchemaId String
The ocid of the compute global image capability schema
computeGlobalImageCapabilitySchemaVersionName Changes to this property will trigger replacement. String
The name of the compute global image capability schema version
definedTags Map<String>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags Map<String>
(Updatable) 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"}
imageId Changes to this property will trigger replacement. String
The ocid of the image
schemaData Map<String>
(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
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

Import

ComputeImageCapabilitySchemas can be imported using the id, e.g.

$ pulumi import oci:Core/computeImageCapabilitySchema:ComputeImageCapabilitySchema test_compute_image_capability_schema "id"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.