Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

DomainZoneRedirection

Provides a OVH domain zone redirection.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.Ovh;

return await Deployment.RunAsync(() => 
{
    // Add a redirection to a sub-domain
    var test = new Ovh.DomainZoneRedirection("test", new()
    {
        Subdomain = "test",
        Target = "http://www.ovh",
        Type = "visiblePermanent",
        Zone = "testdemo.ovh",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.NewDomainZoneRedirection(ctx, "test", &ovh.DomainZoneRedirectionArgs{
			Subdomain: pulumi.String("test"),
			Target:    pulumi.String("http://www.ovh"),
			Type:      pulumi.String("visiblePermanent"),
			Zone:      pulumi.String("testdemo.ovh"),
		})
		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.ovh.DomainZoneRedirection;
import com.pulumi.ovh.DomainZoneRedirectionArgs;
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 test = new DomainZoneRedirection("test", DomainZoneRedirectionArgs.builder()        
            .subdomain("test")
            .target("http://www.ovh")
            .type("visiblePermanent")
            .zone("testdemo.ovh")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

# Add a redirection to a sub-domain
test = ovh.DomainZoneRedirection("test",
    subdomain="test",
    target="http://www.ovh",
    type="visiblePermanent",
    zone="testdemo.ovh")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

// Add a redirection to a sub-domain
const test = new ovh.DomainZoneRedirection("test", {
    subdomain: "test",
    target: "http://www.ovh",
    type: "visiblePermanent",
    zone: "testdemo.ovh",
});
resources:
  # Add a redirection to a sub-domain
  test:
    type: ovh:DomainZoneRedirection
    properties:
      subdomain: test
      target: http://www.ovh
      type: visiblePermanent
      zone: testdemo.ovh

Create a DomainZoneRedirection Resource

new DomainZoneRedirection(name: string, args: DomainZoneRedirectionArgs, opts?: CustomResourceOptions);
@overload
def DomainZoneRedirection(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          description: Optional[str] = None,
                          keywords: Optional[str] = None,
                          subdomain: Optional[str] = None,
                          target: Optional[str] = None,
                          title: Optional[str] = None,
                          type: Optional[str] = None,
                          zone: Optional[str] = None)
@overload
def DomainZoneRedirection(resource_name: str,
                          args: DomainZoneRedirectionArgs,
                          opts: Optional[ResourceOptions] = None)
func NewDomainZoneRedirection(ctx *Context, name string, args DomainZoneRedirectionArgs, opts ...ResourceOption) (*DomainZoneRedirection, error)
public DomainZoneRedirection(string name, DomainZoneRedirectionArgs args, CustomResourceOptions? opts = null)
public DomainZoneRedirection(String name, DomainZoneRedirectionArgs args)
public DomainZoneRedirection(String name, DomainZoneRedirectionArgs args, CustomResourceOptions options)
type: ovh:DomainZoneRedirection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

Target string

The value of the redirection

Type string

The type of the redirection, with values:

Zone string

The domain to add the redirection to

Description string

A description of this redirection

Keywords string

Keywords to describe this redirection

Subdomain string

The name of the redirection

Title string

Title of this redirection

Target string

The value of the redirection

Type string

The type of the redirection, with values:

Zone string

The domain to add the redirection to

Description string

A description of this redirection

Keywords string

Keywords to describe this redirection

Subdomain string

The name of the redirection

Title string

Title of this redirection

target String

The value of the redirection

type String

The type of the redirection, with values:

zone String

The domain to add the redirection to

description String

A description of this redirection

keywords String

Keywords to describe this redirection

subdomain String

The name of the redirection

title String

Title of this redirection

target string

The value of the redirection

type string

The type of the redirection, with values:

zone string

The domain to add the redirection to

description string

A description of this redirection

keywords string

Keywords to describe this redirection

subdomain string

The name of the redirection

title string

Title of this redirection

target str

The value of the redirection

type str

The type of the redirection, with values:

zone str

The domain to add the redirection to

description str

A description of this redirection

keywords str

Keywords to describe this redirection

subdomain str

The name of the redirection

title str

Title of this redirection

target String

The value of the redirection

type String

The type of the redirection, with values:

zone String

The domain to add the redirection to

description String

A description of this redirection

keywords String

Keywords to describe this redirection

subdomain String

The name of the redirection

title String

Title of this redirection

Outputs

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

Get an existing DomainZoneRedirection 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?: DomainZoneRedirectionState, opts?: CustomResourceOptions): DomainZoneRedirection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        keywords: Optional[str] = None,
        subdomain: Optional[str] = None,
        target: Optional[str] = None,
        title: Optional[str] = None,
        type: Optional[str] = None,
        zone: Optional[str] = None) -> DomainZoneRedirection
func GetDomainZoneRedirection(ctx *Context, name string, id IDInput, state *DomainZoneRedirectionState, opts ...ResourceOption) (*DomainZoneRedirection, error)
public static DomainZoneRedirection Get(string name, Input<string> id, DomainZoneRedirectionState? state, CustomResourceOptions? opts = null)
public static DomainZoneRedirection get(String name, Output<String> id, DomainZoneRedirectionState 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:
Description string

A description of this redirection

Keywords string

Keywords to describe this redirection

Subdomain string

The name of the redirection

Target string

The value of the redirection

Title string

Title of this redirection

Type string

The type of the redirection, with values:

Zone string

The domain to add the redirection to

Description string

A description of this redirection

Keywords string

Keywords to describe this redirection

Subdomain string

The name of the redirection

Target string

The value of the redirection

Title string

Title of this redirection

Type string

The type of the redirection, with values:

Zone string

The domain to add the redirection to

description String

A description of this redirection

keywords String

Keywords to describe this redirection

subdomain String

The name of the redirection

target String

The value of the redirection

title String

Title of this redirection

type String

The type of the redirection, with values:

zone String

The domain to add the redirection to

description string

A description of this redirection

keywords string

Keywords to describe this redirection

subdomain string

The name of the redirection

target string

The value of the redirection

title string

Title of this redirection

type string

The type of the redirection, with values:

zone string

The domain to add the redirection to

description str

A description of this redirection

keywords str

Keywords to describe this redirection

subdomain str

The name of the redirection

target str

The value of the redirection

title str

Title of this redirection

type str

The type of the redirection, with values:

zone str

The domain to add the redirection to

description String

A description of this redirection

keywords String

Keywords to describe this redirection

subdomain String

The name of the redirection

target String

The value of the redirection

title String

Title of this redirection

type String

The type of the redirection, with values:

zone String

The domain to add the redirection to

Package Details

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

This Pulumi package is based on the ovh Terraform Provider.