oci.Core.getComputeImageCapabilitySchema
This data source provides details about a specific Compute Image Capability Schema resource in Oracle Cloud Infrastructure Core service.
Gets the specified Compute Image Capability Schema
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testComputeImageCapabilitySchema = Oci.Core.GetComputeImageCapabilitySchema.Invoke(new()
{
ComputeImageCapabilitySchemaId = oci_core_compute_image_capability_schema.Test_compute_image_capability_schema.Id,
IsMergeEnabled = @var.Compute_image_capability_schema_is_merge_enabled,
});
});
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.GetComputeImageCapabilitySchema(ctx, &core.GetComputeImageCapabilitySchemaArgs{
ComputeImageCapabilitySchemaId: oci_core_compute_image_capability_schema.Test_compute_image_capability_schema.Id,
IsMergeEnabled: pulumi.StringRef(_var.Compute_image_capability_schema_is_merge_enabled),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetComputeImageCapabilitySchemaArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testComputeImageCapabilitySchema = CoreFunctions.getComputeImageCapabilitySchema(GetComputeImageCapabilitySchemaArgs.builder()
.computeImageCapabilitySchemaId(oci_core_compute_image_capability_schema.test_compute_image_capability_schema().id())
.isMergeEnabled(var_.compute_image_capability_schema_is_merge_enabled())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_compute_image_capability_schema = oci.Core.get_compute_image_capability_schema(compute_image_capability_schema_id=oci_core_compute_image_capability_schema["test_compute_image_capability_schema"]["id"],
is_merge_enabled=var["compute_image_capability_schema_is_merge_enabled"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeImageCapabilitySchema = oci.Core.getComputeImageCapabilitySchema({
computeImageCapabilitySchemaId: oci_core_compute_image_capability_schema.test_compute_image_capability_schema.id,
isMergeEnabled: _var.compute_image_capability_schema_is_merge_enabled,
});
variables:
testComputeImageCapabilitySchema:
fn::invoke:
Function: oci:Core:getComputeImageCapabilitySchema
Arguments:
computeImageCapabilitySchemaId: ${oci_core_compute_image_capability_schema.test_compute_image_capability_schema.id}
isMergeEnabled: ${var.compute_image_capability_schema_is_merge_enabled}
Using getComputeImageCapabilitySchema
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getComputeImageCapabilitySchema(args: GetComputeImageCapabilitySchemaArgs, opts?: InvokeOptions): Promise<GetComputeImageCapabilitySchemaResult>
function getComputeImageCapabilitySchemaOutput(args: GetComputeImageCapabilitySchemaOutputArgs, opts?: InvokeOptions): Output<GetComputeImageCapabilitySchemaResult>
def get_compute_image_capability_schema(compute_image_capability_schema_id: Optional[str] = None,
is_merge_enabled: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetComputeImageCapabilitySchemaResult
def get_compute_image_capability_schema_output(compute_image_capability_schema_id: Optional[pulumi.Input[str]] = None,
is_merge_enabled: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComputeImageCapabilitySchemaResult]
func GetComputeImageCapabilitySchema(ctx *Context, args *GetComputeImageCapabilitySchemaArgs, opts ...InvokeOption) (*GetComputeImageCapabilitySchemaResult, error)
func GetComputeImageCapabilitySchemaOutput(ctx *Context, args *GetComputeImageCapabilitySchemaOutputArgs, opts ...InvokeOption) GetComputeImageCapabilitySchemaResultOutput
> Note: This function is named GetComputeImageCapabilitySchema
in the Go SDK.
public static class GetComputeImageCapabilitySchema
{
public static Task<GetComputeImageCapabilitySchemaResult> InvokeAsync(GetComputeImageCapabilitySchemaArgs args, InvokeOptions? opts = null)
public static Output<GetComputeImageCapabilitySchemaResult> Invoke(GetComputeImageCapabilitySchemaInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetComputeImageCapabilitySchemaResult> getComputeImageCapabilitySchema(GetComputeImageCapabilitySchemaArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getComputeImageCapabilitySchema:getComputeImageCapabilitySchema
arguments:
# arguments dictionary
The following arguments are supported:
- Compute
Image stringCapability Schema Id The id of the compute image capability schema or the image ocid
- Is
Merge stringEnabled Merge the image capability schema with the global image capability schema
- Compute
Image stringCapability Schema Id The id of the compute image capability schema or the image ocid
- Is
Merge stringEnabled Merge the image capability schema with the global image capability schema
- compute
Image StringCapability Schema Id The id of the compute image capability schema or the image ocid
- is
Merge StringEnabled Merge the image capability schema with the global image capability schema
- compute
Image stringCapability Schema Id The id of the compute image capability schema or the image ocid
- is
Merge stringEnabled Merge the image capability schema with the global image capability schema
- compute_
image_ strcapability_ schema_ id The id of the compute image capability schema or the image ocid
- is_
merge_ strenabled Merge the image capability schema with the global image capability schema
- compute
Image StringCapability Schema Id The id of the compute image capability schema or the image ocid
- is
Merge StringEnabled Merge the image capability schema with the global image capability schema
getComputeImageCapabilitySchema Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment containing the compute global image capability schema
- 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
- Compute
Image stringCapability Schema Id - Dictionary<string, object>
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 A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, object>
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.
- Image
Id string The OCID of the image associated with this compute image capability schema
- Schema
Data Dictionary<string, object> A mapping of each capability name to its ImageCapabilityDescriptor.
- 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
- Is
Merge stringEnabled
- Compartment
Id string The OCID of the compartment containing the compute global image capability schema
- 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
- Compute
Image stringCapability Schema Id - map[string]interface{}
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 A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]interface{}
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.
- Image
Id string The OCID of the image associated with this compute image capability schema
- Schema
Data map[string]interface{} A mapping of each capability name to its ImageCapabilityDescriptor.
- 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
- Is
Merge stringEnabled
- compartment
Id String The OCID of the compartment containing the compute global image capability schema
- 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
- compute
Image StringCapability Schema Id - Map<String,Object>
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 A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,Object>
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.
- image
Id String The OCID of the image associated with this compute image capability schema
- schema
Data Map<String,Object> A mapping of each capability name to its ImageCapabilityDescriptor.
- 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
- is
Merge StringEnabled
- compartment
Id string The OCID of the compartment containing the compute global image capability schema
- 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
- compute
Image stringCapability Schema Id - {[key: string]: any}
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 A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: any}
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.
- image
Id string The OCID of the image associated with this compute image capability schema
- schema
Data {[key: string]: any} A mapping of each capability name to its ImageCapabilityDescriptor.
- 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
- is
Merge stringEnabled
- compartment_
id str The OCID of the compartment containing the compute global image capability schema
- 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
- compute_
image_ strcapability_ schema_ id - Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, Any]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
The compute image capability schema OCID.
- image_
id str The OCID of the image associated with this compute image capability schema
- schema_
data Mapping[str, Any] A mapping of each capability name to its ImageCapabilityDescriptor.
- time_
created str The date and time the compute image capability schema was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- is_
merge_ strenabled
- compartment
Id String The OCID of the compartment containing the compute global image capability schema
- 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
- compute
Image StringCapability Schema Id - Map<Any>
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 A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<Any>
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.
- image
Id String The OCID of the image associated with this compute image capability schema
- schema
Data Map<Any> A mapping of each capability name to its ImageCapabilityDescriptor.
- 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
- is
Merge StringEnabled
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.