Oracle Cloud Infrastructure

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

getManagementAgentGetAutoUpgradableConfig

This data source provides details about a specific Management Agent Get Auto Upgradable Config resource in Oracle Cloud Infrastructure Management Agent service.

Get the AutoUpgradable configuration for all agents in a tenancy. The supplied compartmentId must be a tenancy root.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testManagementAgentGetAutoUpgradableConfig = Output.Create(Oci.ManagementAgent.GetManagementAgentGetAutoUpgradableConfig.InvokeAsync(new Oci.ManagementAgent.GetManagementAgentGetAutoUpgradableConfigArgs
        {
            CompartmentId = @var.Compartment_id,
        }));
    }

}
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.GetManagementAgentGetAutoUpgradableConfig(ctx, &managementagent.GetManagementAgentGetAutoUpgradableConfigArgs{
			CompartmentId: _var.Compartment_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_management_agent_get_auto_upgradable_config = oci.ManagementAgent.get_management_agent_get_auto_upgradable_config(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testManagementAgentGetAutoUpgradableConfig = oci.ManagementAgent.getManagementAgentGetAutoUpgradableConfig({
    compartmentId: _var.compartment_id,
});

Coming soon!

Using getManagementAgentGetAutoUpgradableConfig

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 getManagementAgentGetAutoUpgradableConfig(args: GetManagementAgentGetAutoUpgradableConfigArgs, opts?: InvokeOptions): Promise<GetManagementAgentGetAutoUpgradableConfigResult>
function getManagementAgentGetAutoUpgradableConfigOutput(args: GetManagementAgentGetAutoUpgradableConfigOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentGetAutoUpgradableConfigResult>
def get_management_agent_get_auto_upgradable_config(compartment_id: Optional[str] = None,
                                                    opts: Optional[InvokeOptions] = None) -> GetManagementAgentGetAutoUpgradableConfigResult
def get_management_agent_get_auto_upgradable_config_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                    opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentGetAutoUpgradableConfigResult]
func GetManagementAgentGetAutoUpgradableConfig(ctx *Context, args *GetManagementAgentGetAutoUpgradableConfigArgs, opts ...InvokeOption) (*GetManagementAgentGetAutoUpgradableConfigResult, error)
func GetManagementAgentGetAutoUpgradableConfigOutput(ctx *Context, args *GetManagementAgentGetAutoUpgradableConfigOutputArgs, opts ...InvokeOption) GetManagementAgentGetAutoUpgradableConfigResultOutput

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

public static class GetManagementAgentGetAutoUpgradableConfig 
{
    public static Task<GetManagementAgentGetAutoUpgradableConfigResult> InvokeAsync(GetManagementAgentGetAutoUpgradableConfigArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementAgentGetAutoUpgradableConfigResult> Invoke(GetManagementAgentGetAutoUpgradableConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagementAgentGetAutoUpgradableConfigResult> getManagementAgentGetAutoUpgradableConfig(GetManagementAgentGetAutoUpgradableConfigArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:ManagementAgent/getManagementAgentGetAutoUpgradableConfig:getManagementAgentGetAutoUpgradableConfig
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment to which a request will be scoped.

CompartmentId string

The OCID of the compartment to which a request will be scoped.

compartmentId String

The OCID of the compartment to which a request will be scoped.

compartmentId string

The OCID of the compartment to which a request will be scoped.

compartment_id str

The OCID of the compartment to which a request will be scoped.

compartmentId String

The OCID of the compartment to which a request will be scoped.

getManagementAgentGetAutoUpgradableConfig Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

IsAgentAutoUpgradable bool

true if the agents can be upgraded automatically; false if they must be upgraded manually.

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

IsAgentAutoUpgradable bool

true if the agents can be upgraded automatically; false if they must be upgraded manually.

compartmentId String
id String

The provider-assigned unique ID for this managed resource.

isAgentAutoUpgradable Boolean

true if the agents can be upgraded automatically; false if they must be upgraded manually.

compartmentId string
id string

The provider-assigned unique ID for this managed resource.

isAgentAutoUpgradable boolean

true if the agents can be upgraded automatically; false if they must be upgraded manually.

compartment_id str
id str

The provider-assigned unique ID for this managed resource.

is_agent_auto_upgradable bool

true if the agents can be upgraded automatically; false if they must be upgraded manually.

compartmentId String
id String

The provider-assigned unique ID for this managed resource.

isAgentAutoUpgradable Boolean

true if the agents can be upgraded automatically; false if they must be upgraded manually.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.