Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.FleetAppsManagement.getProperties
Explore with Pulumi AI
This data source provides the list of Properties in Oracle Cloud Infrastructure Fleet Apps Management service.
Returns a list of Properties for Tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProperties = oci.FleetAppsManagement.getProperties({
compartmentId: compartmentId,
displayName: propertyDisplayName,
id: propertyId,
scope: propertyScope,
state: propertyState,
});
import pulumi
import pulumi_oci as oci
test_properties = oci.FleetAppsManagement.get_properties(compartment_id=compartment_id,
display_name=property_display_name,
id=property_id,
scope=property_scope,
state=property_state)
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.GetProperties(ctx, &fleetappsmanagement.GetPropertiesArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(propertyDisplayName),
Id: pulumi.StringRef(propertyId),
Scope: pulumi.StringRef(propertyScope),
State: pulumi.StringRef(propertyState),
}, nil)
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 testProperties = Oci.FleetAppsManagement.GetProperties.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = propertyDisplayName,
Id = propertyId,
Scope = propertyScope,
State = propertyState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
import com.pulumi.oci.FleetAppsManagement.inputs.GetPropertiesArgs;
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) {
final var testProperties = FleetAppsManagementFunctions.getProperties(GetPropertiesArgs.builder()
.compartmentId(compartmentId)
.displayName(propertyDisplayName)
.id(propertyId)
.scope(propertyScope)
.state(propertyState)
.build());
}
}
variables:
testProperties:
fn::invoke:
Function: oci:FleetAppsManagement:getProperties
Arguments:
compartmentId: ${compartmentId}
displayName: ${propertyDisplayName}
id: ${propertyId}
scope: ${propertyScope}
state: ${propertyState}
Using getProperties
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 getProperties(args: GetPropertiesArgs, opts?: InvokeOptions): Promise<GetPropertiesResult>
function getPropertiesOutput(args: GetPropertiesOutputArgs, opts?: InvokeOptions): Output<GetPropertiesResult>
def get_properties(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_fleetappsmanagement.GetPropertiesFilter]] = None,
id: Optional[str] = None,
scope: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPropertiesResult
def get_properties_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_fleetappsmanagement.GetPropertiesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
scope: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPropertiesResult]
func GetProperties(ctx *Context, args *GetPropertiesArgs, opts ...InvokeOption) (*GetPropertiesResult, error)
func GetPropertiesOutput(ctx *Context, args *GetPropertiesOutputArgs, opts ...InvokeOption) GetPropertiesResultOutput
> Note: This function is named GetProperties
in the Go SDK.
public static class GetProperties
{
public static Task<GetPropertiesResult> InvokeAsync(GetPropertiesArgs args, InvokeOptions? opts = null)
public static Output<GetPropertiesResult> Invoke(GetPropertiesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPropertiesResult> getProperties(GetPropertiesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:FleetAppsManagement/getProperties:getProperties
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Properties Filter> - Id string
- unique Property identifier
- Scope string
- A filter to return only resources their scope matches the given lifecycleState.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Properties Filter - Id string
- unique Property identifier
- Scope string
- A filter to return only resources their scope matches the given lifecycleState.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Properties Filter> - id String
- unique Property identifier
- scope String
- A filter to return only resources their scope matches the given lifecycleState.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Properties Filter[] - id string
- unique Property identifier
- scope string
- A filter to return only resources their scope matches the given lifecycleState.
- state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[fleetappsmanagement.
Get Properties Filter] - id str
- unique Property identifier
- scope str
- A filter to return only resources their scope matches the given lifecycleState.
- state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
- unique Property identifier
- scope String
- A filter to return only resources their scope matches the given lifecycleState.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
getProperties Result
The following output properties are available:
- Property
Collections List<GetProperties Property Collection> - The list of property_collection.
- Compartment
Id string - Tenancy OCID
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Filters
List<Get
Properties Filter> - Id string
- The OCID of the resource.
- Scope string
- The scope of the property
- State string
- The current state of the Property.
- Property
Collections []GetProperties Property Collection - The list of property_collection.
- Compartment
Id string - Tenancy OCID
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Filters
[]Get
Properties Filter - Id string
- The OCID of the resource.
- Scope string
- The scope of the property
- State string
- The current state of the Property.
- property
Collections List<GetProperties Property Collection> - The list of property_collection.
- compartment
Id String - Tenancy OCID
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- filters
List<Get
Properties Filter> - id String
- The OCID of the resource.
- scope String
- The scope of the property
- state String
- The current state of the Property.
- property
Collections GetProperties Property Collection[] - The list of property_collection.
- compartment
Id string - Tenancy OCID
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- filters
Get
Properties Filter[] - id string
- The OCID of the resource.
- scope string
- The scope of the property
- state string
- The current state of the Property.
- property_
collections Sequence[fleetappsmanagement.Get Properties Property Collection] - The list of property_collection.
- 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
- filters
Sequence[fleetappsmanagement.
Get Properties Filter] - id str
- The OCID of the resource.
- scope str
- The scope of the property
- state str
- The current state of the Property.
- property
Collections List<Property Map> - The list of property_collection.
- compartment
Id String - Tenancy OCID
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- filters List<Property Map>
- id String
- The OCID of the resource.
- scope String
- The scope of the property
- state String
- The current state of the Property.
Supporting Types
GetPropertiesFilter
GetPropertiesPropertyCollection
GetPropertiesPropertyCollectionItem
- Compartment
Id string - The ID of the compartment in which to list resources.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A filter to return only resources that match the entire display name given.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- unique Property identifier
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Resource
Region string - Associated region
- Scope string
- A filter to return only resources their scope matches the given lifecycleState.
- Selection string
- Text selection of the category
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- The type of the property.
- Value
Type string - Format of the value
- Values List<string>
- Values of the property (must be a single value if selection = 'single choice')
- Compartment
Id string - The ID of the compartment in which to list resources.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A filter to return only resources that match the entire display name given.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- unique Property identifier
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Resource
Region string - Associated region
- Scope string
- A filter to return only resources their scope matches the given lifecycleState.
- Selection string
- Text selection of the category
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- The type of the property.
- Value
Type string - Format of the value
- Values []string
- Values of the property (must be a single value if selection = 'single choice')
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A filter to return only resources that match the entire display name given.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- unique Property identifier
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Region String - Associated region
- scope String
- A filter to return only resources their scope matches the given lifecycleState.
- selection String
- Text selection of the category
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- The type of the property.
- value
Type String - Format of the value
- values List<String>
- Values of the property (must be a single value if selection = 'single choice')
- compartment
Id string - The ID of the compartment in which to list resources.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - A filter to return only resources that match the entire display name given.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- unique Property identifier
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Region string - Associated region
- scope string
- A filter to return only resources their scope matches the given lifecycleState.
- selection string
- Text selection of the category
- state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- type string
- The type of the property.
- value
Type string - Format of the value
- values string[]
- Values of the property (must be a single value if selection = 'single choice')
- compartment_
id str - The ID of the compartment in which to list resources.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str - A filter to return only resources that match the entire display name given.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- unique Property identifier
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource_
region str - Associated region
- scope str
- A filter to return only resources their scope matches the given lifecycleState.
- selection str
- Text selection of the category
- state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- 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.
- type str
- The type of the property.
- value_
type str - Format of the value
- values Sequence[str]
- Values of the property (must be a single value if selection = 'single choice')
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A filter to return only resources that match the entire display name given.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- unique Property identifier
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource
Region String - Associated region
- scope String
- A filter to return only resources their scope matches the given lifecycleState.
- selection String
- Text selection of the category
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- The type of the property.
- value
Type String - Format of the value
- values List<String>
- Values of the property (must be a single value if selection = 'single choice')
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.