1. Packages
  2. OVH
  3. API Docs
  4. Domain
  5. ZoneDNSSec
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

ovh.Domain.ZoneDNSSec

Explore with Pulumi AI

ovh logo
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

    Enable / disable DNSSEC on a domain zone.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const dnssec = new ovh.domain.ZoneDNSSec("dnssec", {zoneName: "mysite.ovh"});
    
    import pulumi
    import pulumi_ovh as ovh
    
    dnssec = ovh.domain.ZoneDNSSec("dnssec", zone_name="mysite.ovh")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Domain"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Domain.NewZoneDNSSec(ctx, "dnssec", &Domain.ZoneDNSSecArgs{
    			ZoneName: pulumi.String("mysite.ovh"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var dnssec = new Ovh.Domain.ZoneDNSSec("dnssec", new()
        {
            ZoneName = "mysite.ovh",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Domain.ZoneDNSSec;
    import com.pulumi.ovh.Domain.ZoneDNSSecArgs;
    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) {
            var dnssec = new ZoneDNSSec("dnssec", ZoneDNSSecArgs.builder()
                .zoneName("mysite.ovh")
                .build());
    
        }
    }
    
    resources:
      dnssec:
        type: ovh:Domain:ZoneDNSSec
        properties:
          zoneName: mysite.ovh
    

    Create ZoneDNSSec Resource

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

    Constructor syntax

    new ZoneDNSSec(name: string, args: ZoneDNSSecArgs, opts?: CustomResourceOptions);
    @overload
    def ZoneDNSSec(resource_name: str,
                   args: ZoneDNSSecArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZoneDNSSec(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   zone_name: Optional[str] = None)
    func NewZoneDNSSec(ctx *Context, name string, args ZoneDNSSecArgs, opts ...ResourceOption) (*ZoneDNSSec, error)
    public ZoneDNSSec(string name, ZoneDNSSecArgs args, CustomResourceOptions? opts = null)
    public ZoneDNSSec(String name, ZoneDNSSecArgs args)
    public ZoneDNSSec(String name, ZoneDNSSecArgs args, CustomResourceOptions options)
    
    type: ovh:Domain:ZoneDNSSec
    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 ZoneDNSSecArgs
    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 ZoneDNSSecArgs
    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 ZoneDNSSecArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZoneDNSSecArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZoneDNSSecArgs
    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 zoneDNSSecResource = new Ovh.Domain.ZoneDNSSec("zoneDNSSecResource", new()
    {
        ZoneName = "string",
    });
    
    example, err := Domain.NewZoneDNSSec(ctx, "zoneDNSSecResource", &Domain.ZoneDNSSecArgs{
    	ZoneName: pulumi.String("string"),
    })
    
    var zoneDNSSecResource = new ZoneDNSSec("zoneDNSSecResource", ZoneDNSSecArgs.builder()
        .zoneName("string")
        .build());
    
    zone_dns_sec_resource = ovh.domain.ZoneDNSSec("zoneDNSSecResource", zone_name="string")
    
    const zoneDNSSecResource = new ovh.domain.ZoneDNSSec("zoneDNSSecResource", {zoneName: "string"});
    
    type: ovh:Domain:ZoneDNSSec
    properties:
        zoneName: string
    

    ZoneDNSSec 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 ZoneDNSSec resource accepts the following input properties:

    ZoneName string
    The name of the domain zone
    ZoneName string
    The name of the domain zone
    zoneName String
    The name of the domain zone
    zoneName string
    The name of the domain zone
    zone_name str
    The name of the domain zone
    zoneName String
    The name of the domain zone

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)

    Look up Existing ZoneDNSSec Resource

    Get an existing ZoneDNSSec 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?: ZoneDNSSecState, opts?: CustomResourceOptions): ZoneDNSSec
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            status: Optional[str] = None,
            zone_name: Optional[str] = None) -> ZoneDNSSec
    func GetZoneDNSSec(ctx *Context, name string, id IDInput, state *ZoneDNSSecState, opts ...ResourceOption) (*ZoneDNSSec, error)
    public static ZoneDNSSec Get(string name, Input<string> id, ZoneDNSSecState? state, CustomResourceOptions? opts = null)
    public static ZoneDNSSec get(String name, Output<String> id, ZoneDNSSecState 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:
    Status string
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    ZoneName string
    The name of the domain zone
    Status string
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    ZoneName string
    The name of the domain zone
    status String
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    zoneName String
    The name of the domain zone
    status string
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    zoneName string
    The name of the domain zone
    status str
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    zone_name str
    The name of the domain zone
    status String
    DNSSEC status (disableInProgress, disabled, enableInProgress or enabled)
    zoneName String
    The name of the domain zone

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud