Create a dynhost login for a given domain zone.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const dynhostUser = new ovh.domain.DynhostLogin("dynhost_user", {
zoneName: "mydomain.ovh",
subDomain: "dynhost",
loginSuffix: "dynhostUser",
password: "thisIsMyPassword",
});
import pulumi
import pulumi_ovh as ovh
dynhost_user = ovh.domain.DynhostLogin("dynhost_user",
zone_name="mydomain.ovh",
sub_domain="dynhost",
login_suffix="dynhostUser",
password="thisIsMyPassword")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/domain"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := domain.NewDynhostLogin(ctx, "dynhost_user", &domain.DynhostLoginArgs{
ZoneName: pulumi.String("mydomain.ovh"),
SubDomain: pulumi.String("dynhost"),
LoginSuffix: pulumi.String("dynhostUser"),
Password: pulumi.String("thisIsMyPassword"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var dynhostUser = new Ovh.Domain.DynhostLogin("dynhost_user", new()
{
ZoneName = "mydomain.ovh",
SubDomain = "dynhost",
LoginSuffix = "dynhostUser",
Password = "thisIsMyPassword",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.Domain.DynhostLogin;
import com.ovhcloud.pulumi.ovh.Domain.DynhostLoginArgs;
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 dynhostUser = new DynhostLogin("dynhostUser", DynhostLoginArgs.builder()
.zoneName("mydomain.ovh")
.subDomain("dynhost")
.loginSuffix("dynhostUser")
.password("thisIsMyPassword")
.build());
}
}
resources:
dynhostUser:
type: ovh:Domain:DynhostLogin
name: dynhost_user
properties:
zoneName: mydomain.ovh
subDomain: dynhost
loginSuffix: dynhostUser
password: thisIsMyPassword
Create DynhostLogin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynhostLogin(name: string, args: DynhostLoginArgs, opts?: CustomResourceOptions);@overload
def DynhostLogin(resource_name: str,
args: DynhostLoginArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DynhostLogin(resource_name: str,
opts: Optional[ResourceOptions] = None,
login_suffix: Optional[str] = None,
password: Optional[str] = None,
sub_domain: Optional[str] = None,
zone_name: Optional[str] = None)func NewDynhostLogin(ctx *Context, name string, args DynhostLoginArgs, opts ...ResourceOption) (*DynhostLogin, error)public DynhostLogin(string name, DynhostLoginArgs args, CustomResourceOptions? opts = null)
public DynhostLogin(String name, DynhostLoginArgs args)
public DynhostLogin(String name, DynhostLoginArgs args, CustomResourceOptions options)
type: ovh:Domain:DynhostLogin
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 DynhostLoginArgs
- 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 DynhostLoginArgs
- 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 DynhostLoginArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynhostLoginArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynhostLoginArgs
- 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 dynhostLoginResource = new Ovh.Domain.DynhostLogin("dynhostLoginResource", new()
{
LoginSuffix = "string",
Password = "string",
SubDomain = "string",
ZoneName = "string",
});
example, err := domain.NewDynhostLogin(ctx, "dynhostLoginResource", &domain.DynhostLoginArgs{
LoginSuffix: pulumi.String("string"),
Password: pulumi.String("string"),
SubDomain: pulumi.String("string"),
ZoneName: pulumi.String("string"),
})
var dynhostLoginResource = new DynhostLogin("dynhostLoginResource", DynhostLoginArgs.builder()
.loginSuffix("string")
.password("string")
.subDomain("string")
.zoneName("string")
.build());
dynhost_login_resource = ovh.domain.DynhostLogin("dynhostLoginResource",
login_suffix="string",
password="string",
sub_domain="string",
zone_name="string")
const dynhostLoginResource = new ovh.domain.DynhostLogin("dynhostLoginResource", {
loginSuffix: "string",
password: "string",
subDomain: "string",
zoneName: "string",
});
type: ovh:Domain:DynhostLogin
properties:
loginSuffix: string
password: string
subDomain: string
zoneName: string
DynhostLogin 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 DynhostLogin resource accepts the following input properties:
- Login
Suffix string - Suffix that will be concatenated to the zoneName to create the login
- Password string
- Password of the login
- Sub
Domain string - Subdomain that the login will be allowed to update (use * to allow all)
- Zone
Name string - Zone name
- Login
Suffix string - Suffix that will be concatenated to the zoneName to create the login
- Password string
- Password of the login
- Sub
Domain string - Subdomain that the login will be allowed to update (use * to allow all)
- Zone
Name string - Zone name
- login
Suffix String - Suffix that will be concatenated to the zoneName to create the login
- password String
- Password of the login
- sub
Domain String - Subdomain that the login will be allowed to update (use * to allow all)
- zone
Name String - Zone name
- login
Suffix string - Suffix that will be concatenated to the zoneName to create the login
- password string
- Password of the login
- sub
Domain string - Subdomain that the login will be allowed to update (use * to allow all)
- zone
Name string - Zone name
- login_
suffix str - Suffix that will be concatenated to the zoneName to create the login
- password str
- Password of the login
- sub_
domain str - Subdomain that the login will be allowed to update (use * to allow all)
- zone_
name str - Zone name
- login
Suffix String - Suffix that will be concatenated to the zoneName to create the login
- password String
- Password of the login
- sub
Domain String - Subdomain that the login will be allowed to update (use * to allow all)
- zone
Name String - Zone name
Outputs
All input properties are implicitly available as output properties. Additionally, the DynhostLogin resource produces the following output properties:
Look up Existing DynhostLogin Resource
Get an existing DynhostLogin 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?: DynhostLoginState, opts?: CustomResourceOptions): DynhostLogin@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
login: Optional[str] = None,
login_suffix: Optional[str] = None,
password: Optional[str] = None,
sub_domain: Optional[str] = None,
zone: Optional[str] = None,
zone_name: Optional[str] = None) -> DynhostLoginfunc GetDynhostLogin(ctx *Context, name string, id IDInput, state *DynhostLoginState, opts ...ResourceOption) (*DynhostLogin, error)public static DynhostLogin Get(string name, Input<string> id, DynhostLoginState? state, CustomResourceOptions? opts = null)public static DynhostLogin get(String name, Output<String> id, DynhostLoginState state, CustomResourceOptions options)resources: _: type: ovh:Domain:DynhostLogin get: id: ${id}- 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.
- login str
- Login name
- login_
suffix str - Suffix that will be concatenated to the zoneName to create the login
- password str
- Password of the login
- sub_
domain str - Subdomain that the login will be allowed to update (use * to allow all)
- zone str
- Login zone
- zone_
name str - Zone name
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
