Ovh

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

CloudProjectContainerRegistry

Creates a container registry associated with a public cloud project.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var regcap = Ovh.GetCloudProjectCapabilitiesContainerFilter.Invoke(new()
    {
        ServiceName = "XXXXXX",
        PlanName = "SMALL",
        Region = "GRA",
    });

    var reg = new Ovh.CloudProjectContainerRegistry("reg", new()
    {
        ServiceName = regcap.Apply(getCloudProjectCapabilitiesContainerFilterResult => getCloudProjectCapabilitiesContainerFilterResult.ServiceName),
        PlanId = regcap.Apply(getCloudProjectCapabilitiesContainerFilterResult => getCloudProjectCapabilitiesContainerFilterResult.Id),
        Region = regcap.Apply(getCloudProjectCapabilitiesContainerFilterResult => getCloudProjectCapabilitiesContainerFilterResult.Region),
    });

});
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 {
		regcap, err := ovh.GetCloudProjectCapabilitiesContainerFilter(ctx, &GetCloudProjectCapabilitiesContainerFilterArgs{
			ServiceName: "XXXXXX",
			PlanName:    "SMALL",
			Region:      "GRA",
		}, nil)
		if err != nil {
			return err
		}
		_, err = ovh.NewCloudProjectContainerRegistry(ctx, "reg", &ovh.CloudProjectContainerRegistryArgs{
			ServiceName: pulumi.String(regcap.ServiceName),
			PlanId:      pulumi.String(regcap.Id),
			Region:      pulumi.String(regcap.Region),
		})
		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.GetCloudProjectCapabilitiesContainerFilterArgs;
import com.pulumi.ovh.CloudProjectContainerRegistry;
import com.pulumi.ovh.CloudProjectContainerRegistryArgs;
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 regcap = OvhFunctions.getCloudProjectCapabilitiesContainerFilter(GetCloudProjectCapabilitiesContainerFilterArgs.builder()
            .serviceName("XXXXXX")
            .planName("SMALL")
            .region("GRA")
            .build());

        var reg = new CloudProjectContainerRegistry("reg", CloudProjectContainerRegistryArgs.builder()        
            .serviceName(regcap.applyValue(getCloudProjectCapabilitiesContainerFilterResult -> getCloudProjectCapabilitiesContainerFilterResult.serviceName()))
            .planId(regcap.applyValue(getCloudProjectCapabilitiesContainerFilterResult -> getCloudProjectCapabilitiesContainerFilterResult.id()))
            .region(regcap.applyValue(getCloudProjectCapabilitiesContainerFilterResult -> getCloudProjectCapabilitiesContainerFilterResult.region()))
            .build());

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

regcap = ovh.get_cloud_project_capabilities_container_filter(service_name="XXXXXX",
    plan_name="SMALL",
    region="GRA")
reg = ovh.CloudProjectContainerRegistry("reg",
    service_name=regcap.service_name,
    plan_id=regcap.id,
    region=regcap.region)
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@lbrlabs/pulumi-ovh";
import * as ovh from "@pulumi/ovh";

const regcap = ovh.getCloudProjectCapabilitiesContainerFilter({
    serviceName: "XXXXXX",
    planName: "SMALL",
    region: "GRA",
});
const reg = new ovh.CloudProjectContainerRegistry("reg", {
    serviceName: regcap.then(regcap => regcap.serviceName),
    planId: regcap.then(regcap => regcap.id),
    region: regcap.then(regcap => regcap.region),
});
resources:
  reg:
    type: ovh:CloudProjectContainerRegistry
    properties:
      serviceName: ${regcap.serviceName}
      planId: ${regcap.id}
      region: ${regcap.region}
variables:
  regcap:
    Fn::Invoke:
      Function: ovh:getCloudProjectCapabilitiesContainerFilter
      Arguments:
        serviceName: XXXXXX
        planName: SMALL
        region: GRA

Create a CloudProjectContainerRegistry Resource

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

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

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

Region string

Region of the registry

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Name string

Registry name

PlanId string

Plan ID of the registry

Region string

Region of the registry

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Name string

Registry name

PlanId string

Plan ID of the registry

region String

Region of the registry

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name String

Registry name

planId String

Plan ID of the registry

region string

Region of the registry

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name string

Registry name

planId string

Plan ID of the registry

region str

Region of the registry

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name str

Registry name

plan_id str

Plan ID of the registry

region String

Region of the registry

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

name String

Registry name

planId String

Plan ID of the registry

Outputs

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

CreatedAt string

Plan creation date

Id string

The provider-assigned unique ID for this managed resource.

Plans List<Lbrlabs.PulumiPackage.Ovh.Outputs.CloudProjectContainerRegistryPlan>

Plan of the registry

ProjectId string

Project ID of your registry

Size int

Current size of the registry (bytes)

Status string

Registry status

UpdatedAt string

Registry last update date

Url string

Access url of the registry

Version string

Version of your registry

CreatedAt string

Plan creation date

Id string

The provider-assigned unique ID for this managed resource.

Plans []CloudProjectContainerRegistryPlan

Plan of the registry

ProjectId string

Project ID of your registry

Size int

Current size of the registry (bytes)

Status string

Registry status

UpdatedAt string

Registry last update date

Url string

Access url of the registry

Version string

Version of your registry

createdAt String

Plan creation date

id String

The provider-assigned unique ID for this managed resource.

plans List<CloudProjectContainerRegistryPlan>

Plan of the registry

projectId String

Project ID of your registry

size Integer

Current size of the registry (bytes)

status String

Registry status

updatedAt String

Registry last update date

url String

Access url of the registry

version String

Version of your registry

createdAt string

Plan creation date

id string

The provider-assigned unique ID for this managed resource.

plans CloudProjectContainerRegistryPlan[]

Plan of the registry

projectId string

Project ID of your registry

size number

Current size of the registry (bytes)

status string

Registry status

updatedAt string

Registry last update date

url string

Access url of the registry

version string

Version of your registry

created_at str

Plan creation date

id str

The provider-assigned unique ID for this managed resource.

plans Sequence[CloudProjectContainerRegistryPlan]

Plan of the registry

project_id str

Project ID of your registry

size int

Current size of the registry (bytes)

status str

Registry status

updated_at str

Registry last update date

url str

Access url of the registry

version str

Version of your registry

createdAt String

Plan creation date

id String

The provider-assigned unique ID for this managed resource.

plans List<Property Map>

Plan of the registry

projectId String

Project ID of your registry

size Number

Current size of the registry (bytes)

status String

Registry status

updatedAt String

Registry last update date

url String

Access url of the registry

version String

Version of your registry

Look up an Existing CloudProjectContainerRegistry Resource

Get an existing CloudProjectContainerRegistry 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?: CloudProjectContainerRegistryState, opts?: CustomResourceOptions): CloudProjectContainerRegistry
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        name: Optional[str] = None,
        plan_id: Optional[str] = None,
        plans: Optional[Sequence[CloudProjectContainerRegistryPlanArgs]] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        service_name: Optional[str] = None,
        size: Optional[int] = None,
        status: Optional[str] = None,
        updated_at: Optional[str] = None,
        url: Optional[str] = None,
        version: Optional[str] = None) -> CloudProjectContainerRegistry
