Ovh

v0.1.0 published on Friday, Nov 4, 2022 by lbrlabs

CephAcl

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.Dedicated.GetCeph.Invoke(new()
    {
        ServiceName = "94d423da-0e55-45f2-9812-836460a19939",
    });

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

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		my_ceph, err := Dedicated.GetCeph(ctx, &dedicated.GetCephArgs{
			ServiceName: "94d423da-0e55-45f2-9812-836460a19939",
		}, nil)
		if err != nil {
			return err
		}
		_, err = Dedicated.NewCephAcl(ctx, "my-acl", &Dedicated.CephAclArgs{
			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.Dedicated.DedicatedFunctions;
import com.pulumi.ovh.Dedicated.inputs.GetCephArgs;
import com.pulumi.ovh.Dedicated.CephAcl;
import com.pulumi.ovh.Dedicated.CephAclArgs;
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 = DedicatedFunctions.getCeph(GetCephArgs.builder()
            .serviceName("94d423da-0e55-45f2-9812-836460a19939")
            .build());

        var my_acl = new CephAcl("my-acl", CephAclArgs.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.Dedicated.get_ceph(service_name="94d423da-0e55-45f2-9812-836460a19939")
my_acl = ovh.dedicated.CephAcl("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.Dedicated.getCeph({
    serviceName: "94d423da-0e55-45f2-9812-836460a19939",
});
const my_acl = new ovh.dedicated.CephAcl("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:Dedicated:CephAcl
    properties:
      serviceName: ${["my-ceph"].id}
      network: 1.2.3.4
      netmask: 255.255.255.255
variables:
  my-ceph:
    fn::invoke:
      Function: ovh:Dedicated:getCeph
      Arguments:
        serviceName: 94d423da-0e55-45f2-9812-836460a19939

Create CephAcl Resource

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

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

CephAcl 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 CephAcl 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 CephAcl 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 Existing CephAcl Resource

Get an existing CephAcl 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?: CephAclState, opts?: CustomResourceOptions): CephAcl
@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) -> CephAcl
func GetCephAcl(ctx *Context, name string, id IDInput, state *CephAclState, opts ...ResourceOption) (*CephAcl, error)
public static CephAcl Get(string name, Input<string> id, CephAclState? state, CustomResourceOptions? opts = null)
public static CephAcl get(String name, Output<String> id, CephAclState 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.