Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

ComputeImageCapabilitySchema

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

Creates compute image capability schema.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testComputeImageCapabilitySchema = new Oci.Core.ComputeImageCapabilitySchema("testComputeImageCapabilitySchema", new Oci.Core.ComputeImageCapabilitySchemaArgs
        {
            CompartmentId = @var.Compartment_id,
            ComputeGlobalImageCapabilitySchemaVersionName = @var.Compute_image_capability_schema_compute_global_image_capability_schema_version_name,
            ImageId = oci_core_image.Test_image.Id,
            SchemaData = 
            {
                
                {
                    { "descriptorType", @var.Compute_image_capability_schema_schema_data_descriptor_type },
                    { "source", @var.Compute_image_capability_schema_schema_data_source },
                    { "defaultValue", @var.Compute_image_capability_schema_schema_data_default_value },
                    { "values", @var.Compute_image_capability_schema_schema_data_values },
                },
            },
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Compute_image_capability_schema_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Core.NewComputeImageCapabilitySchema(ctx, "testComputeImageCapabilitySchema", &Core.ComputeImageCapabilitySchemaArgs{
			CompartmentId: pulumi.Any(_var.Compartment_id),
			ComputeGlobalImageCapabilitySchemaVersionName: pulumi.Any(_var.Compute_image_capability_schema_compute_global_image_capability_schema_version_name),
			ImageId: pulumi.Any(oci_core_image.Test_image.Id),
			SchemaData: pulumi.AnyMap{
				pulumi.Any{
					DescriptorType: _var.Compute_image_capability_schema_schema_data_descriptor_type,
					Source:         _var.Compute_image_capability_schema_schema_data_source,
					DefaultValue:   _var.Compute_image_capability_schema_schema_data_default_value,
					Values:         _var.Compute_image_capability_schema_schema_data_values,
				},
			},
			DefinedTags: pulumi.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			DisplayName: pulumi.Any(_var.Compute_image_capability_schema_display_name),
			FreeformTags: pulumi.AnyMap{
				"Department": pulumi.Any("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_compute_image_capability_schema = oci.core.ComputeImageCapabilitySchema("testComputeImageCapabilitySchema",
    compartment_id=var["compartment_id"],
    compute_global_image_capability_schema_version_name=var["compute_image_capability_schema_compute_global_image_capability_schema_version_name"],
    image_id=oci_core_image["test_image"]["id"],
    schema_data=[{
        "descriptorType": var["compute_image_capability_schema_schema_data_descriptor_type"],
        "source": var["compute_image_capability_schema_schema_data_source"],
        "defaultValue": var["compute_image_capability_schema_schema_data_default_value"],
        "values": var["compute_image_capability_schema_schema_data_values"],
    }],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    display_name=var["compute_image_capability_schema_display_name"],
    freeform_tags={
        "Department": "Finance",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testComputeImageCapabilitySchema = new oci.core.ComputeImageCapabilitySchema("testComputeImageCapabilitySchema", {
    compartmentId: _var.compartment_id,
    computeGlobalImageCapabilitySchemaVersionName: _var.compute_image_capability_schema_compute_global_image_capability_schema_version_name,
    imageId: oci_core_image.test_image.id,
    schemaData: [{
        descriptorType: _var.compute_image_capability_schema_schema_data_descriptor_type,
        source: _var.compute_image_capability_schema_schema_data_source,
        defaultValue: _var.compute_image_capability_schema_schema_data_default_value,
        values: _var.compute_image_capability_schema_schema_data_values,
    }],
    definedTags: {
        "Operations.CostCenter": "42",
    },
    displayName: _var.compute_image_capability_schema_display_name,
    freeformTags: {
        Department: "Finance",
    },
});

Coming soon!

Create a ComputeImageCapabilitySchema Resource

new ComputeImageCapabilitySchema(name: string, args: ComputeImageCapabilitySchemaArgs, opts?: CustomResourceOptions);
@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,
                                 defined_tags: Optional[Mapping[str, Any]] = None,
                                 display_name: Optional[str] = None,
                                 freeform_tags: Optional[Mapping[str, Any]] = None,
                                 image_id: Optional[str] = None,
                                 schema_data: Optional[Mapping[str, Any]] = None)
@overload
def ComputeImageCapabilitySchema(resource_name: str,
                                 args: ComputeImageCapabilitySchemaArgs,
                                 opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args 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 string
The unique name of the resource.
args ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ComputeImageCapabilitySchemaArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The ComputeImageCapabilitySchema resource accepts the following input properties:

CompartmentId string

(Updatable) The OCID of the compartment that contains the resource.

ComputeGlobalImageCapabilitySchemaVersionName string

The name of the compute global image capability schema version

ImageId string

The ocid of the image

SchemaData Dictionary<string, object>

(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.

DefinedTags Dictionary<string, object>

(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, object>

(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 string

(Updatable) The OCID of the compartment that contains the resource.

ComputeGlobalImageCapabilitySchemaVersionName string

The name of the compute global image capability schema version

ImageId string

The ocid of the image

SchemaData map[string]interface{}

(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.

DefinedTags map[string]interface{}

(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]interface{}

(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 String

(Updatable) The OCID of the compartment that contains the resource.

computeGlobalImageCapabilitySchemaVersionName String

The name of the compute global image capability schema version

imageId String

The ocid of the image

schemaData Map<String,Object>

(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.

definedTags Map<String,Object>

(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,Object>

(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 string

(Updatable) The OCID of the compartment that contains the resource.

computeGlobalImageCapabilitySchemaVersionName string

The name of the compute global image capability schema version

imageId string

The ocid of the image

schemaData {[key: string]: any}

(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.

definedTags {[key: string]: any}

(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]: any}

(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 str

(Updatable) The OCID of the compartment that contains the resource.

compute_global_image_capability_schema_version_name str

The name of the compute global image capability schema version

image_id str

The ocid of the image

schema_data Mapping[str, Any]

(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.

defined_tags Mapping[str, Any]

(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, Any]

(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 String

(Updatable) The OCID of the compartment that contains the resource.

computeGlobalImageCapabilitySchemaVersionName String

The name of the compute global image capability schema version

imageId String

The ocid of the image

schemaData Map<Any>

(Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.

definedTags Map<Any>

(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<Any>

(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 an 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, Any]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        image_id: Optional[str] = None,
        schema_data: Optional[Mapping[str, Any]] = 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)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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 string

The name of the compute global image capability schema version

DefinedTags Dictionary<string, object>

(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, object>

(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 string

The ocid of the image

SchemaData Dictionary<string, object>

(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 string

The name of the compute global image capability schema version

DefinedTags map[string]interface{}

(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]interface{}

(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 string

The ocid of the image

SchemaData map[string]interface{}

(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 String

The name of the compute global image capability schema version

definedTags Map<String,Object>

(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,Object>

(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 String

The ocid of the image

schemaData Map<String,Object>

(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 string

The name of the compute global image capability schema version

definedTags {[key: string]: any}

(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]: any}

(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 string

The ocid of the image

schemaData {[key: string]: any}

(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 str

The name of the compute global image capability schema version

defined_tags Mapping[str, Any]

(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, Any]

(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 str

The ocid of the image

schema_data Mapping[str, Any]

(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 String

The name of the compute global image capability schema version

definedTags Map<Any>

(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<Any>

(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 String

The ocid of the image

schemaData Map<Any>

(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"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.