Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.ManagementAgent.getManagementAgentGetAutoUpgradableConfig
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagementAgentGetAutoUpgradableConfig = oci.ManagementAgent.getManagementAgentGetAutoUpgradableConfig({
compartmentId: compartmentId,
});
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=compartment_id)
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.GetManagementAgentGetAutoUpgradableConfig(ctx, &managementagent.GetManagementAgentGetAutoUpgradableConfigArgs{
CompartmentId: compartmentId,
}, 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 testManagementAgentGetAutoUpgradableConfig = Oci.ManagementAgent.GetManagementAgentGetAutoUpgradableConfig.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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.GetManagementAgentGetAutoUpgradableConfigArgs;
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 testManagementAgentGetAutoUpgradableConfig = ManagementAgentFunctions.getManagementAgentGetAutoUpgradableConfig(GetManagementAgentGetAutoUpgradableConfigArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testManagementAgentGetAutoUpgradableConfig:
fn::invoke:
Function: oci:ManagementAgent:getManagementAgentGetAutoUpgradableConfig
Arguments:
compartmentId: ${compartmentId}
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:
- Compartment
Id string - The OCID of the compartment to which a request will be scoped.
- Compartment
Id string - The OCID of the compartment to which a request will be scoped.
- compartment
Id String - The OCID of the compartment to which a request will be scoped.
- compartment
Id 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.
- compartment
Id String - The OCID of the compartment to which a request will be scoped.
getManagementAgentGetAutoUpgradableConfig Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Agent boolAuto Upgradable - true if the agents can be upgraded automatically; false if they must be upgraded manually.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Agent boolAuto Upgradable - true if the agents can be upgraded automatically; false if they must be upgraded manually.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- is
Agent BooleanAuto Upgradable - true if the agents can be upgraded automatically; false if they must be upgraded manually.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- is
Agent booleanAuto Upgradable - 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_ boolauto_ upgradable - true if the agents can be upgraded automatically; false if they must be upgraded manually.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- is
Agent BooleanAuto Upgradable - true if the agents can be upgraded automatically; false if they must be upgraded manually.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.