func GetCloudProjectContainerRegistry(ctx *Context, name string, id IDInput, state *CloudProjectContainerRegistryState, opts ...ResourceOption) (*CloudProjectContainerRegistry, error)
public static CloudProjectContainerRegistry Get(string name, Input<string> id, CloudProjectContainerRegistryState? state, CustomResourceOptions? opts = null)
public static CloudProjectContainerRegistry get(String name, Output<String> id, CloudProjectContainerRegistryState 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:
CreatedAt string

Plan creation date

Name string

Registry name

PlanId string

Plan ID of the registry

Plans List<Lbrlabs.PulumiPackage.Ovh.Inputs.CloudProjectContainerRegistryPlanArgs>

Plan of the registry

ProjectId string

Project ID of your registry

Region string

Region of the registry

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Size int

Current size of the registry (bytes)

Status string

Registry status

UpdatedAt string

Registry last update date

Url string

Access url of the registry

Version string

Version of your registry

CreatedAt string

Plan creation date

Name string

Registry name

PlanId string

Plan ID of the registry

Plans []CloudProjectContainerRegistryPlanArgs

Plan of the registry

ProjectId string

Project ID of your registry

Region string

Region of the registry

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Size int

Current size of the registry (bytes)

Status string

Registry status

UpdatedAt string

Registry last update date

Url string

Access url of the registry

Version string

Version of your registry

createdAt String

Plan creation date

name String

Registry name

planId String

Plan ID of the registry

plans List<CloudProjectContainerRegistryPlanArgs>

Plan of the registry

projectId String

Project ID of your registry

region String

Region of the registry

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

size Integer

Current size of the registry (bytes)

status String

Registry status

updatedAt String

Registry last update date

url String

Access url of the registry

version String

Version of your registry

createdAt string

Plan creation date

name string

Registry name

planId string

Plan ID of the registry

plans CloudProjectContainerRegistryPlanArgs[]

Plan of the registry

projectId string

Project ID of your registry

region string

Region of the registry

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

size number

Current size of the registry (bytes)

status string

Registry status

updatedAt string

Registry last update date

url string

Access url of the registry

version string

Version of your registry

created_at str

Plan creation date

name str

Registry name

plan_id str

Plan ID of the registry

plans Sequence[CloudProjectContainerRegistryPlanArgs]

Plan of the registry

project_id str

Project ID of your registry

region str

Region of the registry

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

size int

Current size of the registry (bytes)

status str

Registry status

updated_at str

Registry last update date

url str

Access url of the registry

version str

Version of your registry

createdAt String

Plan creation date

name String

Registry name

planId String

Plan ID of the registry

plans List<Property Map>

Plan of the registry

projectId String

Project ID of your registry

region String

Region of the registry

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

size Number

Current size of the registry (bytes)

status String

Registry status

updatedAt String

Registry last update date

url String

Access url of the registry

version String

Version of your registry

Supporting Types

CloudProjectContainerRegistryPlan

Code string

Plan code from the catalog

CreatedAt string

Plan creation date

Features List<Lbrlabs.PulumiPackage.Ovh.Inputs.CloudProjectContainerRegistryPlanFeature>

Features of the plan

Id string

Plan ID

Name string

Registry name

RegistryLimits List<Lbrlabs.PulumiPackage.Ovh.Inputs.CloudProjectContainerRegistryPlanRegistryLimit>

Container registry limits

UpdatedAt string

Registry last update date

Code string

Plan code from the catalog

CreatedAt string

Plan creation date

Features []CloudProjectContainerRegistryPlanFeature

Features of the plan

Id string

Plan ID

Name string

Registry name

RegistryLimits []CloudProjectContainerRegistryPlanRegistryLimit

Container registry limits

UpdatedAt string

Registry last update date

code String

Plan code from the catalog

createdAt String

Plan creation date

features List<CloudProjectContainerRegistryPlanFeature>

Features of the plan

id String

Plan ID

name String

Registry name

registryLimits List<CloudProjectContainerRegistryPlanRegistryLimit>

Container registry limits

updatedAt String

Registry last update date

code string

Plan code from the catalog

createdAt string

Plan creation date

features CloudProjectContainerRegistryPlanFeature[]

Features of the plan

id string

Plan ID

name string

Registry name

registryLimits CloudProjectContainerRegistryPlanRegistryLimit[]

Container registry limits

updatedAt string

Registry last update date

code str

Plan code from the catalog

created_at str

Plan creation date

features Sequence[CloudProjectContainerRegistryPlanFeature]

Features of the plan

id str

Plan ID

name str

Registry name

registry_limits Sequence[CloudProjectContainerRegistryPlanRegistryLimit]

Container registry limits

updated_at str

Registry last update date

code String

Plan code from the catalog

createdAt String

Plan creation date

features List<Property Map>

Features of the plan

id String

Plan ID

name String

Registry name

registryLimits List<Property Map>

Container registry limits

updatedAt String

Registry last update date

CloudProjectContainerRegistryPlanFeature

Vulnerability bool

Vulnerability scanning

Vulnerability bool

Vulnerability scanning

vulnerability Boolean

Vulnerability scanning

vulnerability boolean

Vulnerability scanning

vulnerability bool

Vulnerability scanning

vulnerability Boolean

Vulnerability scanning

CloudProjectContainerRegistryPlanRegistryLimit

ImageStorage int

Docker image storage limits in bytes

ParallelRequest int

Parallel requests on Docker image API (/v2 Docker registry API)

ImageStorage int

Docker image storage limits in bytes

ParallelRequest int

Parallel requests on Docker image API (/v2 Docker registry API)

imageStorage Integer

Docker image storage limits in bytes

parallelRequest Integer

Parallel requests on Docker image API (/v2 Docker registry API)

imageStorage number

Docker image storage limits in bytes

parallelRequest number

Parallel requests on Docker image API (/v2 Docker registry API)

image_storage int

Docker image storage limits in bytes

parallel_request int

Parallel requests on Docker image API (/v2 Docker registry API)

imageStorage Number

Docker image storage limits in bytes

parallelRequest Number

Parallel requests on Docker image API (/v2 Docker registry API)

Package Details

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

This Pulumi package is based on the ovh Terraform Provider.