Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getInstanceMeasuredBootReport

This data source provides details about a specific Instance Measured Boot Report resource in Oracle Cloud Infrastructure Core service.

Gets the measured boot report for this shielded instance.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testInstanceMeasuredBootReport = Oci.Core.GetInstanceMeasuredBootReport.Invoke(new()
    {
        InstanceId = oci_core_instance.Test_instance.Id,
    });

});
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.GetInstanceMeasuredBootReport(ctx, &core.GetInstanceMeasuredBootReportArgs{
			InstanceId: oci_core_instance.Test_instance.Id,
		}, 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.GetInstanceMeasuredBootReportArgs;
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 testInstanceMeasuredBootReport = CoreFunctions.getInstanceMeasuredBootReport(GetInstanceMeasuredBootReportArgs.builder()
            .instanceId(oci_core_instance.test_instance().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_instance_measured_boot_report = oci.Core.get_instance_measured_boot_report(instance_id=oci_core_instance["test_instance"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testInstanceMeasuredBootReport = oci.Core.getInstanceMeasuredBootReport({
    instanceId: oci_core_instance.test_instance.id,
});
variables:
  testInstanceMeasuredBootReport:
    Fn::Invoke:
      Function: oci:Core:getInstanceMeasuredBootReport
      Arguments:
        instanceId: ${oci_core_instance.test_instance.id}

Using getInstanceMeasuredBootReport

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 getInstanceMeasuredBootReport(args: GetInstanceMeasuredBootReportArgs, opts?: InvokeOptions): Promise<GetInstanceMeasuredBootReportResult>
function getInstanceMeasuredBootReportOutput(args: GetInstanceMeasuredBootReportOutputArgs, opts?: InvokeOptions): Output<GetInstanceMeasuredBootReportResult>
def get_instance_measured_boot_report(instance_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetInstanceMeasuredBootReportResult
def get_instance_measured_boot_report_output(instance_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetInstanceMeasuredBootReportResult]
func GetInstanceMeasuredBootReport(ctx *Context, args *GetInstanceMeasuredBootReportArgs, opts ...InvokeOption) (*GetInstanceMeasuredBootReportResult, error)
func GetInstanceMeasuredBootReportOutput(ctx *Context, args *GetInstanceMeasuredBootReportOutputArgs, opts ...InvokeOption) GetInstanceMeasuredBootReportResultOutput

> Note: This function is named GetInstanceMeasuredBootReport in the Go SDK.

public static class GetInstanceMeasuredBootReport 
{
    public static Task<GetInstanceMeasuredBootReportResult> InvokeAsync(GetInstanceMeasuredBootReportArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceMeasuredBootReportResult> Invoke(GetInstanceMeasuredBootReportInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceMeasuredBootReportResult> getInstanceMeasuredBootReport(GetInstanceMeasuredBootReportArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Core/getInstanceMeasuredBootReport:getInstanceMeasuredBootReport
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InstanceId string

The OCID of the instance.

InstanceId string

The OCID of the instance.

instanceId String

The OCID of the instance.

instanceId string

The OCID of the instance.

instance_id str

The OCID of the instance.

instanceId String

The OCID of the instance.

getInstanceMeasuredBootReport Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
IsPolicyVerificationSuccessful bool

Whether the verification succeeded, and the new values match the expected values.

Measurements List<GetInstanceMeasuredBootReportMeasurement>

A list of Trusted Platform Module (TPM) Platform Configuration Register (PCR) entries.

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string
IsPolicyVerificationSuccessful bool

Whether the verification succeeded, and the new values match the expected values.

Measurements []GetInstanceMeasuredBootReportMeasurement

A list of Trusted Platform Module (TPM) Platform Configuration Register (PCR) entries.

id String

The provider-assigned unique ID for this managed resource.

instanceId String
isPolicyVerificationSuccessful Boolean

Whether the verification succeeded, and the new values match the expected values.

measurements List<GetInstanceMeasuredBootReportMeasurement>

A list of Trusted Platform Module (TPM) Platform Configuration Register (PCR) entries.

id string

The provider-assigned unique ID for this managed resource.

instanceId string
isPolicyVerificationSuccessful boolean

Whether the verification succeeded, and the new values match the expected values.

measurements GetInstanceMeasuredBootReportMeasurement[]

A list of Trusted Platform Module (TPM) Platform Configuration Register (PCR) entries.

id str

The provider-assigned unique ID for this managed resource.

instance_id str
is_policy_verification_successful bool

Whether the verification succeeded, and the new values match the expected values.

measurements GetInstanceMeasuredBootReportMeasurement]

A list of Trusted Platform Module (TPM) Platform Configuration Register (PCR) entries.

id String

The provider-assigned unique ID for this managed resource.

instanceId String
isPolicyVerificationSuccessful Boolean

Whether the verification succeeded, and the new values match the expected values.

measurements List<Property Map>

A list of Trusted Platform Module (TPM) Platform Configuration Register (PCR) entries.

Supporting Types

GetInstanceMeasuredBootReportMeasurement

Actuals List<GetInstanceMeasuredBootReportMeasurementActual>

The list of actual PCR entries measured during boot.

Policies List<GetInstanceMeasuredBootReportMeasurementPolicy>

The list of expected PCR entries to use during verification.

Actuals []GetInstanceMeasuredBootReportMeasurementActual

The list of actual PCR entries measured during boot.

Policies []GetInstanceMeasuredBootReportMeasurementPolicy

The list of expected PCR entries to use during verification.

actuals List<GetInstanceMeasuredBootReportMeasurementActual>

The list of actual PCR entries measured during boot.

policies List<GetInstanceMeasuredBootReportMeasurementPolicy>

The list of expected PCR entries to use during verification.

actuals GetInstanceMeasuredBootReportMeasurementActual[]

The list of actual PCR entries measured during boot.

policies GetInstanceMeasuredBootReportMeasurementPolicy[]

The list of expected PCR entries to use during verification.

actuals GetInstanceMeasuredBootReportMeasurementActual]

The list of actual PCR entries measured during boot.

policies GetInstanceMeasuredBootReportMeasurementPolicy]

The list of expected PCR entries to use during verification.

actuals List<Property Map>

The list of actual PCR entries measured during boot.

policies List<Property Map>

The list of expected PCR entries to use during verification.

GetInstanceMeasuredBootReportMeasurementActual

HashAlgorithm string

The type of algorithm used to calculate the hash.

PcrIndex string

The index of the policy.

Value string

The hashed PCR value.

HashAlgorithm string

The type of algorithm used to calculate the hash.

PcrIndex string

The index of the policy.

Value string

The hashed PCR value.

hashAlgorithm String

The type of algorithm used to calculate the hash.

pcrIndex String

The index of the policy.

value String

The hashed PCR value.

hashAlgorithm string

The type of algorithm used to calculate the hash.

pcrIndex string

The index of the policy.

value string

The hashed PCR value.

hash_algorithm str

The type of algorithm used to calculate the hash.

pcr_index str

The index of the policy.

value str

The hashed PCR value.

hashAlgorithm String

The type of algorithm used to calculate the hash.

pcrIndex String

The index of the policy.

value String

The hashed PCR value.

GetInstanceMeasuredBootReportMeasurementPolicy

HashAlgorithm string

The type of algorithm used to calculate the hash.

PcrIndex string

The index of the policy.

Value string

The hashed PCR value.

HashAlgorithm string

The type of algorithm used to calculate the hash.

PcrIndex string

The index of the policy.

Value string

The hashed PCR value.

hashAlgorithm String

The type of algorithm used to calculate the hash.

pcrIndex String

The index of the policy.

value String

The hashed PCR value.

hashAlgorithm string

The type of algorithm used to calculate the hash.

pcrIndex string

The index of the policy.

value string

The hashed PCR value.

hash_algorithm str

The type of algorithm used to calculate the hash.

pcr_index str

The index of the policy.

value str

The hashed PCR value.

hashAlgorithm String

The type of algorithm used to calculate the hash.

pcrIndex String

The index of the policy.

value String

The hashed PCR value.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.