1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getInstanceMeasuredBootReport
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.getInstanceMeasuredBootReport

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstanceMeasuredBootReport = oci.Core.getInstanceMeasuredBootReport({
        instanceId: testInstance.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_instance_measured_boot_report = oci.Core.get_instance_measured_boot_report(instance_id=test_instance["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/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: testInstance.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testInstanceMeasuredBootReport = Oci.Core.GetInstanceMeasuredBootReport.Invoke(new()
        {
            InstanceId = testInstance.Id,
        });
    
    });
    
    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(testInstance.id())
                .build());
    
        }
    }
    
    variables:
      testInstanceMeasuredBootReport:
        fn::invoke:
          Function: oci:Core:getInstanceMeasuredBootReport
          Arguments:
            instanceId: ${testInstance.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 Sequence[core.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 Sequence[core.GetInstanceMeasuredBootReportMeasurementActual]
    The list of actual PCR entries measured during boot.
    policies Sequence[core.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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi