Ovh

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

DedicatedCephAcl

Add a new access ACL for the given network/mask.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var my_ceph = Ovh.GetDedicatedCeph.Invoke(new()
    {
        ServiceName = "94d423da-0e55-45f2-9812-836460a19939",
    });

    var my_acl = new Ovh.DedicatedCephAcl("my-acl", new()
    {
        ServiceName = my_ceph.Apply(getDedicatedCephResult => getDedicatedCephResult).Apply(my_ceph => my_ceph.Apply(getDedicatedCephResult => getDedicatedCephResult.Id)),
        Network = "1.2.3.4",
        Netmask = "255.255.255.255",
    });

});
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 {
		my_ceph, err := ovh.GetDedicatedCeph(ctx, &GetDedicatedCephArgs{
			ServiceName: "94d423da-0e55-45f2-9812-836460a19939",
		}, nil)
		if err != nil {
			return err
		}
		_, err = ovh.NewDedicatedCephAcl(ctx, "my-acl", &ovh.DedicatedCephAclArgs{
			ServiceName: pulumi.String(my_ceph.Id),
			Network:     pulumi.String("1.2.3.4"),
			Netmask:     pulumi.String("255.255.255.255"),
		})
		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.OvhFunctions;
import com.pulumi.ovh.inputs.GetDedicatedCephArgs;
import com.pulumi.ovh.DedicatedCephAcl;
import com.pulumi.ovh.DedicatedCephAclArgs;
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) {
        final var my-ceph = OvhFunctions.getDedicatedCeph(GetDedicatedCephArgs.builder()
            .serviceName("94d423da-0e55-45f2-9812-836460a19939")
            .build());

        var my_acl = new DedicatedCephAcl("my-acl", DedicatedCephAclArgs.builder()        
            .serviceName(my_ceph.id())
            .network("1.2.3.4")
            .netmask("255.255.255.255")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh
import pulumi_ovh as ovh

my_ceph = ovh.get_dedicated_ceph(service_name="94d423da-0e55-45f2-9812-836460a19939")
my_acl = ovh.DedicatedCephAcl("my-acl",
    service_name=my_ceph.id,
    network="1.2.3.4",
    netmask="255.255.255.255")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@lbrlabs/pulumi-ovh";
import * as ovh from "@pulumi/ovh";

const my-ceph = ovh.getDedicatedCeph({
    serviceName: "94d423da-0e55-45f2-9812-836460a19939",
});
const my_acl = new ovh.DedicatedCephAcl("my-acl", {
    serviceName: my_ceph.then(my_ceph => my_ceph.id),
    network: "1.2.3.4",
    netmask: "255.255.255.255",
});
resources:
  my-acl:
    type: ovh:DedicatedCephAcl
    properties:
      serviceName: ${["my-ceph"].id}
      network: 1.2.3.4
      netmask: 255.255.255.255
variables:
  my-ceph:
    Fn::Invoke:
      Function: ovh:getDedicatedCeph
      Arguments:
        serviceName: 94d423da-0e55-45f2-9812-836460a19939

Create a DedicatedCephAcl Resource

new DedicatedCephAcl(name: string, args: DedicatedCephAclArgs, opts?: CustomResourceOptions);
@overload
def DedicatedCephAcl(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     netmask: Optional[str] = None,
                     network: Optional[str] = None,
                     service_name: Optional[str] = None)
@overload
def DedicatedCephAcl(resource_name: str,
                     args: DedicatedCephAclArgs,
                     opts: Optional[ResourceOptions] = None)
func NewDedicatedCephAcl(ctx *Context, name string, args DedicatedCephAclArgs, opts ...ResourceOption) (*DedicatedCephAcl, error)
public DedicatedCephAcl(string name, DedicatedCephAclArgs args, CustomResourceOptions? opts = null)
public DedicatedCephAcl(String name, DedicatedCephAclArgs args)
public DedicatedCephAcl(String name, DedicatedCephAclArgs args, CustomResourceOptions options)
type: ovh:DedicatedCephAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

Netmask string

The network mask to apply

Network string

The network IP to authorize

ServiceName string

The internal name of your dedicated CEPH

Netmask string

The network mask to apply

Network string

The network IP to authorize

ServiceName string

The internal name of your dedicated CEPH

netmask String

The network mask to apply

network String

The network IP to authorize

serviceName String

The internal name of your dedicated CEPH

netmask string

The network mask to apply

network string

The network IP to authorize

serviceName string

The internal name of your dedicated CEPH

netmask str

The network mask to apply

network str

The network IP to authorize

service_name str

The internal name of your dedicated CEPH

netmask String

The network mask to apply

network String

The network IP to authorize

serviceName String

The internal name of your dedicated CEPH

Outputs

All input properties are implicitly available as output properties. Additionally, the DedicatedCephAcl resource produces the following output properties:

Family string

IP family. IPv4 or IPv6

Id string

The provider-assigned unique ID for this managed resource.

Family string

IP family. IPv4 or IPv6

Id string

The provider-assigned unique ID for this managed resource.

family String

IP family. IPv4 or IPv6

id String

The provider-assigned unique ID for this managed resource.

family string

IP family. IPv4 or IPv6

id string

The provider-assigned unique ID for this managed resource.

family str

IP family. IPv4 or IPv6

id str

The provider-assigned unique ID for this managed resource.

family String

IP family. IPv4 or IPv6

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing DedicatedCephAcl Resource

Get an existing DedicatedCephAcl 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?: DedicatedCephAclState, opts?: CustomResourceOptions): DedicatedCephAcl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        family: Optional[str] = None,
        netmask: Optional[str] = None,
        network: Optional[str] = None,
        service_name: Optional[str] = None) -> DedicatedCephAcl
func GetDedicatedCephAcl(ctx *Context, name string, id IDInput, state *DedicatedCephAclState, opts ...ResourceOption) (*DedicatedCephAcl, error)
public static DedicatedCephAcl Get(string name, Input<string> id, DedicatedCephAclState? state, CustomResourceOptions? opts = null)
public static DedicatedCephAcl get(String name, Output<String> id, DedicatedCephAclState 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:
Family string

IP family. IPv4 or IPv6

Netmask string

The network mask to apply

Network string

The network IP to authorize

ServiceName string

The internal name of your dedicated CEPH

Family string

IP family. IPv4 or IPv6

Netmask string

The network mask to apply

Network string

The network IP to authorize

ServiceName string

The internal name of your dedicated CEPH

family String

IP family. IPv4 or IPv6

netmask String

The network mask to apply

network String

The network IP to authorize

serviceName String

The internal name of your dedicated CEPH

family string

IP family. IPv4 or IPv6

netmask string

The network mask to apply

network string

The network IP to authorize

serviceName string

The internal name of your dedicated CEPH

family str

IP family. IPv4 or IPv6

netmask str

The network mask to apply

network str

The network IP to authorize

service_name str

The internal name of your dedicated CEPH

family String

IP family. IPv4 or IPv6

netmask String

The network mask to apply

network String

The network IP to authorize

serviceName String

The internal name of your dedicated CEPH

Package Details

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

This Pulumi package is based on the ovh Terraform Provider.