Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Management
Agent stringId - Unique Management Agent identifier
- Filters
List<Get
Management Agent Available Histories Filter> - Time
Availability 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.
- Time
Availability 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 stringId - Unique Management Agent identifier
- Filters
[]Get
Management Agent Available Histories Filter - Time
Availability 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.
- Time
Availability 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 StringId - Unique Management Agent identifier
- filters
List<Get
Available Histories Filter> - time
Availability 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.
- time
Availability 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 stringId - Unique Management Agent identifier
- filters
Get
Management Agent Available Histories Filter[] - time
Availability 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.
- time
Availability 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[managementagent.
Get Management 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.
- management
Agent StringId - Unique Management Agent identifier
- filters List<Property Map>
- time
Availability 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.
- time
Availability 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:
- Availability
Histories List<GetManagement Agent Available Histories Availability History> - The list of availability_histories.
- Id string
- The provider-assigned unique ID for this managed resource.
- Management
Agent stringId - agent identifier
- Filters
List<Get
Management Agent Available Histories Filter> - Time
Availability stringStatus Ended Greater Than - Time
Availability stringStatus Started Less Than
- Availability
Histories []GetManagement Agent Available Histories Availability History - The list of availability_histories.
- Id string
- The provider-assigned unique ID for this managed resource.
- Management
Agent stringId - agent identifier
- Filters
[]Get
Management Agent Available Histories Filter - Time
Availability stringStatus Ended Greater Than - Time
Availability stringStatus Started Less Than
- availability
Histories List<GetAvailable Histories Availability History> - The list of availability_histories.
- id String
- The provider-assigned unique ID for this managed resource.
- management
Agent StringId - agent identifier
- filters
List<Get
Available Histories Filter> - time
Availability StringStatus Ended Greater Than - time
Availability StringStatus Started Less Than
- availability
Histories GetManagement Agent Available Histories Availability History[] - The list of availability_histories.
- id string
- The provider-assigned unique ID for this managed resource.
- management
Agent stringId - agent identifier
- filters
Get
Management Agent Available Histories Filter[] - time
Availability stringStatus Ended Greater Than - time
Availability stringStatus Started Less Than
- availability_
histories Sequence[managementagent.Get Management 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[managementagent.
Get Management Agent Available Histories Filter] - time_
availability_ strstatus_ ended_ greater_ than - time_
availability_ strstatus_ started_ less_ than
- availability
Histories List<Property Map> - The list of availability_histories.
- id String
- The provider-assigned unique ID for this managed resource.
- management
Agent StringId - agent identifier
- filters List<Property Map>
- time
Availability StringStatus Ended Greater Than - time
Availability StringStatus Started Less Than
Supporting Types
GetManagementAgentAvailableHistoriesAvailabilityHistory
- Availability
Status string - The availability status of managementAgent
- Management
Agent stringId - Unique Management Agent identifier
- Time
Availability stringStatus Ended - The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- Time
Availability stringStatus Started - The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
- Availability
Status string - The availability status of managementAgent
- Management
Agent stringId - Unique Management Agent identifier
- Time
Availability stringStatus Ended - The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- Time
Availability stringStatus Started - The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
- availability
Status String - The availability status of managementAgent
- management
Agent StringId - Unique Management Agent identifier
- time
Availability StringStatus Ended - The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- time
Availability StringStatus Started - The time at which the Management Agent moved to the availability status. An RFC3339 formatted datetime string
- availability
Status string - The availability status of managementAgent
- management
Agent stringId - Unique Management Agent identifier
- time
Availability stringStatus Ended - The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- time
Availability 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
- availability
Status String - The availability status of managementAgent
- management
Agent StringId - Unique Management Agent identifier
- time
Availability StringStatus Ended - The time till which the Management Agent was known to be in the availability status. An RFC3339 formatted datetime string
- time
Availability 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
oci
Terraform Provider.