1. Packages
  2. Dynatrace
  3. API Docs
  4. OneagentUpdates
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.OneagentUpdates

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    Create OneagentUpdates Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OneagentUpdates(name: string, args: OneagentUpdatesArgs, opts?: CustomResourceOptions);
    @overload
    def OneagentUpdates(resource_name: str,
                        args: OneagentUpdatesArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def OneagentUpdates(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        update_mode: Optional[str] = None,
                        maintenance_windows: Optional[OneagentUpdatesMaintenanceWindowsArgs] = None,
                        revision: Optional[str] = None,
                        scope: Optional[str] = None,
                        target_version: Optional[str] = None)
    func NewOneagentUpdates(ctx *Context, name string, args OneagentUpdatesArgs, opts ...ResourceOption) (*OneagentUpdates, error)
    public OneagentUpdates(string name, OneagentUpdatesArgs args, CustomResourceOptions? opts = null)
    public OneagentUpdates(String name, OneagentUpdatesArgs args)
    public OneagentUpdates(String name, OneagentUpdatesArgs args, CustomResourceOptions options)
    
    type: dynatrace:OneagentUpdates
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OneagentUpdatesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OneagentUpdatesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OneagentUpdatesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OneagentUpdatesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OneagentUpdatesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var oneagentUpdatesResource = new Dynatrace.OneagentUpdates("oneagentUpdatesResource", new()
    {
        UpdateMode = "string",
        MaintenanceWindows = new Dynatrace.Inputs.OneagentUpdatesMaintenanceWindowsArgs
        {
            MaintenanceWindows = new[]
            {
                new Dynatrace.Inputs.OneagentUpdatesMaintenanceWindowsMaintenanceWindowArgs
                {
                    MaintenanceWindow = "string",
                },
            },
        },
        Revision = "string",
        Scope = "string",
        TargetVersion = "string",
    });
    
    example, err := dynatrace.NewOneagentUpdates(ctx, "oneagentUpdatesResource", &dynatrace.OneagentUpdatesArgs{
    	UpdateMode: pulumi.String("string"),
    	MaintenanceWindows: &dynatrace.OneagentUpdatesMaintenanceWindowsArgs{
    		MaintenanceWindows: dynatrace.OneagentUpdatesMaintenanceWindowsMaintenanceWindowArray{
    			&dynatrace.OneagentUpdatesMaintenanceWindowsMaintenanceWindowArgs{
    				MaintenanceWindow: pulumi.String("string"),
    			},
    		},
    	},
    	Revision:      pulumi.String("string"),
    	Scope:         pulumi.String("string"),
    	TargetVersion: pulumi.String("string"),
    })
    
    var oneagentUpdatesResource = new OneagentUpdates("oneagentUpdatesResource", OneagentUpdatesArgs.builder()
        .updateMode("string")
        .maintenanceWindows(OneagentUpdatesMaintenanceWindowsArgs.builder()
            .maintenanceWindows(OneagentUpdatesMaintenanceWindowsMaintenanceWindowArgs.builder()
                .maintenanceWindow("string")
                .build())
            .build())
        .revision("string")
        .scope("string")
        .targetVersion("string")
        .build());
    
    oneagent_updates_resource = dynatrace.OneagentUpdates("oneagentUpdatesResource",
        update_mode="string",
        maintenance_windows={
            "maintenance_windows": [{
                "maintenance_window": "string",
            }],
        },
        revision="string",
        scope="string",
        target_version="string")
    
    const oneagentUpdatesResource = new dynatrace.OneagentUpdates("oneagentUpdatesResource", {
        updateMode: "string",
        maintenanceWindows: {
            maintenanceWindows: [{
                maintenanceWindow: "string",
            }],
        },
        revision: "string",
        scope: "string",
        targetVersion: "string",
    });
    
    type: dynatrace:OneagentUpdates
    properties:
        maintenanceWindows:
            maintenanceWindows:
                - maintenanceWindow: string
        revision: string
        scope: string
        targetVersion: string
        updateMode: string
    

    OneagentUpdates Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The OneagentUpdates resource accepts the following input properties:

    UpdateMode string
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    MaintenanceWindows Pulumiverse.Dynatrace.Inputs.OneagentUpdatesMaintenanceWindows
    Maintenance windows
    Revision string
    Revision
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    TargetVersion string
    Target version
    UpdateMode string
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    MaintenanceWindows OneagentUpdatesMaintenanceWindowsArgs
    Maintenance windows
    Revision string
    Revision
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    TargetVersion string
    Target version
    updateMode String
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    maintenanceWindows OneagentUpdatesMaintenanceWindows
    Maintenance windows
    revision String
    Revision
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    targetVersion String
    Target version
    updateMode string
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    maintenanceWindows OneagentUpdatesMaintenanceWindows
    Maintenance windows
    revision string
    Revision
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    targetVersion string
    Target version
    update_mode str
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    maintenance_windows OneagentUpdatesMaintenanceWindowsArgs
    Maintenance windows
    revision str
    Revision
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    target_version str
    Target version
    updateMode String
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    maintenanceWindows Property Map
    Maintenance windows
    revision String
    Revision
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    targetVersion String
    Target version

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OneagentUpdates resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing OneagentUpdates Resource

    Get an existing OneagentUpdates resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OneagentUpdatesState, opts?: CustomResourceOptions): OneagentUpdates
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            maintenance_windows: Optional[OneagentUpdatesMaintenanceWindowsArgs] = None,
            revision: Optional[str] = None,
            scope: Optional[str] = None,
            target_version: Optional[str] = None,
            update_mode: Optional[str] = None) -> OneagentUpdates
    func GetOneagentUpdates(ctx *Context, name string, id IDInput, state *OneagentUpdatesState, opts ...ResourceOption) (*OneagentUpdates, error)
    public static OneagentUpdates Get(string name, Input<string> id, OneagentUpdatesState? state, CustomResourceOptions? opts = null)
    public static OneagentUpdates get(String name, Output<String> id, OneagentUpdatesState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    MaintenanceWindows Pulumiverse.Dynatrace.Inputs.OneagentUpdatesMaintenanceWindows
    Maintenance windows
    Revision string
    Revision
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    TargetVersion string
    Target version
    UpdateMode string
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    MaintenanceWindows OneagentUpdatesMaintenanceWindowsArgs
    Maintenance windows
    Revision string
    Revision
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    TargetVersion string
    Target version
    UpdateMode string
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    maintenanceWindows OneagentUpdatesMaintenanceWindows
    Maintenance windows
    revision String
    Revision
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    targetVersion String
    Target version
    updateMode String
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    maintenanceWindows OneagentUpdatesMaintenanceWindows
    Maintenance windows
    revision string
    Revision
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    targetVersion string
    Target version
    updateMode string
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    maintenance_windows OneagentUpdatesMaintenanceWindowsArgs
    Maintenance windows
    revision str
    Revision
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    target_version str
    Target version
    update_mode str
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL
    maintenanceWindows Property Map
    Maintenance windows
    revision String
    Revision
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    targetVersion String
    Target version
    updateMode String
    Possible Values: AUTOMATIC, AUTOMATIC_DURING_MW, MANUAL

    Supporting Types

    OneagentUpdatesMaintenanceWindows, OneagentUpdatesMaintenanceWindowsArgs

    OneagentUpdatesMaintenanceWindowsMaintenanceWindow, OneagentUpdatesMaintenanceWindowsMaintenanceWindowArgs

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse