Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ManagementAgent.getManagementAgentAvailableHistories
Explore with Pulumi AI
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[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[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)
public static Output<GetManagementAgentAvailableHistoriesResult> getManagementAgentAvailableHistories(GetManagementAgentAvailableHistoriesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ManagementAgent/getManagementAgentAvailableHistories:getManagementAgentAvailableHistories
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagementAgent stringId 
- Unique Management Agent identifier
- Filters
List<GetManagement Agent Available Histories Filter> 
- TimeAvailability stringStatus Ended Greater Than 
- 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.
- TimeAvailability stringStatus Started Less Than 
- 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.
- ManagementAgent stringId 
- Unique Management Agent identifier
- Filters
[]GetManagement Agent Available Histories Filter 
- TimeAvailability stringStatus Ended Greater Than 
- 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.
- TimeAvailability stringStatus Started Less Than 
- 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.
- managementAgent StringId 
- Unique Management Agent identifier
- filters
List<GetAvailable Histories Filter> 
- timeAvailability StringStatus Ended Greater Than 
- 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.
- timeAvailability StringStatus Started Less Than 
- 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.
- managementAgent stringId 
- Unique Management Agent identifier
- filters
GetManagement Agent Available Histories Filter[] 
- timeAvailability stringStatus Ended Greater Than 
- 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.
- timeAvailability stringStatus Started Less Than 
- 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_ strid 
- Unique Management Agent identifier
- filters
Sequence[GetManagement Agent Available Histories Filter] 
- time_availability_ strstatus_ ended_ greater_ than 
- 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_ strstatus_ started_ less_ than 
- 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.
- managementAgent StringId 
- Unique Management Agent identifier
- filters List<Property Map>
- timeAvailability StringStatus Ended Greater Than 
- 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.
- timeAvailability StringStatus Started Less Than 
- 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<GetManagement Agent Available Histories Availability History> 
- The list of availability_histories.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagementAgent stringId 
- agent identifier
- Filters
List<GetManagement Agent Available Histories Filter> 
- TimeAvailability stringStatus Ended Greater Than 
- TimeAvailability stringStatus Started Less Than 
- AvailabilityHistories []GetManagement Agent Available Histories Availability History 
- The list of availability_histories.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagementAgent stringId 
- agent identifier
- Filters
[]GetManagement Agent Available Histories Filter 
- TimeAvailability stringStatus Ended Greater Than 
- TimeAvailability stringStatus Started Less Than 
- availabilityHistories List<GetAvailable Histories Availability History> 
- The list of availability_histories.
- id String
- The provider-assigned unique ID for this managed resource.
- managementAgent StringId 
- agent identifier
- filters
List<GetAvailable Histories Filter> 
- timeAvailability StringStatus Ended Greater Than 
- timeAvailability StringStatus Started Less Than 
- availabilityHistories GetManagement Agent Available Histories Availability History[] 
- The list of availability_histories.
- id string
- The provider-assigned unique ID for this managed resource.
- managementAgent stringId 
- agent identifier
- filters
GetManagement Agent Available Histories Filter[] 
- timeAvailability stringStatus Ended Greater Than 
- timeAvailability stringStatus Started Less Than 
- availability_histories Sequence[GetManagement Agent Available Histories Availability History] 
- The list of availability_histories.
- id str
- The provider-assigned unique ID for this managed resource.
- management_agent_ strid 
- agent identifier
- filters
Sequence[GetManagement Agent Available Histories Filter] 
- time_availability_ strstatus_ ended_ greater_ than 
- time_availability_ strstatus_ started_ less_ than 
- availabilityHistories List<Property Map>
- The list of availability_histories.
- id String
- The provider-assigned unique ID for this managed resource.
- managementAgent StringId 
- agent identifier
- filters List<Property Map>
- timeAvailability StringStatus Ended Greater Than 
- timeAvailability StringStatus Started Less Than 
Supporting Types
GetManagementAgentAvailableHistoriesAvailabilityHistory      
- AvailabilityStatus string
- The availability status of managementAgent
- ManagementAgent stringId 
- Unique Management Agent identifier
- TimeAvailability stringStatus Ended 
- The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- TimeAvailability stringStatus Started 
- The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
- AvailabilityStatus string
- The availability status of managementAgent
- ManagementAgent stringId 
- Unique Management Agent identifier
- TimeAvailability stringStatus Ended 
- The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- TimeAvailability stringStatus Started 
- The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
- availabilityStatus String
- The availability status of managementAgent
- managementAgent StringId 
- Unique Management Agent identifier
- timeAvailability StringStatus Ended 
- The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- timeAvailability StringStatus Started 
- The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
- availabilityStatus string
- The availability status of managementAgent
- managementAgent stringId 
- Unique Management Agent identifier
- timeAvailability stringStatus Ended 
- The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- timeAvailability stringStatus Started 
- 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_ strid 
- Unique Management Agent identifier
- time_availability_ strstatus_ ended 
- The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- time_availability_ strstatus_ started 
- The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
- availabilityStatus String
- The availability status of managementAgent
- managementAgent StringId 
- Unique Management Agent identifier
- timeAvailability StringStatus Ended 
- The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- timeAvailability StringStatus Started 
- The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
GetManagementAgentAvailableHistoriesFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.