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!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.ComputeImageCapabilitySchema;
import com.pulumi.oci.Core.ComputeImageCapabilitySchemaArgs;
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) {
var testComputeImageCapabilitySchema = new ComputeImageCapabilitySchema("testComputeImageCapabilitySchema", ComputeImageCapabilitySchemaArgs.builder()
.compartmentId(compartmentId)
.computeGlobalImageCapabilitySchemaVersionName(computeImageCapabilitySchemaComputeGlobalImageCapabilitySchemaVersionName)
.imageId(testImage.id())
.schemaData(Map.ofEntries(
Map.entry("descriptorType", computeImageCapabilitySchemaSchemaDataDescriptorType),
Map.entry("source", computeImageCapabilitySchemaSchemaDataSource),
Map.entry("defaultValue", computeImageCapabilitySchemaSchemaDataDefaultValue),
Map.entry("values", computeImageCapabilitySchemaSchemaDataValues)
))
.definedTags(Map.of("Operations.CostCenter", "42"))
.displayName(computeImageCapabilitySchemaDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
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
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 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.
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" },
},
});
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"),
},
})
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());
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",
})
const computeImageCapabilitySchemaResource = new oci.core.ComputeImageCapabilitySchema("computeImageCapabilitySchemaResource", {
compartmentId: "string",
computeGlobalImageCapabilitySchemaVersionName: "string",
imageId: "string",
schemaData: {
string: "string",
},
definedTags: {
string: "string",
},
displayName: "string",
freeformTags: {
string: "string",
},
});
type: oci:Core:ComputeImageCapabilitySchema
properties:
compartmentId: string
computeGlobalImageCapabilitySchemaVersionName: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
imageId: string
schemaData:
string: string
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:
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the resource.
- Compute
Global stringImage Capability Schema Version Name - The name of the compute global image capability schema version
- Image
Id string - The ocid of the image
- Schema
Data Dictionary<string, string> - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the resource.
- Compute
Global stringImage Capability Schema Version Name - The name of the compute global image capability schema version
- Image
Id string - The ocid of the image
- Schema
Data map[string]string - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- compartment
Id String - (Updatable) The OCID of the compartment that contains the resource.
- compute
Global StringImage Capability Schema Version Name - The name of the compute global image capability schema version
- image
Id String - The ocid of the image
- schema
Data Map<String,String> - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- compartment
Id string - (Updatable) The OCID of the compartment that contains the resource.
- compute
Global stringImage Capability Schema Version Name - The name of the compute global image capability schema version
- image
Id string - The ocid of the image
- schema
Data {[key: string]: string} - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- {[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"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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 str - (Updatable) The OCID of the compartment that contains the resource.
- compute_
global_ strimage_ capability_ schema_ version_ name - The name of the compute global image capability schema version
- image_
id str - The ocid of the image
- schema_
data Mapping[str, str] - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- 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.
- 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"}
- compartment
Id String - (Updatable) The OCID of the compartment that contains the resource.
- compute
Global StringImage Capability Schema Version Name - The name of the compute global image capability schema version
- image
Id String - The ocid of the image
- schema
Data Map<String> - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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:
- Compute
Global stringImage Capability Schema Id - The ocid of the compute global image capability schema
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created 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 stringImage Capability Schema Id - The ocid of the compute global image capability schema
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created 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 StringImage Capability Schema Id - The ocid of the compute global image capability schema
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created 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 stringImage Capability Schema Id - The ocid of the compute global image capability schema
- id string
- The provider-assigned unique ID for this managed resource.
- time
Created 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_ strimage_ capability_ schema_ id - 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
- compute
Global StringImage Capability Schema Id - The ocid of the compute global image capability schema
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created 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)
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.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the resource.
- Compute
Global stringImage Capability Schema Id - The ocid of the compute global image capability schema
- Compute
Global stringImage Capability Schema Version Name - The name of the compute global image capability schema version
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Image
Id string - The ocid of the image
- Schema
Data Dictionary<string, string> - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- Time
Created 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 string - (Updatable) The OCID of the compartment that contains the resource.
- Compute
Global stringImage Capability Schema Id - The ocid of the compute global image capability schema
- Compute
Global stringImage Capability Schema Version Name - The name of the compute global image capability schema version
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Image
Id string - The ocid of the image
- Schema
Data map[string]string - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- Time
Created 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 String - (Updatable) The OCID of the compartment that contains the resource.
- compute
Global StringImage Capability Schema Id - The ocid of the compute global image capability schema
- compute
Global StringImage Capability Schema Version Name - The name of the compute global image capability schema version
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- image
Id String - The ocid of the image
- schema
Data Map<String,String> - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- time
Created 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 string - (Updatable) The OCID of the compartment that contains the resource.
- compute
Global stringImage Capability Schema Id - The ocid of the compute global image capability schema
- compute
Global stringImage Capability Schema Version Name - The name of the compute global image capability schema version
- {[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"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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"}
- image
Id string - The ocid of the image
- schema
Data {[key: string]: string} - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- time
Created 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_ 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]
- (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.
- 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 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
- compartment
Id String - (Updatable) The OCID of the compartment that contains the resource.
- compute
Global StringImage Capability Schema Id - The ocid of the compute global image capability schema
- compute
Global StringImage Capability Schema Version Name - The name of the compute global image capability schema version
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- image
Id String - The ocid of the image
- schema
Data Map<String> - (Updatable) The map of each capability name to its ImageCapabilitySchemaDescriptor.
- time
Created 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"
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.