Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.CloudBridge.getDiscoverySchedules
Explore with Pulumi AI
This data source provides the list of Discovery Schedules in Oracle Cloud Infrastructure Cloud Bridge service.
Lists discovery schedules.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDiscoverySchedules = Oci.CloudBridge.GetDiscoverySchedules.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DiscoveryScheduleId = oci_cloud_bridge_discovery_schedule.Test_discovery_schedule.Id,
DisplayName = @var.Discovery_schedule_display_name,
State = @var.Discovery_schedule_state,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/CloudBridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CloudBridge.GetDiscoverySchedules(ctx, &cloudbridge.GetDiscoverySchedulesArgs{
CompartmentId: _var.Compartment_id,
DiscoveryScheduleId: pulumi.StringRef(oci_cloud_bridge_discovery_schedule.Test_discovery_schedule.Id),
DisplayName: pulumi.StringRef(_var.Discovery_schedule_display_name),
State: pulumi.StringRef(_var.Discovery_schedule_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CloudBridge.CloudBridgeFunctions;
import com.pulumi.oci.CloudBridge.inputs.GetDiscoverySchedulesArgs;
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 testDiscoverySchedules = CloudBridgeFunctions.getDiscoverySchedules(GetDiscoverySchedulesArgs.builder()
.compartmentId(var_.compartment_id())
.discoveryScheduleId(oci_cloud_bridge_discovery_schedule.test_discovery_schedule().id())
.displayName(var_.discovery_schedule_display_name())
.state(var_.discovery_schedule_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_discovery_schedules = oci.CloudBridge.get_discovery_schedules(compartment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
discovery_schedule_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
state=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDiscoverySchedules = oci.CloudBridge.getDiscoverySchedules({
compartmentId: _var.compartment_id,
discoveryScheduleId: oci_cloud_bridge_discovery_schedule.test_discovery_schedule.id,
displayName: _var.discovery_schedule_display_name,
state: _var.discovery_schedule_state,
});
variables:
testDiscoverySchedules:
fn::invoke:
Function: oci:CloudBridge:getDiscoverySchedules
Arguments:
compartmentId: ${var.compartment_id}
discoveryScheduleId: ${oci_cloud_bridge_discovery_schedule.test_discovery_schedule.id}
displayName: ${var.discovery_schedule_display_name}
state: ${var.discovery_schedule_state}
Using getDiscoverySchedules
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 getDiscoverySchedules(args: GetDiscoverySchedulesArgs, opts?: InvokeOptions): Promise<GetDiscoverySchedulesResult>
function getDiscoverySchedulesOutput(args: GetDiscoverySchedulesOutputArgs, opts?: InvokeOptions): Output<GetDiscoverySchedulesResult>
def get_discovery_schedules(compartment_id: Optional[str] = None,
discovery_schedule_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_cloudbridge.GetDiscoverySchedulesFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDiscoverySchedulesResult
def get_discovery_schedules_output(compartment_id: Optional[pulumi.Input[str]] = None,
discovery_schedule_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_cloudbridge.GetDiscoverySchedulesFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDiscoverySchedulesResult]
func GetDiscoverySchedules(ctx *Context, args *GetDiscoverySchedulesArgs, opts ...InvokeOption) (*GetDiscoverySchedulesResult, error)
func GetDiscoverySchedulesOutput(ctx *Context, args *GetDiscoverySchedulesOutputArgs, opts ...InvokeOption) GetDiscoverySchedulesResultOutput
> Note: This function is named GetDiscoverySchedules
in the Go SDK.
public static class GetDiscoverySchedules
{
public static Task<GetDiscoverySchedulesResult> InvokeAsync(GetDiscoverySchedulesArgs args, InvokeOptions? opts = null)
public static Output<GetDiscoverySchedulesResult> Invoke(GetDiscoverySchedulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDiscoverySchedulesResult> getDiscoverySchedules(GetDiscoverySchedulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CloudBridge/getDiscoverySchedules:getDiscoverySchedules
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The ID of the compartment in which to list resources.
- Discovery
Schedule stringId The OCID of the discovery schedule.
- Display
Name string A filter to return only resources that match the entire display name given.
- Filters
List<Get
Discovery Schedules Filter> - State string
The current state of the discovery schedule.
- Compartment
Id string The ID of the compartment in which to list resources.
- Discovery
Schedule stringId The OCID of the discovery schedule.
- Display
Name string A filter to return only resources that match the entire display name given.
- Filters
[]Get
Discovery Schedules Filter - State string
The current state of the discovery schedule.
- compartment
Id String The ID of the compartment in which to list resources.
- discovery
Schedule StringId The OCID of the discovery schedule.
- display
Name String A filter to return only resources that match the entire display name given.
- filters
List<Get
Discovery Schedules Filter> - state String
The current state of the discovery schedule.
- compartment
Id string The ID of the compartment in which to list resources.
- discovery
Schedule stringId The OCID of the discovery schedule.
- display
Name string A filter to return only resources that match the entire display name given.
- filters
Get
Discovery Schedules Filter[] - state string
The current state of the discovery schedule.
- compartment_
id str The ID of the compartment in which to list resources.
- discovery_
schedule_ strid The OCID of the discovery schedule.
- display_
name str A filter to return only resources that match the entire display name given.
- filters
Get
Discovery Schedules Filter] - state str
The current state of the discovery schedule.
- compartment
Id String The ID of the compartment in which to list resources.
- discovery
Schedule StringId The OCID of the discovery schedule.
- display
Name String A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- state String
The current state of the discovery schedule.
getDiscoverySchedules Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment in which the discovery schedule exists.
- Discovery
Schedule List<GetCollections Discovery Schedules Discovery Schedule Collection> The list of discovery_schedule_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Discovery
Schedule stringId - Display
Name string A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- Filters
List<Get
Discovery Schedules Filter> - State string
Current state of the discovery schedule.
- Compartment
Id string The OCID of the compartment in which the discovery schedule exists.
- Discovery
Schedule []GetCollections Discovery Schedules Discovery Schedule Collection The list of discovery_schedule_collection.
- Id string
The provider-assigned unique ID for this managed resource.
- Discovery
Schedule stringId - Display
Name string A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- Filters
[]Get
Discovery Schedules Filter - State string
Current state of the discovery schedule.
- compartment
Id String The OCID of the compartment in which the discovery schedule exists.
- discovery
Schedule List<GetCollections Discovery Schedules Discovery Schedule Collection> The list of discovery_schedule_collection.
- id String
The provider-assigned unique ID for this managed resource.
- discovery
Schedule StringId - display
Name String A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- filters
List<Get
Discovery Schedules Filter> - state String
Current state of the discovery schedule.
- compartment
Id string The OCID of the compartment in which the discovery schedule exists.
- discovery
Schedule GetCollections Discovery Schedules Discovery Schedule Collection[] The list of discovery_schedule_collection.
- id string
The provider-assigned unique ID for this managed resource.
- discovery
Schedule stringId - display
Name string A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- filters
Get
Discovery Schedules Filter[] - state string
Current state of the discovery schedule.
- compartment_
id str The OCID of the compartment in which the discovery schedule exists.
- discovery_
schedule_ Getcollections Discovery Schedules Discovery Schedule Collection] The list of discovery_schedule_collection.
- id str
The provider-assigned unique ID for this managed resource.
- discovery_
schedule_ strid - display_
name str A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- filters
Get
Discovery Schedules Filter] - state str
Current state of the discovery schedule.
- compartment
Id String The OCID of the compartment in which the discovery schedule exists.
- discovery
Schedule List<Property Map>Collections The list of discovery_schedule_collection.
- id String
The provider-assigned unique ID for this managed resource.
- discovery
Schedule StringId - display
Name String A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- filters List<Property Map>
- state String
Current state of the discovery schedule.
Supporting Types
GetDiscoverySchedulesDiscoveryScheduleCollection
GetDiscoverySchedulesDiscoveryScheduleCollectionItem
- Compartment
Id string The ID of the compartment in which to list resources.
- Dictionary<string, object>
The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A filter to return only resources that match the entire display name given.
- Execution
Recurrences string Recurrence specification for the discovery schedule execution.
- Dictionary<string, object>
The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
The OCID of the discovery schedule.
- Lifecycle
Details string The detailed state of the discovery schedule.
- State string
The current state of the discovery schedule.
- Dictionary<string, object>
The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}}
- Time
Created string The time when the discovery schedule was created in RFC3339 format.
- Time
Updated string The time when the discovery schedule was last updated in RFC3339 format.
- Compartment
Id string The ID of the compartment in which to list resources.
- map[string]interface{}
The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A filter to return only resources that match the entire display name given.
- Execution
Recurrences string Recurrence specification for the discovery schedule execution.
- map[string]interface{}
The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
The OCID of the discovery schedule.
- Lifecycle
Details string The detailed state of the discovery schedule.
- State string
The current state of the discovery schedule.
- map[string]interface{}
The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}}
- Time
Created string The time when the discovery schedule was created in RFC3339 format.
- Time
Updated string The time when the discovery schedule was last updated in RFC3339 format.
- compartment
Id String The ID of the compartment in which to list resources.
- Map<String,Object>
The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A filter to return only resources that match the entire display name given.
- execution
Recurrences String Recurrence specification for the discovery schedule execution.
- Map<String,Object>
The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
The OCID of the discovery schedule.
- lifecycle
Details String The detailed state of the discovery schedule.
- state String
The current state of the discovery schedule.
- Map<String,Object>
The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}}
- time
Created String The time when the discovery schedule was created in RFC3339 format.
- time
Updated String The time when the discovery schedule was last updated in RFC3339 format.
- compartment
Id string The ID of the compartment in which to list resources.
- {[key: string]: any}
The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string A filter to return only resources that match the entire display name given.
- execution
Recurrences string Recurrence specification for the discovery schedule execution.
- {[key: string]: any}
The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
The OCID of the discovery schedule.
- lifecycle
Details string The detailed state of the discovery schedule.
- state string
The current state of the discovery schedule.
- {[key: string]: any}
The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}}
- time
Created string The time when the discovery schedule was created in RFC3339 format.
- time
Updated string The time when the discovery schedule was last updated in RFC3339 format.
- compartment_
id str The ID of the compartment in which to list resources.
- Mapping[str, Any]
The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str A filter to return only resources that match the entire display name given.
- execution_
recurrences str Recurrence specification for the discovery schedule execution.
- Mapping[str, Any]
The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
The OCID of the discovery schedule.
- lifecycle_
details str The detailed state of the discovery schedule.
- state str
The current state of the discovery schedule.
- Mapping[str, Any]
The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}}
- time_
created str The time when the discovery schedule was created in RFC3339 format.
- time_
updated str The time when the discovery schedule was last updated in RFC3339 format.
- compartment
Id String The ID of the compartment in which to list resources.
- Map<Any>
The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A filter to return only resources that match the entire display name given.
- execution
Recurrences String Recurrence specification for the discovery schedule execution.
- Map<Any>
The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
The OCID of the discovery schedule.
- lifecycle
Details String The detailed state of the discovery schedule.
- state String
The current state of the discovery schedule.
- Map<Any>
The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{orcl-cloud: {free-tier-retain: true}}
- time
Created String The time when the discovery schedule was created in RFC3339 format.
- time
Updated String The time when the discovery schedule was last updated in RFC3339 format.
GetDiscoverySchedulesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.