1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Optimizer
  5. EnrollmentStatus
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Optimizer.EnrollmentStatus

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Enrollment Status resource in Oracle Cloud Infrastructure Optimizer service.

    Updates the enrollment status of the tenancy.

    Create EnrollmentStatus Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EnrollmentStatus(name: string, args: EnrollmentStatusArgs, opts?: CustomResourceOptions);
    @overload
    def EnrollmentStatus(resource_name: str,
                         args: EnrollmentStatusArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnrollmentStatus(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         enrollment_status_id: Optional[str] = None,
                         status: Optional[str] = None)
    func NewEnrollmentStatus(ctx *Context, name string, args EnrollmentStatusArgs, opts ...ResourceOption) (*EnrollmentStatus, error)
    public EnrollmentStatus(string name, EnrollmentStatusArgs args, CustomResourceOptions? opts = null)
    public EnrollmentStatus(String name, EnrollmentStatusArgs args)
    public EnrollmentStatus(String name, EnrollmentStatusArgs args, CustomResourceOptions options)
    
    type: oci:Optimizer:EnrollmentStatus
    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 EnrollmentStatusArgs
    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 EnrollmentStatusArgs
    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 EnrollmentStatusArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnrollmentStatusArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnrollmentStatusArgs
    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 enrollmentStatusResource = new Oci.Optimizer.EnrollmentStatus("enrollmentStatusResource", new()
    {
        EnrollmentStatusId = "string",
        Status = "string",
    });
    
    example, err := Optimizer.NewEnrollmentStatus(ctx, "enrollmentStatusResource", &Optimizer.EnrollmentStatusArgs{
    	EnrollmentStatusId: pulumi.String("string"),
    	Status:             pulumi.String("string"),
    })
    
    var enrollmentStatusResource = new EnrollmentStatus("enrollmentStatusResource", EnrollmentStatusArgs.builder()
        .enrollmentStatusId("string")
        .status("string")
        .build());
    
    enrollment_status_resource = oci.optimizer.EnrollmentStatus("enrollmentStatusResource",
        enrollment_status_id="string",
        status="string")
    
    const enrollmentStatusResource = new oci.optimizer.EnrollmentStatus("enrollmentStatusResource", {
        enrollmentStatusId: "string",
        status: "string",
    });
    
    type: oci:Optimizer:EnrollmentStatus
    properties:
        enrollmentStatusId: string
        status: string
    

    EnrollmentStatus Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EnrollmentStatus resource accepts the following input properties:

    EnrollmentStatusId string
    The unique OCID associated with the enrollment status.
    Status string

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    EnrollmentStatusId string
    The unique OCID associated with the enrollment status.
    Status string

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    enrollmentStatusId String
    The unique OCID associated with the enrollment status.
    status String

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    enrollmentStatusId string
    The unique OCID associated with the enrollment status.
    status string

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    enrollment_status_id str
    The unique OCID associated with the enrollment status.
    status str

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    enrollmentStatusId String
    The unique OCID associated with the enrollment status.
    status String

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnrollmentStatus resource produces the following output properties:

    CompartmentId string
    The OCID of the compartment.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The enrollment status' current state.
    StatusReason string
    The reason for the enrollment status of the tenancy.
    TimeCreated string
    The date and time the enrollment status was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the enrollment status was last updated, in the format defined by RFC3339.
    CompartmentId string
    The OCID of the compartment.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The enrollment status' current state.
    StatusReason string
    The reason for the enrollment status of the tenancy.
    TimeCreated string
    The date and time the enrollment status was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the enrollment status was last updated, in the format defined by RFC3339.
    compartmentId String
    The OCID of the compartment.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The enrollment status' current state.
    statusReason String
    The reason for the enrollment status of the tenancy.
    timeCreated String
    The date and time the enrollment status was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the enrollment status was last updated, in the format defined by RFC3339.
    compartmentId string
    The OCID of the compartment.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The enrollment status' current state.
    statusReason string
    The reason for the enrollment status of the tenancy.
    timeCreated string
    The date and time the enrollment status was created, in the format defined by RFC3339.
    timeUpdated 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.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The enrollment status' current state.
    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.
    compartmentId String
    The OCID of the compartment.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The enrollment status' current state.
    statusReason String
    The reason for the enrollment status of the tenancy.
    timeCreated String
    The date and time the enrollment status was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the enrollment status was last updated, in the format defined by RFC3339.

    Look up Existing EnrollmentStatus Resource

    Get an existing EnrollmentStatus 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?: EnrollmentStatusState, opts?: CustomResourceOptions): EnrollmentStatus
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            enrollment_status_id: Optional[str] = None,
            state: Optional[str] = None,
            status: Optional[str] = None,
            status_reason: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> EnrollmentStatus
    func GetEnrollmentStatus(ctx *Context, name string, id IDInput, state *EnrollmentStatusState, opts ...ResourceOption) (*EnrollmentStatus, error)
    public static EnrollmentStatus Get(string name, Input<string> id, EnrollmentStatusState? state, CustomResourceOptions? opts = null)
    public static EnrollmentStatus get(String name, Output<String> id, EnrollmentStatusState 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.
    The following state arguments are supported:
    CompartmentId string
    The OCID of the compartment.
    EnrollmentStatusId string
    The unique OCID associated with the enrollment status.
    State string
    The enrollment status' current state.
    Status string

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    StatusReason string
    The reason for the enrollment status of the tenancy.
    TimeCreated string
    The date and time the enrollment status was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the enrollment status was last updated, in the format defined by RFC3339.
    CompartmentId string
    The OCID of the compartment.
    EnrollmentStatusId string
    The unique OCID associated with the enrollment status.
    State string
    The enrollment status' current state.
    Status string

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    StatusReason string
    The reason for the enrollment status of the tenancy.
    TimeCreated string
    The date and time the enrollment status was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the enrollment status was last updated, in the format defined by RFC3339.
    compartmentId String
    The OCID of the compartment.
    enrollmentStatusId String
    The unique OCID associated with the enrollment status.
    state String
    The enrollment status' current state.
    status String

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    statusReason String
    The reason for the enrollment status of the tenancy.
    timeCreated String
    The date and time the enrollment status was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the enrollment status was last updated, in the format defined by RFC3339.
    compartmentId string
    The OCID of the compartment.
    enrollmentStatusId string
    The unique OCID associated with the enrollment status.
    state string
    The enrollment status' current state.
    status string

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    statusReason string
    The reason for the enrollment status of the tenancy.
    timeCreated string
    The date and time the enrollment status was created, in the format defined by RFC3339.
    timeUpdated 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_id str
    The unique OCID associated with the enrollment status.
    state str
    The enrollment status' current state.
    status str

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.
    compartmentId String
    The OCID of the compartment.
    enrollmentStatusId String
    The unique OCID associated with the enrollment status.
    state String
    The enrollment status' current state.
    status String

    (Updatable) The Cloud Advisor enrollment status.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    statusReason String
    The reason for the enrollment status of the tenancy.
    timeCreated String
    The date and time the enrollment status was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the enrollment status was last updated, in the format defined by RFC3339.

    Import

    EnrollmentStatus can be imported using the id, e.g.

    $ pulumi import oci:Optimizer/enrollmentStatus:EnrollmentStatus test_enrollment_status "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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi