1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudBridge
  5. getDiscoverySchedules
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.CloudBridge.getDiscoverySchedules

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Discovery Schedules in Oracle Cloud Infrastructure Cloud Bridge service.

    Lists discovery schedules.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDiscoverySchedules = oci.CloudBridge.getDiscoverySchedules({
        compartmentId: compartmentId,
        discoveryScheduleId: testDiscoverySchedule.id,
        displayName: discoveryScheduleDisplayName,
        state: discoveryScheduleState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_discovery_schedules = oci.CloudBridge.get_discovery_schedules(compartment_id=compartment_id,
        discovery_schedule_id=test_discovery_schedule["id"],
        display_name=discovery_schedule_display_name,
        state=discovery_schedule_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/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:       compartmentId,
    			DiscoveryScheduleId: pulumi.StringRef(testDiscoverySchedule.Id),
    			DisplayName:         pulumi.StringRef(discoveryScheduleDisplayName),
    			State:               pulumi.StringRef(discoveryScheduleState),
    		}, 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 testDiscoverySchedules = Oci.CloudBridge.GetDiscoverySchedules.Invoke(new()
        {
            CompartmentId = compartmentId,
            DiscoveryScheduleId = testDiscoverySchedule.Id,
            DisplayName = discoveryScheduleDisplayName,
            State = discoveryScheduleState,
        });
    
    });
    
    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(compartmentId)
                .discoveryScheduleId(testDiscoverySchedule.id())
                .displayName(discoveryScheduleDisplayName)
                .state(discoveryScheduleState)
                .build());
    
        }
    }
    
    variables:
      testDiscoverySchedules:
        fn::invoke:
          Function: oci:CloudBridge:getDiscoverySchedules
          Arguments:
            compartmentId: ${compartmentId}
            discoveryScheduleId: ${testDiscoverySchedule.id}
            displayName: ${discoveryScheduleDisplayName}
            state: ${discoveryScheduleState}
    

    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:

    CompartmentId string
    The ID of the compartment in which to list resources.
    DiscoveryScheduleId string
    The OCID of the discovery schedule.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetDiscoverySchedulesFilter>
    State string
    The current state of the discovery schedule.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DiscoveryScheduleId string
    The OCID of the discovery schedule.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetDiscoverySchedulesFilter
    State string
    The current state of the discovery schedule.
    compartmentId String
    The ID of the compartment in which to list resources.
    discoveryScheduleId String
    The OCID of the discovery schedule.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetDiscoverySchedulesFilter>
    state String
    The current state of the discovery schedule.
    compartmentId string
    The ID of the compartment in which to list resources.
    discoveryScheduleId string
    The OCID of the discovery schedule.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetDiscoverySchedulesFilter[]
    state string
    The current state of the discovery schedule.
    compartment_id str
    The ID of the compartment in which to list resources.
    discovery_schedule_id str
    The OCID of the discovery schedule.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[cloudbridge.GetDiscoverySchedulesFilter]
    state str
    The current state of the discovery schedule.
    compartmentId String
    The ID of the compartment in which to list resources.
    discoveryScheduleId String
    The OCID of the discovery schedule.
    displayName 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:

    CompartmentId string
    The OCID of the compartment in which the discovery schedule exists.
    DiscoveryScheduleCollections List<GetDiscoverySchedulesDiscoveryScheduleCollection>
    The list of discovery_schedule_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    DiscoveryScheduleId string
    DisplayName 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<GetDiscoverySchedulesFilter>
    State string
    Current state of the discovery schedule.
    CompartmentId string
    The OCID of the compartment in which the discovery schedule exists.
    DiscoveryScheduleCollections []GetDiscoverySchedulesDiscoveryScheduleCollection
    The list of discovery_schedule_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    DiscoveryScheduleId string
    DisplayName string
    A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable. Avoid entering confidential information.
    Filters []GetDiscoverySchedulesFilter
    State string
    Current state of the discovery schedule.
    compartmentId String
    The OCID of the compartment in which the discovery schedule exists.
    discoveryScheduleCollections List<GetDiscoverySchedulesDiscoveryScheduleCollection>
    The list of discovery_schedule_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    discoveryScheduleId String
    displayName 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<GetDiscoverySchedulesFilter>
    state String
    Current state of the discovery schedule.
    compartmentId string
    The OCID of the compartment in which the discovery schedule exists.
    discoveryScheduleCollections GetDiscoverySchedulesDiscoveryScheduleCollection[]
    The list of discovery_schedule_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    discoveryScheduleId string
    displayName string
    A user-friendly name for the discovery schedule. Does not have to be unique, and it's mutable. Avoid entering confidential information.
    filters GetDiscoverySchedulesFilter[]
    state string
    Current state of the discovery schedule.
    compartment_id str
    The OCID of the compartment in which the discovery schedule exists.
    discovery_schedule_collections Sequence[cloudbridge.GetDiscoverySchedulesDiscoveryScheduleCollection]
    The list of discovery_schedule_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    discovery_schedule_id str
    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 Sequence[cloudbridge.GetDiscoverySchedulesFilter]
    state str
    Current state of the discovery schedule.
    compartmentId String
    The OCID of the compartment in which the discovery schedule exists.
    discoveryScheduleCollections List<Property Map>
    The list of discovery_schedule_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    discoveryScheduleId String
    displayName 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

    CompartmentId string
    The ID of the compartment in which to list resources.
    DefinedTags Dictionary<string, string>
    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"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    ExecutionRecurrences string
    Recurrence specification for the discovery schedule execution.
    FreeformTags Dictionary<string, string>
    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.
    LifecycleDetails string
    The detailed state of the discovery schedule.
    State string
    The current state of the discovery schedule.
    SystemTags Dictionary<string, string>
    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}}
    TimeCreated string
    The time when the discovery schedule was created in RFC3339 format.
    TimeUpdated string
    The time when the discovery schedule was last updated in RFC3339 format.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DefinedTags map[string]string
    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"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    ExecutionRecurrences string
    Recurrence specification for the discovery schedule execution.
    FreeformTags map[string]string
    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.
    LifecycleDetails string
    The detailed state of the discovery schedule.
    State string
    The current state of the discovery schedule.
    SystemTags map[string]string
    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}}
    TimeCreated string
    The time when the discovery schedule was created in RFC3339 format.
    TimeUpdated string
    The time when the discovery schedule was last updated in RFC3339 format.
    compartmentId String
    The ID of the compartment in which to list resources.
    definedTags Map<String,String>
    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"}
    displayName String
    A filter to return only resources that match the entire display name given.
    executionRecurrences String
    Recurrence specification for the discovery schedule execution.
    freeformTags Map<String,String>
    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.
    lifecycleDetails String
    The detailed state of the discovery schedule.
    state String
    The current state of the discovery schedule.
    systemTags Map<String,String>
    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}}
    timeCreated String
    The time when the discovery schedule was created in RFC3339 format.
    timeUpdated String
    The time when the discovery schedule was last updated in RFC3339 format.
    compartmentId string
    The ID of the compartment in which to list resources.
    definedTags {[key: string]: string}
    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"}
    displayName string
    A filter to return only resources that match the entire display name given.
    executionRecurrences string
    Recurrence specification for the discovery schedule execution.
    freeformTags {[key: string]: string}
    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.
    lifecycleDetails string
    The detailed state of the discovery schedule.
    state string
    The current state of the discovery schedule.
    systemTags {[key: string]: string}
    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}}
    timeCreated string
    The time when the discovery schedule was created in RFC3339 format.
    timeUpdated 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.
    defined_tags Mapping[str, str]
    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.
    freeform_tags Mapping[str, str]
    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.
    system_tags Mapping[str, str]
    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.
    compartmentId String
    The ID of the compartment in which to list resources.
    definedTags Map<String>
    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"}
    displayName String
    A filter to return only resources that match the entire display name given.
    executionRecurrences String
    Recurrence specification for the discovery schedule execution.
    freeformTags Map<String>
    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.
    lifecycleDetails String
    The detailed state of the discovery schedule.
    state String
    The current state of the discovery schedule.
    systemTags Map<String>
    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}}
    timeCreated String
    The time when the discovery schedule was created in RFC3339 format.
    timeUpdated String
    The time when the discovery schedule was last updated in RFC3339 format.

    GetDiscoverySchedulesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi