1. Packages
  2. OVH
  3. API Docs
  4. Domain
  5. ZoneDNSSec
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.Domain.ZoneDNSSec

Explore with Pulumi AI

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"});
Copy
import pulumi
import pulumi_ovh as ovh

dnssec = ovh.domain.ZoneDNSSec("dnssec", zone_name="mysite.ovh")
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/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
	})
}
Copy
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",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.Domain.ZoneDNSSec;
import com.ovhcloud.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());

    }
}
Copy
resources:
  dnssec:
    type: ovh:Domain:ZoneDNSSec
    properties:
      zoneName: mysite.ovh
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ZoneDNSSecArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ZoneDNSSecArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ZoneDNSSecArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := Domain.NewZoneDNSSec(ctx, "zoneDNSSecResource", &Domain.ZoneDNSSecArgs{
	ZoneName: pulumi.String("string"),
})
Copy
var zoneDNSSecResource = new ZoneDNSSec("zoneDNSSecResource", ZoneDNSSecArgs.builder()
    .zoneName("string")
    .build());
Copy
zone_dns_sec_resource = ovh.domain.ZoneDNSSec("zoneDNSSecResource", zone_name="string")
Copy
const zoneDNSSecResource = new ovh.domain.ZoneDNSSec("zoneDNSSecResource", {zoneName: "string"});
Copy
type: ovh:Domain:ZoneDNSSec
properties:
    zoneName: string
Copy

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 This property is required. string
The name of the domain zone
ZoneName This property is required. string
The name of the domain zone
zoneName This property is required. String
The name of the domain zone
zoneName This property is required. string
The name of the domain zone
zone_name This property is required. str
The name of the domain zone
zoneName This property is required. 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)
resources:  _:    type: ovh:Domain:ZoneDNSSec    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.