1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ManagementAgent
  5. getManagementAgentAvailableHistories
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.ManagementAgent.getManagementAgentAvailableHistories

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Management Agent Available Histories in Oracle Cloud Infrastructure Management Agent service.

    Lists the availability history records of Management Agent

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagementAgentAvailableHistories = oci.ManagementAgent.getManagementAgentAvailableHistories({
        managementAgentId: testManagementAgent.id,
        timeAvailabilityStatusEndedGreaterThan: managementAgentAvailableHistoryTimeAvailabilityStatusEndedGreaterThan,
        timeAvailabilityStatusStartedLessThan: managementAgentAvailableHistoryTimeAvailabilityStatusStartedLessThan,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_management_agent_available_histories = oci.ManagementAgent.get_management_agent_available_histories(management_agent_id=test_management_agent["id"],
        time_availability_status_ended_greater_than=management_agent_available_history_time_availability_status_ended_greater_than,
        time_availability_status_started_less_than=management_agent_available_history_time_availability_status_started_less_than)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ManagementAgent"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ManagementAgent.GetManagementAgentAvailableHistories(ctx, &managementagent.GetManagementAgentAvailableHistoriesArgs{
    			ManagementAgentId:                      testManagementAgent.Id,
    			TimeAvailabilityStatusEndedGreaterThan: pulumi.StringRef(managementAgentAvailableHistoryTimeAvailabilityStatusEndedGreaterThan),
    			TimeAvailabilityStatusStartedLessThan:  pulumi.StringRef(managementAgentAvailableHistoryTimeAvailabilityStatusStartedLessThan),
    		}, 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 testManagementAgentAvailableHistories = Oci.ManagementAgent.GetManagementAgentAvailableHistories.Invoke(new()
        {
            ManagementAgentId = testManagementAgent.Id,
            TimeAvailabilityStatusEndedGreaterThan = managementAgentAvailableHistoryTimeAvailabilityStatusEndedGreaterThan,
            TimeAvailabilityStatusStartedLessThan = managementAgentAvailableHistoryTimeAvailabilityStatusStartedLessThan,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ManagementAgent.ManagementAgentFunctions;
    import com.pulumi.oci.ManagementAgent.inputs.GetManagementAgentAvailableHistoriesArgs;
    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 testManagementAgentAvailableHistories = ManagementAgentFunctions.getManagementAgentAvailableHistories(GetManagementAgentAvailableHistoriesArgs.builder()
                .managementAgentId(testManagementAgent.id())
                .timeAvailabilityStatusEndedGreaterThan(managementAgentAvailableHistoryTimeAvailabilityStatusEndedGreaterThan)
                .timeAvailabilityStatusStartedLessThan(managementAgentAvailableHistoryTimeAvailabilityStatusStartedLessThan)
                .build());
    
        }
    }
    
    variables:
      testManagementAgentAvailableHistories:
        fn::invoke:
          Function: oci:ManagementAgent:getManagementAgentAvailableHistories
          Arguments:
            managementAgentId: ${testManagementAgent.id}
            timeAvailabilityStatusEndedGreaterThan: ${managementAgentAvailableHistoryTimeAvailabilityStatusEndedGreaterThan}
            timeAvailabilityStatusStartedLessThan: ${managementAgentAvailableHistoryTimeAvailabilityStatusStartedLessThan}
    

    Using getManagementAgentAvailableHistories

    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 getManagementAgentAvailableHistories(args: GetManagementAgentAvailableHistoriesArgs, opts?: InvokeOptions): Promise<GetManagementAgentAvailableHistoriesResult>
    function getManagementAgentAvailableHistoriesOutput(args: GetManagementAgentAvailableHistoriesOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentAvailableHistoriesResult>
    def get_management_agent_available_histories(filters: Optional[Sequence[_managementagent.GetManagementAgentAvailableHistoriesFilter]] = None,
                                                 management_agent_id: Optional[str] = None,
                                                 time_availability_status_ended_greater_than: Optional[str] = None,
                                                 time_availability_status_started_less_than: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetManagementAgentAvailableHistoriesResult
    def get_management_agent_available_histories_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_managementagent.GetManagementAgentAvailableHistoriesFilterArgs]]]] = None,
                                                 management_agent_id: Optional[pulumi.Input[str]] = None,
                                                 time_availability_status_ended_greater_than: Optional[pulumi.Input[str]] = None,
                                                 time_availability_status_started_less_than: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentAvailableHistoriesResult]
    func GetManagementAgentAvailableHistories(ctx *Context, args *GetManagementAgentAvailableHistoriesArgs, opts ...InvokeOption) (*GetManagementAgentAvailableHistoriesResult, error)
    func GetManagementAgentAvailableHistoriesOutput(ctx *Context, args *GetManagementAgentAvailableHistoriesOutputArgs, opts ...InvokeOption) GetManagementAgentAvailableHistoriesResultOutput

    > Note: This function is named GetManagementAgentAvailableHistories in the Go SDK.

    public static class GetManagementAgentAvailableHistories 
    {
        public static Task<GetManagementAgentAvailableHistoriesResult> InvokeAsync(GetManagementAgentAvailableHistoriesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementAgentAvailableHistoriesResult> Invoke(GetManagementAgentAvailableHistoriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementAgentAvailableHistoriesResult> getManagementAgentAvailableHistories(GetManagementAgentAvailableHistoriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ManagementAgent/getManagementAgentAvailableHistories:getManagementAgentAvailableHistories
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagementAgentId string
    Unique Management Agent identifier
    Filters List<GetManagementAgentAvailableHistoriesFilter>
    TimeAvailabilityStatusEndedGreaterThan string
    Filter to limit the availability history results to that of time after the input time including the boundary record. Defaulted to current date minus one year. The date and time to be given as described in RFC 3339, section 5.6.
    TimeAvailabilityStatusStartedLessThan string
    Filter to limit the availability history results to that of time before the input time including the boundary record Defaulted to current date. The date and time to be given as described in RFC 3339, section 5.6.
    ManagementAgentId string
    Unique Management Agent identifier
    Filters []GetManagementAgentAvailableHistoriesFilter
    TimeAvailabilityStatusEndedGreaterThan string
    Filter to limit the availability history results to that of time after the input time including the boundary record. Defaulted to current date minus one year. The date and time to be given as described in RFC 3339, section 5.6.
    TimeAvailabilityStatusStartedLessThan string
    Filter to limit the availability history results to that of time before the input time including the boundary record Defaulted to current date. The date and time to be given as described in RFC 3339, section 5.6.
    managementAgentId String
    Unique Management Agent identifier
    filters List<GetAvailableHistoriesFilter>
    timeAvailabilityStatusEndedGreaterThan String
    Filter to limit the availability history results to that of time after the input time including the boundary record. Defaulted to current date minus one year. The date and time to be given as described in RFC 3339, section 5.6.
    timeAvailabilityStatusStartedLessThan String
    Filter to limit the availability history results to that of time before the input time including the boundary record Defaulted to current date. The date and time to be given as described in RFC 3339, section 5.6.
    managementAgentId string
    Unique Management Agent identifier
    filters GetManagementAgentAvailableHistoriesFilter[]
    timeAvailabilityStatusEndedGreaterThan string
    Filter to limit the availability history results to that of time after the input time including the boundary record. Defaulted to current date minus one year. The date and time to be given as described in RFC 3339, section 5.6.
    timeAvailabilityStatusStartedLessThan string
    Filter to limit the availability history results to that of time before the input time including the boundary record Defaulted to current date. The date and time to be given as described in RFC 3339, section 5.6.
    management_agent_id str
    Unique Management Agent identifier
    filters Sequence[managementagent.GetManagementAgentAvailableHistoriesFilter]
    time_availability_status_ended_greater_than str
    Filter to limit the availability history results to that of time after the input time including the boundary record. Defaulted to current date minus one year. The date and time to be given as described in RFC 3339, section 5.6.
    time_availability_status_started_less_than str
    Filter to limit the availability history results to that of time before the input time including the boundary record Defaulted to current date. The date and time to be given as described in RFC 3339, section 5.6.
    managementAgentId String
    Unique Management Agent identifier
    filters List<Property Map>
    timeAvailabilityStatusEndedGreaterThan String
    Filter to limit the availability history results to that of time after the input time including the boundary record. Defaulted to current date minus one year. The date and time to be given as described in RFC 3339, section 5.6.
    timeAvailabilityStatusStartedLessThan String
    Filter to limit the availability history results to that of time before the input time including the boundary record Defaulted to current date. The date and time to be given as described in RFC 3339, section 5.6.

    getManagementAgentAvailableHistories Result

    The following output properties are available:

    availabilityHistories List<GetAvailableHistoriesAvailabilityHistory>
    The list of availability_histories.
    id String
    The provider-assigned unique ID for this managed resource.
    managementAgentId String
    agent identifier
    filters List<GetAvailableHistoriesFilter>
    timeAvailabilityStatusEndedGreaterThan String
    timeAvailabilityStatusStartedLessThan String
    availabilityHistories List<Property Map>
    The list of availability_histories.
    id String
    The provider-assigned unique ID for this managed resource.
    managementAgentId String
    agent identifier
    filters List<Property Map>
    timeAvailabilityStatusEndedGreaterThan String
    timeAvailabilityStatusStartedLessThan String

    Supporting Types

    GetManagementAgentAvailableHistoriesAvailabilityHistory

    AvailabilityStatus string
    The availability status of managementAgent
    ManagementAgentId string
    Unique Management Agent identifier
    TimeAvailabilityStatusEnded string
    The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
    TimeAvailabilityStatusStarted string
    The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
    AvailabilityStatus string
    The availability status of managementAgent
    ManagementAgentId string
    Unique Management Agent identifier
    TimeAvailabilityStatusEnded string
    The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
    TimeAvailabilityStatusStarted string
    The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
    availabilityStatus String
    The availability status of managementAgent
    managementAgentId String
    Unique Management Agent identifier
    timeAvailabilityStatusEnded String
    The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
    timeAvailabilityStatusStarted String
    The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
    availabilityStatus string
    The availability status of managementAgent
    managementAgentId string
    Unique Management Agent identifier
    timeAvailabilityStatusEnded string
    The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
    timeAvailabilityStatusStarted string
    The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
    availability_status str
    The availability status of managementAgent
    management_agent_id str
    Unique Management Agent identifier
    time_availability_status_ended str
    The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
    time_availability_status_started str
    The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
    availabilityStatus String
    The availability status of managementAgent
    managementAgentId String
    Unique Management Agent identifier
    timeAvailabilityStatusEnded String
    The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
    timeAvailabilityStatusStarted String
    The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string

    GetManagementAgentAvailableHistoriesFilter

    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.17.0 published on Friday, Nov 15, 2024 by Pulumi