oci.Dns.ZoneStageDnssecKeyVersion
Explore with Pulumi AI
This resource provides the Zone Stage Dnssec Key Version resource in Oracle Cloud Infrastructure DNS service.
Stages a new DnssecKeyVersion
on the zone. Staging is a process that generates a new “successor” key version
that replaces an existing “predecessor” key version.
Note: A new key-signing key (KSK) version is inert until you update the parent zone DS records.
For more information, see the DNSSEC documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testZoneStageDnssecKeyVersion = new oci.dns.ZoneStageDnssecKeyVersion("test_zone_stage_dnssec_key_version", {
predecessorDnssecKeyVersionUuid: zoneStageDnssecKeyVersionPredecessorDnssecKeyVersionUuid,
zoneId: testZone.id,
scope: zoneStageDnssecKeyVersionScope,
});
import pulumi
import pulumi_oci as oci
test_zone_stage_dnssec_key_version = oci.dns.ZoneStageDnssecKeyVersion("test_zone_stage_dnssec_key_version",
predecessor_dnssec_key_version_uuid=zone_stage_dnssec_key_version_predecessor_dnssec_key_version_uuid,
zone_id=test_zone["id"],
scope=zone_stage_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.NewZoneStageDnssecKeyVersion(ctx, "test_zone_stage_dnssec_key_version", &Dns.ZoneStageDnssecKeyVersionArgs{
PredecessorDnssecKeyVersionUuid: pulumi.Any(zoneStageDnssecKeyVersionPredecessorDnssecKeyVersionUuid),
ZoneId: pulumi.Any(testZone.Id),
Scope: pulumi.Any(zoneStageDnssecKeyVersionScope),
})
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 testZoneStageDnssecKeyVersion = new Oci.Dns.ZoneStageDnssecKeyVersion("test_zone_stage_dnssec_key_version", new()
{
PredecessorDnssecKeyVersionUuid = zoneStageDnssecKeyVersionPredecessorDnssecKeyVersionUuid,
ZoneId = testZone.Id,
Scope = zoneStageDnssecKeyVersionScope,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Dns.ZoneStageDnssecKeyVersion;
import com.pulumi.oci.Dns.ZoneStageDnssecKeyVersionArgs;
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 testZoneStageDnssecKeyVersion = new ZoneStageDnssecKeyVersion("testZoneStageDnssecKeyVersion", ZoneStageDnssecKeyVersionArgs.builder()
.predecessorDnssecKeyVersionUuid(zoneStageDnssecKeyVersionPredecessorDnssecKeyVersionUuid)
.zoneId(testZone.id())
.scope(zoneStageDnssecKeyVersionScope)
.build());
}
}
resources:
testZoneStageDnssecKeyVersion:
type: oci:Dns:ZoneStageDnssecKeyVersion
name: test_zone_stage_dnssec_key_version
properties:
predecessorDnssecKeyVersionUuid: ${zoneStageDnssecKeyVersionPredecessorDnssecKeyVersionUuid}
zoneId: ${testZone.id}
scope: ${zoneStageDnssecKeyVersionScope}
Create ZoneStageDnssecKeyVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZoneStageDnssecKeyVersion(name: string, args: ZoneStageDnssecKeyVersionArgs, opts?: CustomResourceOptions);
@overload
def ZoneStageDnssecKeyVersion(resource_name: str,
args: ZoneStageDnssecKeyVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZoneStageDnssecKeyVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
predecessor_dnssec_key_version_uuid: Optional[str] = None,
zone_id: Optional[str] = None,
scope: Optional[str] = None)
func NewZoneStageDnssecKeyVersion(ctx *Context, name string, args ZoneStageDnssecKeyVersionArgs, opts ...ResourceOption) (*ZoneStageDnssecKeyVersion, error)
public ZoneStageDnssecKeyVersion(string name, ZoneStageDnssecKeyVersionArgs args, CustomResourceOptions? opts = null)
public ZoneStageDnssecKeyVersion(String name, ZoneStageDnssecKeyVersionArgs args)
public ZoneStageDnssecKeyVersion(String name, ZoneStageDnssecKeyVersionArgs args, CustomResourceOptions options)
type: oci:Dns:ZoneStageDnssecKeyVersion
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 ZoneStageDnssecKeyVersionArgs
- 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 ZoneStageDnssecKeyVersionArgs
- 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 ZoneStageDnssecKeyVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneStageDnssecKeyVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZoneStageDnssecKeyVersionArgs
- 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 zoneStageDnssecKeyVersionResource = new Oci.Dns.ZoneStageDnssecKeyVersion("zoneStageDnssecKeyVersionResource", new()
{
PredecessorDnssecKeyVersionUuid = "string",
ZoneId = "string",
Scope = "string",
});
example, err := Dns.NewZoneStageDnssecKeyVersion(ctx, "zoneStageDnssecKeyVersionResource", &Dns.ZoneStageDnssecKeyVersionArgs{
PredecessorDnssecKeyVersionUuid: pulumi.String("string"),
ZoneId: pulumi.String("string"),
Scope: pulumi.String("string"),
})
var zoneStageDnssecKeyVersionResource = new ZoneStageDnssecKeyVersion("zoneStageDnssecKeyVersionResource", ZoneStageDnssecKeyVersionArgs.builder()
.predecessorDnssecKeyVersionUuid("string")
.zoneId("string")
.scope("string")
.build());
zone_stage_dnssec_key_version_resource = oci.dns.ZoneStageDnssecKeyVersion("zoneStageDnssecKeyVersionResource",
predecessor_dnssec_key_version_uuid="string",
zone_id="string",
scope="string")
const zoneStageDnssecKeyVersionResource = new oci.dns.ZoneStageDnssecKeyVersion("zoneStageDnssecKeyVersionResource", {
predecessorDnssecKeyVersionUuid: "string",
zoneId: "string",
scope: "string",
});
type: oci:Dns:ZoneStageDnssecKeyVersion
properties:
predecessorDnssecKeyVersionUuid: string
scope: string
zoneId: string
ZoneStageDnssecKeyVersion 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 ZoneStageDnssecKeyVersion resource accepts the following input properties:
- Predecessor
Dnssec stringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - Zone
Id 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.
- Predecessor
Dnssec stringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - Zone
Id 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.
- predecessor
Dnssec StringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - zone
Id 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.
- predecessor
Dnssec stringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - zone
Id 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.
- predecessor_
dnssec_ strkey_ version_ uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - 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.
- predecessor
Dnssec StringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - zone
Id 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 ZoneStageDnssecKeyVersion 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 ZoneStageDnssecKeyVersion Resource
Get an existing ZoneStageDnssecKeyVersion 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?: ZoneStageDnssecKeyVersionState, opts?: CustomResourceOptions): ZoneStageDnssecKeyVersion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
predecessor_dnssec_key_version_uuid: Optional[str] = None,
scope: Optional[str] = None,
zone_id: Optional[str] = None) -> ZoneStageDnssecKeyVersion
func GetZoneStageDnssecKeyVersion(ctx *Context, name string, id IDInput, state *ZoneStageDnssecKeyVersionState, opts ...ResourceOption) (*ZoneStageDnssecKeyVersion, error)
public static ZoneStageDnssecKeyVersion Get(string name, Input<string> id, ZoneStageDnssecKeyVersionState? state, CustomResourceOptions? opts = null)
public static ZoneStageDnssecKeyVersion get(String name, Output<String> id, ZoneStageDnssecKeyVersionState 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.
- Predecessor
Dnssec stringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - Scope string
- Specifies to operate only on resources that have a matching DNS scope.
- Zone
Id 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
- Predecessor
Dnssec stringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - Scope string
- Specifies to operate only on resources that have a matching DNS scope.
- Zone
Id 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
- predecessor
Dnssec StringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - scope String
- Specifies to operate only on resources that have a matching DNS scope.
- zone
Id 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
- predecessor
Dnssec stringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - scope string
- Specifies to operate only on resources that have a matching DNS scope.
- zone
Id 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
- predecessor_
dnssec_ strkey_ version_ uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - 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
- predecessor
Dnssec StringKey Version Uuid - The UUID of the
DnssecKeyVersion
for which a new successor should be generated. - scope String
- Specifies to operate only on resources that have a matching DNS scope.
- zone
Id 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.