1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getDcsMaintainwindowV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getDcsMaintainwindowV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for DCS certificate you can get at documentation portal

    Use this data source to get the ID of an available OpenTelekomCloud DCS maintain window.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const maintainwindow1 = opentelekomcloud.getDcsMaintainwindowV1({
        seq: 1,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    maintainwindow1 = opentelekomcloud.get_dcs_maintainwindow_v1(seq=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetDcsMaintainwindowV1(ctx, &opentelekomcloud.GetDcsMaintainwindowV1Args{
    			Seq: pulumi.Float64Ref(1),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var maintainwindow1 = Opentelekomcloud.GetDcsMaintainwindowV1.Invoke(new()
        {
            Seq = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetDcsMaintainwindowV1Args;
    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 maintainwindow1 = OpentelekomcloudFunctions.getDcsMaintainwindowV1(GetDcsMaintainwindowV1Args.builder()
                .seq(1)
                .build());
    
        }
    }
    
    variables:
      maintainwindow1:
        fn::invoke:
          function: opentelekomcloud:getDcsMaintainwindowV1
          arguments:
            seq: 1
    

    Using getDcsMaintainwindowV1

    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 getDcsMaintainwindowV1(args: GetDcsMaintainwindowV1Args, opts?: InvokeOptions): Promise<GetDcsMaintainwindowV1Result>
    function getDcsMaintainwindowV1Output(args: GetDcsMaintainwindowV1OutputArgs, opts?: InvokeOptions): Output<GetDcsMaintainwindowV1Result>
    def get_dcs_maintainwindow_v1(begin: Optional[str] = None,
                                  default: Optional[bool] = None,
                                  end: Optional[str] = None,
                                  id: Optional[str] = None,
                                  seq: Optional[float] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDcsMaintainwindowV1Result
    def get_dcs_maintainwindow_v1_output(begin: Optional[pulumi.Input[str]] = None,
                                  default: Optional[pulumi.Input[bool]] = None,
                                  end: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  seq: Optional[pulumi.Input[float]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDcsMaintainwindowV1Result]
    func GetDcsMaintainwindowV1(ctx *Context, args *GetDcsMaintainwindowV1Args, opts ...InvokeOption) (*GetDcsMaintainwindowV1Result, error)
    func GetDcsMaintainwindowV1Output(ctx *Context, args *GetDcsMaintainwindowV1OutputArgs, opts ...InvokeOption) GetDcsMaintainwindowV1ResultOutput

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

    public static class GetDcsMaintainwindowV1 
    {
        public static Task<GetDcsMaintainwindowV1Result> InvokeAsync(GetDcsMaintainwindowV1Args args, InvokeOptions? opts = null)
        public static Output<GetDcsMaintainwindowV1Result> Invoke(GetDcsMaintainwindowV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcsMaintainwindowV1Result> getDcsMaintainwindowV1(GetDcsMaintainwindowV1Args args, InvokeOptions options)
    public static Output<GetDcsMaintainwindowV1Result> getDcsMaintainwindowV1(GetDcsMaintainwindowV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getDcsMaintainwindowV1:getDcsMaintainwindowV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Begin string
    Indicates the time at which a maintenance time window starts.
    Default bool
    Indicates whether a maintenance time window is set to the default time segment.
    End string
    Indicates the time at which a maintenance time window ends.
    Id string
    Seq double
    Indicates the sequential number of a maintenance time window.
    Begin string
    Indicates the time at which a maintenance time window starts.
    Default bool
    Indicates whether a maintenance time window is set to the default time segment.
    End string
    Indicates the time at which a maintenance time window ends.
    Id string
    Seq float64
    Indicates the sequential number of a maintenance time window.
    begin String
    Indicates the time at which a maintenance time window starts.
    default_ Boolean
    Indicates whether a maintenance time window is set to the default time segment.
    end String
    Indicates the time at which a maintenance time window ends.
    id String
    seq Double
    Indicates the sequential number of a maintenance time window.
    begin string
    Indicates the time at which a maintenance time window starts.
    default boolean
    Indicates whether a maintenance time window is set to the default time segment.
    end string
    Indicates the time at which a maintenance time window ends.
    id string
    seq number
    Indicates the sequential number of a maintenance time window.
    begin str
    Indicates the time at which a maintenance time window starts.
    default bool
    Indicates whether a maintenance time window is set to the default time segment.
    end str
    Indicates the time at which a maintenance time window ends.
    id str
    seq float
    Indicates the sequential number of a maintenance time window.
    begin String
    Indicates the time at which a maintenance time window starts.
    default Boolean
    Indicates whether a maintenance time window is set to the default time segment.
    end String
    Indicates the time at which a maintenance time window ends.
    id String
    seq Number
    Indicates the sequential number of a maintenance time window.

    getDcsMaintainwindowV1 Result

    The following output properties are available:

    Begin string
    See Argument Reference above.
    Default bool
    See Argument Reference above.
    End string
    See Argument Reference above.
    Id string
    Seq double
    Begin string
    See Argument Reference above.
    Default bool
    See Argument Reference above.
    End string
    See Argument Reference above.
    Id string
    Seq float64
    begin String
    See Argument Reference above.
    default_ Boolean
    See Argument Reference above.
    end String
    See Argument Reference above.
    id String
    seq Double
    begin string
    See Argument Reference above.
    default boolean
    See Argument Reference above.
    end string
    See Argument Reference above.
    id string
    seq number
    begin str
    See Argument Reference above.
    default bool
    See Argument Reference above.
    end str
    See Argument Reference above.
    id str
    seq float
    begin String
    See Argument Reference above.
    default Boolean
    See Argument Reference above.
    end String
    See Argument Reference above.
    id String
    seq Number

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud