1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dns
  5. ZonePromoteDnssecKeyVersion
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Dns.ZonePromoteDnssecKeyVersion

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Zone Promote Dnssec Key Version resource in Oracle Cloud Infrastructure DNS service.

    Promotes a specified DnssecKeyVersion on the zone.

    If the DnssecKeyVersion identified in the request body is a key signing key (KSK) that is replacing another DnssecKeyVersion, then the old DnssecKeyVersion is scheduled for removal from the zone.

    For key signing keys (KSKs), you must create the DS record with the new key information before promoting the new key to establish a chain of trust. To avoid a service disruption, remove the old DS record as soon as its TTL (time to live) expires.

    For more information, see DNSSEC.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testZonePromoteDnssecKeyVersion = new oci.dns.ZonePromoteDnssecKeyVersion("test_zone_promote_dnssec_key_version", {
        dnssecKeyVersionUuid: zonePromoteDnssecKeyVersionDnssecKeyVersionUuid,
        zoneId: testZone.id,
        scope: zonePromoteDnssecKeyVersionScope,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_zone_promote_dnssec_key_version = oci.dns.ZonePromoteDnssecKeyVersion("test_zone_promote_dnssec_key_version",
        dnssec_key_version_uuid=zone_promote_dnssec_key_version_dnssec_key_version_uuid,
        zone_id=test_zone["id"],
        scope=zone_promote_dnssec_key_version_scope)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Dns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Dns.NewZonePromoteDnssecKeyVersion(ctx, "test_zone_promote_dnssec_key_version", &Dns.ZonePromoteDnssecKeyVersionArgs{
    			DnssecKeyVersionUuid: pulumi.Any(zonePromoteDnssecKeyVersionDnssecKeyVersionUuid),
    			ZoneId:               pulumi.Any(testZone.Id),
    			Scope:                pulumi.Any(zonePromoteDnssecKeyVersionScope),
    		})
    		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 testZonePromoteDnssecKeyVersion = new Oci.Dns.ZonePromoteDnssecKeyVersion("test_zone_promote_dnssec_key_version", new()
        {
            DnssecKeyVersionUuid = zonePromoteDnssecKeyVersionDnssecKeyVersionUuid,
            ZoneId = testZone.Id,
            Scope = zonePromoteDnssecKeyVersionScope,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Dns.ZonePromoteDnssecKeyVersion;
    import com.pulumi.oci.Dns.ZonePromoteDnssecKeyVersionArgs;
    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 testZonePromoteDnssecKeyVersion = new ZonePromoteDnssecKeyVersion("testZonePromoteDnssecKeyVersion", ZonePromoteDnssecKeyVersionArgs.builder()
                .dnssecKeyVersionUuid(zonePromoteDnssecKeyVersionDnssecKeyVersionUuid)
                .zoneId(testZone.id())
                .scope(zonePromoteDnssecKeyVersionScope)
                .build());
    
        }
    }
    
    resources:
      testZonePromoteDnssecKeyVersion:
        type: oci:Dns:ZonePromoteDnssecKeyVersion
        name: test_zone_promote_dnssec_key_version
        properties:
          dnssecKeyVersionUuid: ${zonePromoteDnssecKeyVersionDnssecKeyVersionUuid}
          zoneId: ${testZone.id}
          scope: ${zonePromoteDnssecKeyVersionScope}
    

    Create ZonePromoteDnssecKeyVersion Resource

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

    Constructor syntax

    new ZonePromoteDnssecKeyVersion(name: string, args: ZonePromoteDnssecKeyVersionArgs, opts?: CustomResourceOptions);
    @overload
    def ZonePromoteDnssecKeyVersion(resource_name: str,
                                    args: ZonePromoteDnssecKeyVersionArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZonePromoteDnssecKeyVersion(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    dnssec_key_version_uuid: Optional[str] = None,
                                    zone_id: Optional[str] = None,
                                    scope: Optional[str] = None)
    func NewZonePromoteDnssecKeyVersion(ctx *Context, name string, args ZonePromoteDnssecKeyVersionArgs, opts ...ResourceOption) (*ZonePromoteDnssecKeyVersion, error)
    public ZonePromoteDnssecKeyVersion(string name, ZonePromoteDnssecKeyVersionArgs args, CustomResourceOptions? opts = null)
    public ZonePromoteDnssecKeyVersion(String name, ZonePromoteDnssecKeyVersionArgs args)
    public ZonePromoteDnssecKeyVersion(String name, ZonePromoteDnssecKeyVersionArgs args, CustomResourceOptions options)
    
    type: oci:Dns:ZonePromoteDnssecKeyVersion
    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 ZonePromoteDnssecKeyVersionArgs
    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 ZonePromoteDnssecKeyVersionArgs
    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 ZonePromoteDnssecKeyVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZonePromoteDnssecKeyVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZonePromoteDnssecKeyVersionArgs
    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 zonePromoteDnssecKeyVersionResource = new Oci.Dns.ZonePromoteDnssecKeyVersion("zonePromoteDnssecKeyVersionResource", new()
    {
        DnssecKeyVersionUuid = "string",
        ZoneId = "string",
        Scope = "string",
    });
    
    example, err := Dns.NewZonePromoteDnssecKeyVersion(ctx, "zonePromoteDnssecKeyVersionResource", &Dns.ZonePromoteDnssecKeyVersionArgs{
    	DnssecKeyVersionUuid: pulumi.String("string"),
    	ZoneId:               pulumi.String("string"),
    	Scope:                pulumi.String("string"),
    })
    
    var zonePromoteDnssecKeyVersionResource = new ZonePromoteDnssecKeyVersion("zonePromoteDnssecKeyVersionResource", ZonePromoteDnssecKeyVersionArgs.builder()
        .dnssecKeyVersionUuid("string")
        .zoneId("string")
        .scope("string")
        .build());
    
    zone_promote_dnssec_key_version_resource = oci.dns.ZonePromoteDnssecKeyVersion("zonePromoteDnssecKeyVersionResource",
        dnssec_key_version_uuid="string",
        zone_id="string",
        scope="string")
    
    const zonePromoteDnssecKeyVersionResource = new oci.dns.ZonePromoteDnssecKeyVersion("zonePromoteDnssecKeyVersionResource", {
        dnssecKeyVersionUuid: "string",
        zoneId: "string",
        scope: "string",
    });
    
    type: oci:Dns:ZonePromoteDnssecKeyVersion
    properties:
        dnssecKeyVersionUuid: string
        scope: string
        zoneId: string
    

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

    DnssecKeyVersionUuid string
    The UUID of the DnssecKeyVersion that is being promoted.
    ZoneId string

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    DnssecKeyVersionUuid string
    The UUID of the DnssecKeyVersion that is being promoted.
    ZoneId string

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    dnssecKeyVersionUuid String
    The UUID of the DnssecKeyVersion that is being promoted.
    zoneId String

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    dnssecKeyVersionUuid string
    The UUID of the DnssecKeyVersion that is being promoted.
    zoneId string

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    scope string
    Specifies to operate only on resources that have a matching DNS scope.
    dnssec_key_version_uuid str
    The UUID of the DnssecKeyVersion that is being promoted.
    zone_id str

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    scope str
    Specifies to operate only on resources that have a matching DNS scope.
    dnssecKeyVersionUuid String
    The UUID of the DnssecKeyVersion that is being promoted.
    zoneId String

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    scope String
    Specifies to operate only on resources that have a matching DNS scope.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ZonePromoteDnssecKeyVersion 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 ZonePromoteDnssecKeyVersion Resource

    Get an existing ZonePromoteDnssecKeyVersion 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?: ZonePromoteDnssecKeyVersionState, opts?: CustomResourceOptions): ZonePromoteDnssecKeyVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dnssec_key_version_uuid: Optional[str] = None,
            scope: Optional[str] = None,
            zone_id: Optional[str] = None) -> ZonePromoteDnssecKeyVersion
    func GetZonePromoteDnssecKeyVersion(ctx *Context, name string, id IDInput, state *ZonePromoteDnssecKeyVersionState, opts ...ResourceOption) (*ZonePromoteDnssecKeyVersion, error)
    public static ZonePromoteDnssecKeyVersion Get(string name, Input<string> id, ZonePromoteDnssecKeyVersionState? state, CustomResourceOptions? opts = null)
    public static ZonePromoteDnssecKeyVersion get(String name, Output<String> id, ZonePromoteDnssecKeyVersionState 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:
    DnssecKeyVersionUuid string
    The UUID of the DnssecKeyVersion that is being promoted.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    ZoneId string

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DnssecKeyVersionUuid string
    The UUID of the DnssecKeyVersion that is being promoted.
    Scope string
    Specifies to operate only on resources that have a matching DNS scope.
    ZoneId string

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    dnssecKeyVersionUuid String
    The UUID of the DnssecKeyVersion that is being promoted.
    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    zoneId String

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    dnssecKeyVersionUuid string
    The UUID of the DnssecKeyVersion that is being promoted.
    scope string
    Specifies to operate only on resources that have a matching DNS scope.
    zoneId string

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    dnssec_key_version_uuid str
    The UUID of the DnssecKeyVersion that is being promoted.
    scope str
    Specifies to operate only on resources that have a matching DNS scope.
    zone_id str

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    dnssecKeyVersionUuid String
    The UUID of the DnssecKeyVersion that is being promoted.
    scope String
    Specifies to operate only on resources that have a matching DNS scope.
    zoneId String

    The OCID of the target zone.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi