1. Packages
  2. OpenStack
  3. API Docs
  4. dns
  5. TransferAccept
OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi

openstack.dns.TransferAccept

Explore with Pulumi AI

openstack logo
OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi

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

    Example Usage

    Automatically detect the correct network

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZone = new OpenStack.Dns.Zone("exampleZone", new()
        {
            Email = "jdoe@example.com",
            Description = "An example zone",
            Ttl = 3000,
            Type = "PRIMARY",
        });
    
        var request1 = new OpenStack.Dns.TransferRequest("request1", new()
        {
            ZoneId = exampleZone.Id,
            Description = "a transfer accept",
        });
    
        var accept1 = new OpenStack.Dns.TransferAccept("accept1", new()
        {
            ZoneTransferRequestId = request1.Id,
            Key = request1.Key,
        });
    
    });
    
    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{
    			Email:       pulumi.String("jdoe@example.com"),
    			Description: pulumi.String("An example zone"),
    			Ttl:         pulumi.Int(3000),
    			Type:        pulumi.String("PRIMARY"),
    		})
    		if err != nil {
    			return err
    		}
    		request1, err := dns.NewTransferRequest(ctx, "request1", &dns.TransferRequestArgs{
    			ZoneId:      exampleZone.ID(),
    			Description: pulumi.String("a transfer accept"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dns.NewTransferAccept(ctx, "accept1", &dns.TransferAcceptArgs{
    			ZoneTransferRequestId: request1.ID(),
    			Key:                   request1.Key,
    		})
    		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()        
                .email("jdoe@example.com")
                .description("An example zone")
                .ttl(3000)
                .type("PRIMARY")
                .build());
    
            var request1 = new TransferRequest("request1", TransferRequestArgs.builder()        
                .zoneId(exampleZone.id())
                .description("a transfer accept")
                .build());
    
            var accept1 = new TransferAccept("accept1", TransferAcceptArgs.builder()        
                .zoneTransferRequestId(request1.id())
                .key(request1.key())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_openstack as openstack
    
    example_zone = openstack.dns.Zone("exampleZone",
        email="jdoe@example.com",
        description="An example zone",
        ttl=3000,
        type="PRIMARY")
    request1 = openstack.dns.TransferRequest("request1",
        zone_id=example_zone.id,
        description="a transfer accept")
    accept1 = openstack.dns.TransferAccept("accept1",
        zone_transfer_request_id=request1.id,
        key=request1.key)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const exampleZone = new openstack.dns.Zone("exampleZone", {
        email: "jdoe@example.com",
        description: "An example zone",
        ttl: 3000,
        type: "PRIMARY",
    });
    const request1 = new openstack.dns.TransferRequest("request1", {
        zoneId: exampleZone.id,
        description: "a transfer accept",
    });
    const accept1 = new openstack.dns.TransferAccept("accept1", {
        zoneTransferRequestId: request1.id,
        key: request1.key,
    });
    
    resources:
      exampleZone:
        type: openstack:dns:Zone
        properties:
          email: jdoe@example.com
          description: An example zone
          ttl: 3000
          type: PRIMARY
      request1:
        type: openstack:dns:TransferRequest
        properties:
          zoneId: ${exampleZone.id}
          description: a transfer accept
      accept1:
        type: openstack:dns:TransferAccept
        properties:
          zoneTransferRequestId: ${request1.id}
          key: ${request1.key}
    

    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
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi