ibm.IsReservationActivate
Explore with Pulumi AI
Import
The ibm_is_reservation_activate
resource can be imported by using reservation ID.
Syntax
$ pulumi import ibm:index/isReservationActivate:IsReservationActivate example_activation <reservation_ID>
Example
$ pulumi import ibm:index/isReservationActivate:IsReservationActivate example_activation d7bec597-4726-451f-8a63-e62e6f121c32c
Create IsReservationActivate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsReservationActivate(name: string, args: IsReservationActivateArgs, opts?: CustomResourceOptions);
@overload
def IsReservationActivate(resource_name: str,
args: IsReservationActivateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsReservationActivate(resource_name: str,
opts: Optional[ResourceOptions] = None,
reservation: Optional[str] = None,
resource_groups: Optional[Sequence[IsReservationActivateResourceGroupArgs]] = None)
func NewIsReservationActivate(ctx *Context, name string, args IsReservationActivateArgs, opts ...ResourceOption) (*IsReservationActivate, error)
public IsReservationActivate(string name, IsReservationActivateArgs args, CustomResourceOptions? opts = null)
public IsReservationActivate(String name, IsReservationActivateArgs args)
public IsReservationActivate(String name, IsReservationActivateArgs args, CustomResourceOptions options)
type: ibm:IsReservationActivate
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 IsReservationActivateArgs
- 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 IsReservationActivateArgs
- 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 IsReservationActivateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsReservationActivateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsReservationActivateArgs
- 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 isReservationActivateResource = new Ibm.IsReservationActivate("isReservationActivateResource", new()
{
Reservation = "string",
ResourceGroups = new[]
{
new Ibm.Inputs.IsReservationActivateResourceGroupArgs
{
Href = "string",
Id = "string",
Name = "string",
},
},
});
example, err := ibm.NewIsReservationActivate(ctx, "isReservationActivateResource", &ibm.IsReservationActivateArgs{
Reservation: pulumi.String("string"),
ResourceGroups: ibm.IsReservationActivateResourceGroupArray{
&ibm.IsReservationActivateResourceGroupArgs{
Href: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
})
var isReservationActivateResource = new IsReservationActivate("isReservationActivateResource", IsReservationActivateArgs.builder()
.reservation("string")
.resourceGroups(IsReservationActivateResourceGroupArgs.builder()
.href("string")
.id("string")
.name("string")
.build())
.build());
is_reservation_activate_resource = ibm.IsReservationActivate("isReservationActivateResource",
reservation="string",
resource_groups=[{
"href": "string",
"id": "string",
"name": "string",
}])
const isReservationActivateResource = new ibm.IsReservationActivate("isReservationActivateResource", {
reservation: "string",
resourceGroups: [{
href: "string",
id: "string",
name: "string",
}],
});
type: ibm:IsReservationActivate
properties:
reservation: string
resourceGroups:
- href: string
id: string
name: string
IsReservationActivate 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 IsReservationActivate resource accepts the following input properties:
- Reservation string
- The id of the reservation to be activated.
- Resource
Groups List<IsReservation Activate Resource Group> - (List) The resource group for this reservation.
- Reservation string
- The id of the reservation to be activated.
- Resource
Groups []IsReservation Activate Resource Group Args - (List) The resource group for this reservation.
- reservation String
- The id of the reservation to be activated.
- resource
Groups List<IsReservation Activate Resource Group> - (List) The resource group for this reservation.
- reservation string
- The id of the reservation to be activated.
- resource
Groups IsReservation Activate Resource Group[] - (List) The resource group for this reservation.
- reservation str
- The id of the reservation to be activated.
- resource_
groups Sequence[IsReservation Activate Resource Group Args] - (List) The resource group for this reservation.
- reservation String
- The id of the reservation to be activated.
- resource
Groups List<Property Map> - (List) The resource group for this reservation.
Outputs
All input properties are implicitly available as output properties. Additionally, the IsReservationActivate resource produces the following output properties:
- Affinity
Policy string - (String) The affinity policy to use for this reservation.
- Capacities
List<Is
Reservation Activate Capacity> - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- Committed
Uses List<IsReservation Activate Committed Use> - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- Created
At string - (Timestamp) The date and time that the reservation was created.
- Crn string
- (String) The CRN for this reservation.
- Href string
- (String) The URL for this resource group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - (String) The lifecycle state of this reservation.
- Name string
- (String) The name for this resource group.
- Profiles
List<Is
Reservation Activate Profile> - (List) The virtual server instance profile this reservation.
- Resource
Type string - (String) The resource type.
- Status string
- (String) The status of the reservation.
- Status
Reasons List<IsReservation Activate Status Reason> - (List) The reasons for the current status (if any).
- Zone string
- (String) The globally unique name for this zone.
- Affinity
Policy string - (String) The affinity policy to use for this reservation.
- Capacities
[]Is
Reservation Activate Capacity - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- Committed
Uses []IsReservation Activate Committed Use - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- Created
At string - (Timestamp) The date and time that the reservation was created.
- Crn string
- (String) The CRN for this reservation.
- Href string
- (String) The URL for this resource group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - (String) The lifecycle state of this reservation.
- Name string
- (String) The name for this resource group.
- Profiles
[]Is
Reservation Activate Profile - (List) The virtual server instance profile this reservation.
- Resource
Type string - (String) The resource type.
- Status string
- (String) The status of the reservation.
- Status
Reasons []IsReservation Activate Status Reason - (List) The reasons for the current status (if any).
- Zone string
- (String) The globally unique name for this zone.
- affinity
Policy String - (String) The affinity policy to use for this reservation.
- capacities
List<Is
Reservation Activate Capacity> - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- committed
Uses List<IsReservation Activate Committed Use> - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- created
At String - (Timestamp) The date and time that the reservation was created.
- crn String
- (String) The CRN for this reservation.
- href String
- (String) The URL for this resource group.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - (String) The lifecycle state of this reservation.
- name String
- (String) The name for this resource group.
- profiles
List<Is
Reservation Activate Profile> - (List) The virtual server instance profile this reservation.
- resource
Type String - (String) The resource type.
- status String
- (String) The status of the reservation.
- status
Reasons List<IsReservation Activate Status Reason> - (List) The reasons for the current status (if any).
- zone String
- (String) The globally unique name for this zone.
- affinity
Policy string - (String) The affinity policy to use for this reservation.
- capacities
Is
Reservation Activate Capacity[] - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- committed
Uses IsReservation Activate Committed Use[] - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- created
At string - (Timestamp) The date and time that the reservation was created.
- crn string
- (String) The CRN for this reservation.
- href string
- (String) The URL for this resource group.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string - (String) The lifecycle state of this reservation.
- name string
- (String) The name for this resource group.
- profiles
Is
Reservation Activate Profile[] - (List) The virtual server instance profile this reservation.
- resource
Type string - (String) The resource type.
- status string
- (String) The status of the reservation.
- status
Reasons IsReservation Activate Status Reason[] - (List) The reasons for the current status (if any).
- zone string
- (String) The globally unique name for this zone.
- affinity_
policy str - (String) The affinity policy to use for this reservation.
- capacities
Sequence[Is
Reservation Activate Capacity] - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- committed_
uses Sequence[IsReservation Activate Committed Use] - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- created_
at str - (Timestamp) The date and time that the reservation was created.
- crn str
- (String) The CRN for this reservation.
- href str
- (String) The URL for this resource group.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
state str - (String) The lifecycle state of this reservation.
- name str
- (String) The name for this resource group.
- profiles
Sequence[Is
Reservation Activate Profile] - (List) The virtual server instance profile this reservation.
- resource_
type str - (String) The resource type.
- status str
- (String) The status of the reservation.
- status_
reasons Sequence[IsReservation Activate Status Reason] - (List) The reasons for the current status (if any).
- zone str
- (String) The globally unique name for this zone.
- affinity
Policy String - (String) The affinity policy to use for this reservation.
- capacities List<Property Map>
- (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- committed
Uses List<Property Map> - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- created
At String - (Timestamp) The date and time that the reservation was created.
- crn String
- (String) The CRN for this reservation.
- href String
- (String) The URL for this resource group.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - (String) The lifecycle state of this reservation.
- name String
- (String) The name for this resource group.
- profiles List<Property Map>
- (List) The virtual server instance profile this reservation.
- resource
Type String - (String) The resource type.
- status String
- (String) The status of the reservation.
- status
Reasons List<Property Map> - (List) The reasons for the current status (if any).
- zone String
- (String) The globally unique name for this zone.
Look up Existing IsReservationActivate Resource
Get an existing IsReservationActivate 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?: IsReservationActivateState, opts?: CustomResourceOptions): IsReservationActivate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
affinity_policy: Optional[str] = None,
capacities: Optional[Sequence[IsReservationActivateCapacityArgs]] = None,
committed_uses: Optional[Sequence[IsReservationActivateCommittedUseArgs]] = None,
created_at: Optional[str] = None,
crn: Optional[str] = None,
href: Optional[str] = None,
lifecycle_state: Optional[str] = None,
name: Optional[str] = None,
profiles: Optional[Sequence[IsReservationActivateProfileArgs]] = None,
reservation: Optional[str] = None,
resource_groups: Optional[Sequence[IsReservationActivateResourceGroupArgs]] = None,
resource_type: Optional[str] = None,
status: Optional[str] = None,
status_reasons: Optional[Sequence[IsReservationActivateStatusReasonArgs]] = None,
zone: Optional[str] = None) -> IsReservationActivate
func GetIsReservationActivate(ctx *Context, name string, id IDInput, state *IsReservationActivateState, opts ...ResourceOption) (*IsReservationActivate, error)
public static IsReservationActivate Get(string name, Input<string> id, IsReservationActivateState? state, CustomResourceOptions? opts = null)
public static IsReservationActivate get(String name, Output<String> id, IsReservationActivateState state, CustomResourceOptions options)
resources: _: type: ibm:IsReservationActivate get: id: ${id}
- 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.
- Affinity
Policy string - (String) The affinity policy to use for this reservation.
- Capacities
List<Is
Reservation Activate Capacity> - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- Committed
Uses List<IsReservation Activate Committed Use> - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- Created
At string - (Timestamp) The date and time that the reservation was created.
- Crn string
- (String) The CRN for this reservation.
- Href string
- (String) The URL for this resource group.
- Lifecycle
State string - (String) The lifecycle state of this reservation.
- Name string
- (String) The name for this resource group.
- Profiles
List<Is
Reservation Activate Profile> - (List) The virtual server instance profile this reservation.
- Reservation string
- The id of the reservation to be activated.
- Resource
Groups List<IsReservation Activate Resource Group> - (List) The resource group for this reservation.
- Resource
Type string - (String) The resource type.
- Status string
- (String) The status of the reservation.
- Status
Reasons List<IsReservation Activate Status Reason> - (List) The reasons for the current status (if any).
- Zone string
- (String) The globally unique name for this zone.
- Affinity
Policy string - (String) The affinity policy to use for this reservation.
- Capacities
[]Is
Reservation Activate Capacity Args - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- Committed
Uses []IsReservation Activate Committed Use Args - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- Created
At string - (Timestamp) The date and time that the reservation was created.
- Crn string
- (String) The CRN for this reservation.
- Href string
- (String) The URL for this resource group.
- Lifecycle
State string - (String) The lifecycle state of this reservation.
- Name string
- (String) The name for this resource group.
- Profiles
[]Is
Reservation Activate Profile Args - (List) The virtual server instance profile this reservation.
- Reservation string
- The id of the reservation to be activated.
- Resource
Groups []IsReservation Activate Resource Group Args - (List) The resource group for this reservation.
- Resource
Type string - (String) The resource type.
- Status string
- (String) The status of the reservation.
- Status
Reasons []IsReservation Activate Status Reason Args - (List) The reasons for the current status (if any).
- Zone string
- (String) The globally unique name for this zone.
- affinity
Policy String - (String) The affinity policy to use for this reservation.
- capacities
List<Is
Reservation Activate Capacity> - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- committed
Uses List<IsReservation Activate Committed Use> - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- created
At String - (Timestamp) The date and time that the reservation was created.
- crn String
- (String) The CRN for this reservation.
- href String
- (String) The URL for this resource group.
- lifecycle
State String - (String) The lifecycle state of this reservation.
- name String
- (String) The name for this resource group.
- profiles
List<Is
Reservation Activate Profile> - (List) The virtual server instance profile this reservation.
- reservation String
- The id of the reservation to be activated.
- resource
Groups List<IsReservation Activate Resource Group> - (List) The resource group for this reservation.
- resource
Type String - (String) The resource type.
- status String
- (String) The status of the reservation.
- status
Reasons List<IsReservation Activate Status Reason> - (List) The reasons for the current status (if any).
- zone String
- (String) The globally unique name for this zone.
- affinity
Policy string - (String) The affinity policy to use for this reservation.
- capacities
Is
Reservation Activate Capacity[] - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- committed
Uses IsReservation Activate Committed Use[] - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- created
At string - (Timestamp) The date and time that the reservation was created.
- crn string
- (String) The CRN for this reservation.
- href string
- (String) The URL for this resource group.
- lifecycle
State string - (String) The lifecycle state of this reservation.
- name string
- (String) The name for this resource group.
- profiles
Is
Reservation Activate Profile[] - (List) The virtual server instance profile this reservation.
- reservation string
- The id of the reservation to be activated.
- resource
Groups IsReservation Activate Resource Group[] - (List) The resource group for this reservation.
- resource
Type string - (String) The resource type.
- status string
- (String) The status of the reservation.
- status
Reasons IsReservation Activate Status Reason[] - (List) The reasons for the current status (if any).
- zone string
- (String) The globally unique name for this zone.
- affinity_
policy str - (String) The affinity policy to use for this reservation.
- capacities
Sequence[Is
Reservation Activate Capacity Args] - (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- committed_
uses Sequence[IsReservation Activate Committed Use Args] - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- created_
at str - (Timestamp) The date and time that the reservation was created.
- crn str
- (String) The CRN for this reservation.
- href str
- (String) The URL for this resource group.
- lifecycle_
state str - (String) The lifecycle state of this reservation.
- name str
- (String) The name for this resource group.
- profiles
Sequence[Is
Reservation Activate Profile Args] - (List) The virtual server instance profile this reservation.
- reservation str
- The id of the reservation to be activated.
- resource_
groups Sequence[IsReservation Activate Resource Group Args] - (List) The resource group for this reservation.
- resource_
type str - (String) The resource type.
- status str
- (String) The status of the reservation.
- status_
reasons Sequence[IsReservation Activate Status Reason Args] - (List) The reasons for the current status (if any).
- zone str
- (String) The globally unique name for this zone.
- affinity
Policy String - (String) The affinity policy to use for this reservation.
- capacities List<Property Map>
- (List) The capacity configuration for this reservation. If absent, this reservation has no assigned capacity.
- committed
Uses List<Property Map> - (List) The committed use configuration for this reservation. If absent, this reservation has no commitment for use.
- created
At String - (Timestamp) The date and time that the reservation was created.
- crn String
- (String) The CRN for this reservation.
- href String
- (String) The URL for this resource group.
- lifecycle
State String - (String) The lifecycle state of this reservation.
- name String
- (String) The name for this resource group.
- profiles List<Property Map>
- (List) The virtual server instance profile this reservation.
- reservation String
- The id of the reservation to be activated.
- resource
Groups List<Property Map> - (List) The resource group for this reservation.
- resource
Type String - (String) The resource type.
- status String
- (String) The status of the reservation.
- status
Reasons List<Property Map> - (List) The reasons for the current status (if any).
- zone String
- (String) The globally unique name for this zone.
Supporting Types
IsReservationActivateCapacity, IsReservationActivateCapacityArgs
- Allocated double
- (Integer) The amount allocated to this capacity reservation.
- Available double
- (Integer) The amount of this capacity reservation available for new attachments.
- Status string
- (String) The status of the reservation.
- Total double
- (Integer) The total amount of this capacity reservation.
- Used double
- (Integer) The amount of this capacity reservation used by existing attachments.
- Allocated float64
- (Integer) The amount allocated to this capacity reservation.
- Available float64
- (Integer) The amount of this capacity reservation available for new attachments.
- Status string
- (String) The status of the reservation.
- Total float64
- (Integer) The total amount of this capacity reservation.
- Used float64
- (Integer) The amount of this capacity reservation used by existing attachments.
- allocated Double
- (Integer) The amount allocated to this capacity reservation.
- available Double
- (Integer) The amount of this capacity reservation available for new attachments.
- status String
- (String) The status of the reservation.
- total Double
- (Integer) The total amount of this capacity reservation.
- used Double
- (Integer) The amount of this capacity reservation used by existing attachments.
- allocated number
- (Integer) The amount allocated to this capacity reservation.
- available number
- (Integer) The amount of this capacity reservation available for new attachments.
- status string
- (String) The status of the reservation.
- total number
- (Integer) The total amount of this capacity reservation.
- used number
- (Integer) The amount of this capacity reservation used by existing attachments.
- allocated float
- (Integer) The amount allocated to this capacity reservation.
- available float
- (Integer) The amount of this capacity reservation available for new attachments.
- status str
- (String) The status of the reservation.
- total float
- (Integer) The total amount of this capacity reservation.
- used float
- (Integer) The amount of this capacity reservation used by existing attachments.
- allocated Number
- (Integer) The amount allocated to this capacity reservation.
- available Number
- (Integer) The amount of this capacity reservation available for new attachments.
- status String
- (String) The status of the reservation.
- total Number
- (Integer) The total amount of this capacity reservation.
- used Number
- (Integer) The amount of this capacity reservation used by existing attachments.
IsReservationActivateCommittedUse, IsReservationActivateCommittedUseArgs
- Expiration
At string - (Timestamp) The expiration date and time for this committed use reservation.
- Expiration
Policy string - (String) The policy to apply when the committed use term expires.
- Term string
- (String) The term for this committed use reservation.
- Expiration
At string - (Timestamp) The expiration date and time for this committed use reservation.
- Expiration
Policy string - (String) The policy to apply when the committed use term expires.
- Term string
- (String) The term for this committed use reservation.
- expiration
At String - (Timestamp) The expiration date and time for this committed use reservation.
- expiration
Policy String - (String) The policy to apply when the committed use term expires.
- term String
- (String) The term for this committed use reservation.
- expiration
At string - (Timestamp) The expiration date and time for this committed use reservation.
- expiration
Policy string - (String) The policy to apply when the committed use term expires.
- term string
- (String) The term for this committed use reservation.
- expiration_
at str - (Timestamp) The expiration date and time for this committed use reservation.
- expiration_
policy str - (String) The policy to apply when the committed use term expires.
- term str
- (String) The term for this committed use reservation.
- expiration
At String - (Timestamp) The expiration date and time for this committed use reservation.
- expiration
Policy String - (String) The policy to apply when the committed use term expires.
- term String
- (String) The term for this committed use reservation.
IsReservationActivateProfile, IsReservationActivateProfileArgs
- Href string
- (String) The URL for this resource group.
- Name string
- (String) The name for this resource group.
- Resource
Type string - (String) The resource type.
- Href string
- (String) The URL for this resource group.
- Name string
- (String) The name for this resource group.
- Resource
Type string - (String) The resource type.
- href String
- (String) The URL for this resource group.
- name String
- (String) The name for this resource group.
- resource
Type String - (String) The resource type.
- href string
- (String) The URL for this resource group.
- name string
- (String) The name for this resource group.
- resource
Type string - (String) The resource type.
- href str
- (String) The URL for this resource group.
- name str
- (String) The name for this resource group.
- resource_
type str - (String) The resource type.
- href String
- (String) The URL for this resource group.
- name String
- (String) The name for this resource group.
- resource
Type String - (String) The resource type.
IsReservationActivateResourceGroup, IsReservationActivateResourceGroupArgs
IsReservationActivateStatusReason, IsReservationActivateStatusReasonArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.