OpenStack

v3.9.0 published on Thursday, Aug 4, 2022 by Pulumi

TransferAccept

Manages a DNS zone transfer accept in the OpenStack DNS Service.

Example Usage

Automatically detect the correct network

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleZone = new OpenStack.Dns.Zone("exampleZone", new OpenStack.Dns.ZoneArgs
        {
            Description = "An example zone",
            Email = "jdoe@example.com",
            Ttl = 3000,
            Type = "PRIMARY",
        });
        var request1 = new OpenStack.Dns.TransferRequest("request1", new OpenStack.Dns.TransferRequestArgs
        {
            Description = "a transfer accept",
            ZoneId = exampleZone.Id,
        });
        var accept1 = new OpenStack.Dns.TransferAccept("accept1", new OpenStack.Dns.TransferAcceptArgs
        {
            Key = request1.Key,
            ZoneTransferRequestId = request1.Id,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleZone, err := dns.NewZone(ctx, "exampleZone", &dns.ZoneArgs{
			Description: pulumi.String("An example zone"),
			Email:       pulumi.String("jdoe@example.com"),
			Ttl:         pulumi.Int(3000),
			Type:        pulumi.String("PRIMARY"),
		})
		if err != nil {
			return err
		}
		request1, err := dns.NewTransferRequest(ctx, "request1", &dns.TransferRequestArgs{
			Description: pulumi.String("a transfer accept"),
			ZoneId:      exampleZone.ID(),
		})
		if err != nil {
			return err
		}
		_, err = dns.NewTransferAccept(ctx, "accept1", &dns.TransferAcceptArgs{
			Key:                   request1.Key,
			ZoneTransferRequestId: request1.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.dns.Zone;
import com.pulumi.openstack.dns.ZoneArgs;
import com.pulumi.openstack.dns.TransferRequest;
import com.pulumi.openstack.dns.TransferRequestArgs;
import com.pulumi.openstack.dns.TransferAccept;
import com.pulumi.openstack.dns.TransferAcceptArgs;
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 exampleZone = new Zone("exampleZone", ZoneArgs.builder()        
            .description("An example zone")
            .email("jdoe@example.com")
            .ttl(3000)
            .type("PRIMARY")
            .build());

        var request1 = new TransferRequest("request1", TransferRequestArgs.builder()        
            .description("a transfer accept")
            .zoneId(exampleZone.id())
            .build());

        var accept1 = new TransferAccept("accept1", TransferAcceptArgs.builder()        
            .key(request1.key())
            .zoneTransferRequestId(request1.id())
            .build());

    }
}
import pulumi
import pulumi_openstack as openstack

example_zone = openstack.dns.Zone("exampleZone",
    description="An example zone",
    email="jdoe@example.com",
    ttl=3000,
    type="PRIMARY")
request1 = openstack.dns.TransferRequest("request1",
    description="a transfer accept",
    zone_id=example_zone.id)
accept1 = openstack.dns.TransferAccept("accept1",
    key=request1.key,
    zone_transfer_request_id=request1.id)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const exampleZone = new openstack.dns.Zone("example_zone", {
    description: "An example zone",
    email: "jdoe@example.com",
    ttl: 3000,
    type: "PRIMARY",
});
const request1 = new openstack.dns.TransferRequest("request_1", {
    description: "a transfer accept",
    zoneId: exampleZone.id,
});
const accept1 = new openstack.dns.TransferAccept("accept_1", {
    key: request1.key,
    zoneTransferRequestId: request1.id,
});
resources:
  exampleZone:
    type: openstack:dns:Zone
    properties:
      description: An example zone
      email: jdoe@example.com
      ttl: 3000
      type: PRIMARY
  request1:
    type: openstack:dns:TransferRequest
    properties:
      description: a transfer accept
      zoneId: ${exampleZone.id}
  accept1:
    type: openstack:dns:TransferAccept
    properties:
      key: ${request1.key}
      zoneTransferRequestId: ${request1.id}

Create TransferAccept Resource

new TransferAccept(name: string, args: TransferAcceptArgs, opts?: CustomResourceOptions);
@overload
def TransferAccept(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   disable_status_check: Optional[bool] = None,
                   key: Optional[str] = None,
                   region: Optional[str] = None,
                   value_specs: Optional[Mapping[str, Any]] = None,
                   zone_transfer_request_id: Optional[str] = None)
@overload
def TransferAccept(resource_name: str,
                   args: TransferAcceptArgs,
                   opts: Optional[ResourceOptions] = None)
func NewTransferAccept(ctx *Context, name string, args TransferAcceptArgs, opts ...ResourceOption) (*TransferAccept, error)
public TransferAccept(string name, TransferAcceptArgs args, CustomResourceOptions? opts = null)
public TransferAccept(String name, TransferAcceptArgs args)
public TransferAccept(String name, TransferAcceptArgs args, CustomResourceOptions options)
type: openstack:dns:TransferAccept
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TransferAcceptArgs
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 TransferAcceptArgs
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 TransferAcceptArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TransferAcceptArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TransferAcceptArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TransferAccept Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The TransferAccept resource accepts the following input properties:

Key string

The transfer key.

ZoneTransferRequestId string

The ID of the zone transfer request.

DisableStatusCheck bool

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

Region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

ValueSpecs Dictionary<string, object>

Map of additional options. Changing this creates a new transfer accept.

Key string

The transfer key.

ZoneTransferRequestId string

The ID of the zone transfer request.

DisableStatusCheck bool

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

Region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

ValueSpecs map[string]interface{}

Map of additional options. Changing this creates a new transfer accept.

key String

The transfer key.

zoneTransferRequestId String

The ID of the zone transfer request.

disableStatusCheck Boolean

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

region String

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

valueSpecs Map<String,Object>

Map of additional options. Changing this creates a new transfer accept.

key string

The transfer key.

zoneTransferRequestId string

The ID of the zone transfer request.

disableStatusCheck boolean

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

valueSpecs {[key: string]: any}

Map of additional options. Changing this creates a new transfer accept.

key str

The transfer key.

zone_transfer_request_id str

The ID of the zone transfer request.

disable_status_check bool

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

region str

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

value_specs Mapping[str, Any]

Map of additional options. Changing this creates a new transfer accept.

key String

The transfer key.

zoneTransferRequestId String

The ID of the zone transfer request.

disableStatusCheck Boolean

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

region String

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

valueSpecs Map<Any>

Map of additional options. Changing this creates a new transfer accept.

Outputs

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

Get an existing TransferAccept 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?: TransferAcceptState, opts?: CustomResourceOptions): TransferAccept
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        disable_status_check: Optional[bool] = None,
        key: Optional[str] = None,
        region: Optional[str] = None,
        value_specs: Optional[Mapping[str, Any]] = None,
        zone_transfer_request_id: Optional[str] = None) -> TransferAccept
