oci.FleetAppsManagement.FleetProperty
Explore with Pulumi AI
This resource provides the Fleet Property resource in Oracle Cloud Infrastructure Fleet Apps Management service.
Add an existing global property to a fleet in Fleet Application Management.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleetProperty = new oci.fleetappsmanagement.FleetProperty("test_fleet_property", {
    compartmentId: compartmentId,
    fleetId: testFleet.id,
    propertyId: testProperty.id,
    value: fleetPropertyValue,
});
import pulumi
import pulumi_oci as oci
test_fleet_property = oci.fleet_apps_management.FleetProperty("test_fleet_property",
    compartment_id=compartment_id,
    fleet_id=test_fleet["id"],
    property_id=test_property["id"],
    value=fleet_property_value)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/fleetappsmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fleetappsmanagement.NewFleetProperty(ctx, "test_fleet_property", &fleetappsmanagement.FleetPropertyArgs{
			CompartmentId: pulumi.Any(compartmentId),
			FleetId:       pulumi.Any(testFleet.Id),
			PropertyId:    pulumi.Any(testProperty.Id),
			Value:         pulumi.Any(fleetPropertyValue),
		})
		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 testFleetProperty = new Oci.FleetAppsManagement.FleetProperty("test_fleet_property", new()
    {
        CompartmentId = compartmentId,
        FleetId = testFleet.Id,
        PropertyId = testProperty.Id,
        Value = fleetPropertyValue,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetProperty;
import com.pulumi.oci.FleetAppsManagement.FleetPropertyArgs;
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) {
        var testFleetProperty = new FleetProperty("testFleetProperty", FleetPropertyArgs.builder()
            .compartmentId(compartmentId)
            .fleetId(testFleet.id())
            .propertyId(testProperty.id())
            .value(fleetPropertyValue)
            .build());
    }
}
resources:
  testFleetProperty:
    type: oci:FleetAppsManagement:FleetProperty
    name: test_fleet_property
    properties:
      compartmentId: ${compartmentId}
      fleetId: ${testFleet.id}
      propertyId: ${testProperty.id}
      value: ${fleetPropertyValue}
Create FleetProperty Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FleetProperty(name: string, args: FleetPropertyArgs, opts?: CustomResourceOptions);@overload
def FleetProperty(resource_name: str,
                  args: FleetPropertyArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def FleetProperty(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  compartment_id: Optional[str] = None,
                  fleet_id: Optional[str] = None,
                  property_id: Optional[str] = None,
                  value: Optional[str] = None)func NewFleetProperty(ctx *Context, name string, args FleetPropertyArgs, opts ...ResourceOption) (*FleetProperty, error)public FleetProperty(string name, FleetPropertyArgs args, CustomResourceOptions? opts = null)
public FleetProperty(String name, FleetPropertyArgs args)
public FleetProperty(String name, FleetPropertyArgs args, CustomResourceOptions options)
type: oci:FleetAppsManagement:FleetProperty
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 FleetPropertyArgs
- 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 FleetPropertyArgs
- 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 FleetPropertyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetPropertyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetPropertyArgs
- 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 fleetPropertyResource = new Oci.FleetAppsManagement.FleetProperty("fleetPropertyResource", new()
{
    CompartmentId = "string",
    FleetId = "string",
    PropertyId = "string",
    Value = "string",
});
example, err := FleetAppsManagement.NewFleetProperty(ctx, "fleetPropertyResource", &FleetAppsManagement.FleetPropertyArgs{
	CompartmentId: pulumi.String("string"),
	FleetId:       pulumi.String("string"),
	PropertyId:    pulumi.String("string"),
	Value:         pulumi.String("string"),
})
var fleetPropertyResource = new FleetProperty("fleetPropertyResource", FleetPropertyArgs.builder()
    .compartmentId("string")
    .fleetId("string")
    .propertyId("string")
    .value("string")
    .build());
fleet_property_resource = oci.fleet_apps_management.FleetProperty("fleetPropertyResource",
    compartment_id="string",
    fleet_id="string",
    property_id="string",
    value="string")
const fleetPropertyResource = new oci.fleetappsmanagement.FleetProperty("fleetPropertyResource", {
    compartmentId: "string",
    fleetId: "string",
    propertyId: "string",
    value: "string",
});
type: oci:FleetAppsManagement:FleetProperty
properties:
    compartmentId: string
    fleetId: string
    propertyId: string
    value: string
FleetProperty 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 FleetProperty resource accepts the following input properties:
- CompartmentId string
- Tenancy OCID
- FleetId string
- Unique Fleet identifier.
- PropertyId string
- OCID referring to global level metadata property.
- Value string
- (Updatable) Value of the Property. - ** 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 
- CompartmentId string
- Tenancy OCID
- FleetId string
- Unique Fleet identifier.
- PropertyId string
- OCID referring to global level metadata property.
- Value string
- (Updatable) Value of the Property. - ** 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 
- compartmentId String
- Tenancy OCID
- fleetId String
- Unique Fleet identifier.
- propertyId String
- OCID referring to global level metadata property.
- value String
- (Updatable) Value of the Property. - ** 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 
- compartmentId string
- Tenancy OCID
- fleetId string
- Unique Fleet identifier.
- propertyId string
- OCID referring to global level metadata property.
- value string
- (Updatable) Value of the Property. - ** 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 
- compartment_id str
- Tenancy OCID
- fleet_id str
- Unique Fleet identifier.
- property_id str
- OCID referring to global level metadata property.
- value str
- (Updatable) Value of the Property. - ** 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 
- compartmentId String
- Tenancy OCID
- fleetId String
- Unique Fleet identifier.
- propertyId String
- OCID referring to global level metadata property.
- value String
- (Updatable) Value of the Property. - ** 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 FleetProperty resource produces the following output properties:
- AllowedValues List<string>
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Id string
- The provider-assigned unique ID for this managed resource.
- SelectionType string
- Text selection of the property.
- State string
- The current state of the FleetProperty.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- ValueType string
- Format of the value.
- AllowedValues []string
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Id string
- The provider-assigned unique ID for this managed resource.
- SelectionType string
- Text selection of the property.
- State string
- The current state of the FleetProperty.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- ValueType string
- Format of the value.
- allowedValues List<String>
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- id String
- The provider-assigned unique ID for this managed resource.
- selectionType String
- Text selection of the property.
- state String
- The current state of the FleetProperty.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- valueType String
- Format of the value.
- allowedValues string[]
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- id string
- The provider-assigned unique ID for this managed resource.
- selectionType string
- Text selection of the property.
- state string
- The current state of the FleetProperty.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- valueType string
- Format of the value.
- allowed_values Sequence[str]
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- id str
- The provider-assigned unique ID for this managed resource.
- selection_type str
- Text selection of the property.
- state str
- The current state of the FleetProperty.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time this resource was created. An RFC3339 formatted datetime string.
- time_updated str
- The time this resource was last updated. An RFC3339 formatted datetime string.
- value_type str
- Format of the value.
- allowedValues List<String>
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- id String
- The provider-assigned unique ID for this managed resource.
- selectionType String
- Text selection of the property.
- state String
- The current state of the FleetProperty.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- valueType String
- Format of the value.
Look up Existing FleetProperty Resource
Get an existing FleetProperty 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?: FleetPropertyState, opts?: CustomResourceOptions): FleetProperty@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allowed_values: Optional[Sequence[str]] = None,
        compartment_id: Optional[str] = None,
        display_name: Optional[str] = None,
        fleet_id: Optional[str] = None,
        property_id: Optional[str] = None,
        selection_type: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        value: Optional[str] = None,
        value_type: Optional[str] = None) -> FleetPropertyfunc GetFleetProperty(ctx *Context, name string, id IDInput, state *FleetPropertyState, opts ...ResourceOption) (*FleetProperty, error)public static FleetProperty Get(string name, Input<string> id, FleetPropertyState? state, CustomResourceOptions? opts = null)public static FleetProperty get(String name, Output<String> id, FleetPropertyState state, CustomResourceOptions options)resources:  _:    type: oci:FleetAppsManagement:FleetProperty    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.
- AllowedValues List<string>
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- CompartmentId string
- Tenancy OCID
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- FleetId string
- Unique Fleet identifier.
- PropertyId string
- OCID referring to global level metadata property.
- SelectionType string
- Text selection of the property.
- State string
- The current state of the FleetProperty.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- Value string
- (Updatable) Value of the Property. - ** 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 
- ValueType string
- Format of the value.
- AllowedValues []string
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- CompartmentId string
- Tenancy OCID
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- FleetId string
- Unique Fleet identifier.
- PropertyId string
- OCID referring to global level metadata property.
- SelectionType string
- Text selection of the property.
- State string
- The current state of the FleetProperty.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- Value string
- (Updatable) Value of the Property. - ** 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 
- ValueType string
- Format of the value.
- allowedValues List<String>
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- compartmentId String
- Tenancy OCID
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- fleetId String
- Unique Fleet identifier.
- propertyId String
- OCID referring to global level metadata property.
- selectionType String
- Text selection of the property.
- state String
- The current state of the FleetProperty.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- value String
- (Updatable) Value of the Property. - ** 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 
- valueType String
- Format of the value.
- allowedValues string[]
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- compartmentId string
- Tenancy OCID
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- fleetId string
- Unique Fleet identifier.
- propertyId string
- OCID referring to global level metadata property.
- selectionType string
- Text selection of the property.
- state string
- The current state of the FleetProperty.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- value string
- (Updatable) Value of the Property. - ** 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 
- valueType string
- Format of the value.
- allowed_values Sequence[str]
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- compartment_id str
- Tenancy OCID
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- fleet_id str
- Unique Fleet identifier.
- property_id str
- OCID referring to global level metadata property.
- selection_type str
- Text selection of the property.
- state str
- The current state of the FleetProperty.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time this resource was created. An RFC3339 formatted datetime string.
- time_updated str
- The time this resource was last updated. An RFC3339 formatted datetime string.
- value str
- (Updatable) Value of the Property. - ** 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 
- value_type str
- Format of the value.
- allowedValues List<String>
- Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE').
- compartmentId String
- Tenancy OCID
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- fleetId String
- Unique Fleet identifier.
- propertyId String
- OCID referring to global level metadata property.
- selectionType String
- Text selection of the property.
- state String
- The current state of the FleetProperty.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- value String
- (Updatable) Value of the Property. - ** 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 
- valueType String
- Format of the value.
Import
Import is not supported for this resource.
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 ociTerraform Provider.