Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getManagementAgentAvailableHistories

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testManagementAgentAvailableHistories = Output.Create(Oci.ManagementAgent.GetManagementAgentAvailableHistories.InvokeAsync(new Oci.ManagementAgent.GetManagementAgentAvailableHistoriesArgs
        {
            ManagementAgentId = oci_management_agent_management_agent.Test_management_agent.Id,
            TimeAvailabilityStatusEndedGreaterThan = @var.Management_agent_available_history_time_availability_status_ended_greater_than,
            TimeAvailabilityStatusStartedLessThan = @var.Management_agent_available_history_time_availability_status_started_less_than,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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:                      oci_management_agent_management_agent.Test_management_agent.Id,
			TimeAvailabilityStatusEndedGreaterThan: pulumi.StringRef(_var.Management_agent_available_history_time_availability_status_ended_greater_than),
			TimeAvailabilityStatusStartedLessThan:  pulumi.StringRef(_var.Management_agent_available_history_time_availability_status_started_less_than),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_management_agent_available_histories = oci.ManagementAgent.get_management_agent_available_histories(management_agent_id=oci_management_agent_management_agent["test_management_agent"]["id"],
    time_availability_status_ended_greater_than=var["management_agent_available_history_time_availability_status_ended_greater_than"],
    time_availability_status_started_less_than=var["management_agent_available_history_time_availability_status_started_less_than"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testManagementAgentAvailableHistories = oci.ManagementAgent.getManagementAgentAvailableHistories({
    managementAgentId: oci_management_agent_management_agent.test_management_agent.id,
    timeAvailabilityStatusEndedGreaterThan: _var.management_agent_available_history_time_availability_status_ended_greater_than,
    timeAvailabilityStatusStartedLessThan: _var.management_agent_available_history_time_availability_status_started_less_than,
});

Coming soon!

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 14.29.

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 14.29.

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 14.29.

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 14.29.

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 14.29.

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 14.29.

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 14.29.

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 14.29.

management_agent_id str

Unique Management Agent identifier

filters 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 14.29.

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 14.29.

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 14.29.

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 14.29.

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.