func GetTransferAccept(ctx *Context, name string, id IDInput, state *TransferAcceptState, opts ...ResourceOption) (*TransferAccept, error)
public static TransferAccept Get(string name, Input<string> id, TransferAcceptState? state, CustomResourceOptions? opts = null)
public static TransferAccept get(String name, Output<String> id, TransferAcceptState 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:
DisableStatusCheck bool

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

Key string

The transfer key.

Region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

ValueSpecs Dictionary<string, object>

Map of additional options. Changing this creates a new transfer accept.

ZoneTransferRequestId string

The ID of the zone transfer request.

DisableStatusCheck bool

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

Key string

The transfer key.

Region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

ValueSpecs map[string]interface{}

Map of additional options. Changing this creates a new transfer accept.

ZoneTransferRequestId string

The ID of the zone transfer request.

disableStatusCheck Boolean

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

key String

The transfer key.

region String

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

valueSpecs Map<String,Object>

Map of additional options. Changing this creates a new transfer accept.

zoneTransferRequestId String

The ID of the zone transfer request.

disableStatusCheck boolean

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

key string

The transfer key.

region string

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

valueSpecs {[key: string]: any}

Map of additional options. Changing this creates a new transfer accept.

zoneTransferRequestId string

The ID of the zone transfer request.

disable_status_check bool

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

key str

The transfer key.

region str

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

value_specs Mapping[str, Any]

Map of additional options. Changing this creates a new transfer accept.

zone_transfer_request_id str

The ID of the zone transfer request.

disableStatusCheck Boolean

Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack accept returned success.

key String

The transfer key.

region String

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new DNS zone.

valueSpecs Map<Any>

Map of additional options. Changing this creates a new transfer accept.

zoneTransferRequestId String

The ID of the zone transfer request.

Import

This resource can be imported by specifying the transferAccept ID

 $ pulumi import openstack:dns/transferAccept:TransferAccept accept_1 <accept_id>

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes

This Pulumi package is based on the openstack Terraform Provider.