Oracle Cloud Infrastructure
getEnrollmentStatus
This data source provides details about a specific Enrollment Status resource in Oracle Cloud Infrastructure Optimizer service.
Gets the Cloud Advisor enrollment status.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testEnrollmentStatus = Output.Create(Oci.Optimizer.GetEnrollmentStatus.InvokeAsync(new Oci.Optimizer.GetEnrollmentStatusArgs
{
EnrollmentStatusId = oci_optimizer_enrollment_status.Test_enrollment_status.Id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Optimizer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Optimizer.GetEnrollmentStatus(ctx, &optimizer.GetEnrollmentStatusArgs{
EnrollmentStatusId: oci_optimizer_enrollment_status.Test_enrollment_status.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_enrollment_status = oci.Optimizer.get_enrollment_status(enrollment_status_id=oci_optimizer_enrollment_status["test_enrollment_status"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testEnrollmentStatus = oci.Optimizer.getEnrollmentStatus({
enrollmentStatusId: oci_optimizer_enrollment_status.test_enrollment_status.id,
});
Coming soon!
Using getEnrollmentStatus
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 getEnrollmentStatus(args: GetEnrollmentStatusArgs, opts?: InvokeOptions): Promise<GetEnrollmentStatusResult>
function getEnrollmentStatusOutput(args: GetEnrollmentStatusOutputArgs, opts?: InvokeOptions): Output<GetEnrollmentStatusResult>
def get_enrollment_status(enrollment_status_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnrollmentStatusResult
def get_enrollment_status_output(enrollment_status_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnrollmentStatusResult]
func GetEnrollmentStatus(ctx *Context, args *GetEnrollmentStatusArgs, opts ...InvokeOption) (*GetEnrollmentStatusResult, error)
func GetEnrollmentStatusOutput(ctx *Context, args *GetEnrollmentStatusOutputArgs, opts ...InvokeOption) GetEnrollmentStatusResultOutput
> Note: This function is named GetEnrollmentStatus
in the Go SDK.
public static class GetEnrollmentStatus
{
public static Task<GetEnrollmentStatusResult> InvokeAsync(GetEnrollmentStatusArgs args, InvokeOptions? opts = null)
public static Output<GetEnrollmentStatusResult> Invoke(GetEnrollmentStatusInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnrollmentStatusResult> getEnrollmentStatus(GetEnrollmentStatusArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:Optimizer/getEnrollmentStatus:getEnrollmentStatus
Arguments:
# Arguments dictionary
The following arguments are supported:
- Enrollment
Status stringId The unique OCID associated with the enrollment status.
- Enrollment
Status stringId The unique OCID associated with the enrollment status.
- enrollment
Status StringId The unique OCID associated with the enrollment status.
- enrollment
Status stringId The unique OCID associated with the enrollment status.
- enrollment_
status_ strid The unique OCID associated with the enrollment status.
- enrollment
Status StringId The unique OCID associated with the enrollment status.
getEnrollmentStatus Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment.
- Enrollment
Status stringId - Id string
The OCID of the enrollment status.
- State string
The enrollment status' current state.
- Status string
The current Cloud Advisor enrollment status.
- Status
Reason string The reason for the enrollment status of the tenancy.
- Time
Created string The date and time the enrollment status was created, in the format defined by RFC3339.
- Time
Updated string The date and time the enrollment status was last updated, in the format defined by RFC3339.
- Compartment
Id string The OCID of the compartment.
- Enrollment
Status stringId - Id string
The OCID of the enrollment status.
- State string
The enrollment status' current state.
- Status string
The current Cloud Advisor enrollment status.
- Status
Reason string The reason for the enrollment status of the tenancy.
- Time
Created string The date and time the enrollment status was created, in the format defined by RFC3339.
- Time
Updated string The date and time the enrollment status was last updated, in the format defined by RFC3339.
- compartment
Id String The OCID of the compartment.
- enrollment
Status StringId - id String
The OCID of the enrollment status.
- state String
The enrollment status' current state.
- status String
The current Cloud Advisor enrollment status.
- status
Reason String The reason for the enrollment status of the tenancy.
- time
Created String The date and time the enrollment status was created, in the format defined by RFC3339.
- time
Updated String The date and time the enrollment status was last updated, in the format defined by RFC3339.
- compartment
Id string The OCID of the compartment.
- enrollment
Status stringId - id string
The OCID of the enrollment status.
- state string
The enrollment status' current state.
- status string
The current Cloud Advisor enrollment status.
- status
Reason string The reason for the enrollment status of the tenancy.
- time
Created string The date and time the enrollment status was created, in the format defined by RFC3339.
- time
Updated string The date and time the enrollment status was last updated, in the format defined by RFC3339.
- compartment_
id str The OCID of the compartment.
- enrollment_
status_ strid - id str
The OCID of the enrollment status.
- state str
The enrollment status' current state.
- status str
The current Cloud Advisor enrollment status.
- status_
reason str The reason for the enrollment status of the tenancy.
- time_
created str The date and time the enrollment status was created, in the format defined by RFC3339.
- time_
updated str The date and time the enrollment status was last updated, in the format defined by RFC3339.
- compartment
Id String The OCID of the compartment.
- enrollment
Status StringId - id String
The OCID of the enrollment status.
- state String
The enrollment status' current state.
- status String
The current Cloud Advisor enrollment status.
- status
Reason String The reason for the enrollment status of the tenancy.
- time
Created String The date and time the enrollment status was created, in the format defined by RFC3339.
- time
Updated String The date and time the enrollment status was last updated, in the format defined by RFC3339.
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.