oci.Optimizer.EnrollmentStatus
Explore with Pulumi AI
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
The EnrollmentStatus resource accepts the following input properties:
- Enrollment
Status stringId - 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 stringId - 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 StringId - 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 stringId - 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_ strid - 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
- enrollment
Status StringId - 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:
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The enrollment status' current state.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The enrollment status' current state.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The enrollment status' current state.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The enrollment status' current state.
- 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.
- 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.
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The enrollment status' current state.
- 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.
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.
- Compartment
Id string - The OCID of the compartment.
- Enrollment
Status stringId - 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
- 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 - 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
- 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 - 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
- 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 - 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
- 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 - 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.
- compartment
Id String - The OCID of the compartment.
- enrollment
Status StringId - 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
- 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.
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.