ovh.CloudProject.ContainerRegistry
Explore with Pulumi AI
Creates a container registry associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
import * as ovh from "@pulumi/ovh";
const regcap = ovh.CloudProject.getCapabilitiesContainerFilter({
serviceName: "XXXXXX",
planName: "SMALL",
region: "GRA",
});
const my_registry = new ovh.cloudproject.ContainerRegistry("my-registry", {
serviceName: regcap.then(regcap => regcap.serviceName),
planId: regcap.then(regcap => regcap.id),
region: regcap.then(regcap => regcap.region),
});
import pulumi
import pulumi_ovh as ovh
regcap = ovh.CloudProject.get_capabilities_container_filter(service_name="XXXXXX",
plan_name="SMALL",
region="GRA")
my_registry = ovh.cloud_project.ContainerRegistry("my-registry",
service_name=regcap.service_name,
plan_id=regcap.id,
region=regcap.region)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
regcap, err := CloudProject.GetCapabilitiesContainerFilter(ctx, &cloudproject.GetCapabilitiesContainerFilterArgs{
ServiceName: "XXXXXX",
PlanName: "SMALL",
Region: "GRA",
}, nil)
if err != nil {
return err
}
_, err = CloudProject.NewContainerRegistry(ctx, "my-registry", &CloudProject.ContainerRegistryArgs{
ServiceName: pulumi.String(regcap.ServiceName),
PlanId: pulumi.String(regcap.Id),
Region: pulumi.String(regcap.Region),
})
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 regcap = Ovh.CloudProject.GetCapabilitiesContainerFilter.Invoke(new()
{
ServiceName = "XXXXXX",
PlanName = "SMALL",
Region = "GRA",
});
var my_registry = new Ovh.CloudProject.ContainerRegistry("my-registry", new()
{
ServiceName = regcap.Apply(getCapabilitiesContainerFilterResult => getCapabilitiesContainerFilterResult.ServiceName),
PlanId = regcap.Apply(getCapabilitiesContainerFilterResult => getCapabilitiesContainerFilterResult.Id),
Region = regcap.Apply(getCapabilitiesContainerFilterResult => getCapabilitiesContainerFilterResult.Region),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetCapabilitiesContainerFilterArgs;
import com.pulumi.ovh.CloudProject.ContainerRegistry;
import com.pulumi.ovh.CloudProject.ContainerRegistryArgs;
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 = CloudProjectFunctions.getCapabilitiesContainerFilter(GetCapabilitiesContainerFilterArgs.builder()
.serviceName("XXXXXX")
.planName("SMALL")
.region("GRA")
.build());
var my_registry = new ContainerRegistry("my-registry", ContainerRegistryArgs.builder()
.serviceName(regcap.applyValue(getCapabilitiesContainerFilterResult -> getCapabilitiesContainerFilterResult.serviceName()))
.planId(regcap.applyValue(getCapabilitiesContainerFilterResult -> getCapabilitiesContainerFilterResult.id()))
.region(regcap.applyValue(getCapabilitiesContainerFilterResult -> getCapabilitiesContainerFilterResult.region()))
.build());
}
}
resources:
my-registry:
type: ovh:CloudProject:ContainerRegistry
properties:
serviceName: ${regcap.serviceName}
planId: ${regcap.id}
region: ${regcap.region}
variables:
regcap:
fn::invoke:
Function: ovh:CloudProject:getCapabilitiesContainerFilter
Arguments:
serviceName: XXXXXX
planName: SMALL
region: GRA
WARNING You can update and migrate to a higher plan at any time but not the contrary.
Create ContainerRegistry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerRegistry(name: string, args: ContainerRegistryArgs, opts?: CustomResourceOptions);
@overload
def ContainerRegistry(resource_name: str,
args: ContainerRegistryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerRegistry(resource_name: str,
opts: Optional[ResourceOptions] = None,
region: Optional[str] = None,
service_name: Optional[str] = None,
name: Optional[str] = None,
plan_id: Optional[str] = None)
func NewContainerRegistry(ctx *Context, name string, args ContainerRegistryArgs, opts ...ResourceOption) (*ContainerRegistry, error)
public ContainerRegistry(string name, ContainerRegistryArgs args, CustomResourceOptions? opts = null)
public ContainerRegistry(String name, ContainerRegistryArgs args)
public ContainerRegistry(String name, ContainerRegistryArgs args, CustomResourceOptions options)
type: ovh:CloudProject:ContainerRegistry
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 ContainerRegistryArgs
- 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 ContainerRegistryArgs
- 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 ContainerRegistryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerRegistryArgs
- 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 containerRegistryResource = new Ovh.CloudProject.ContainerRegistry("containerRegistryResource", new()
{
Region = "string",
ServiceName = "string",
Name = "string",
PlanId = "string",
});
example, err := CloudProject.NewContainerRegistry(ctx, "containerRegistryResource", &CloudProject.ContainerRegistryArgs{
Region: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Name: pulumi.String("string"),
PlanId: pulumi.String("string"),
})
var containerRegistryResource = new ContainerRegistry("containerRegistryResource", ContainerRegistryArgs.builder()
.region("string")
.serviceName("string")
.name("string")
.planId("string")
.build());
container_registry_resource = ovh.cloud_project.ContainerRegistry("containerRegistryResource",
region="string",
service_name="string",
name="string",
plan_id="string")
const containerRegistryResource = new ovh.cloudproject.ContainerRegistry("containerRegistryResource", {
region: "string",
serviceName: "string",
name: "string",
planId: "string",
});
type: ovh:CloudProject:ContainerRegistry
properties:
name: string
planId: string
region: string
serviceName: string
ContainerRegistry 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 ContainerRegistry resource accepts the following input properties:
- Region string
- Region of the registry
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - Name string
- Registry name
- Plan
Id string - Plan ID of the registry
- Region string
- Region of the registry
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - Name string
- Registry name
- Plan
Id string - Plan ID of the registry
- region String
- Region of the registry
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - name String
- Registry name
- plan
Id String - Plan ID of the registry
- region string
- Region of the registry
- service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - name string
- Registry name
- plan
Id 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
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - name String
- Registry name
- plan
Id String - Plan ID of the registry
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerRegistry resource produces the following output properties:
- Created
At string - Plan creation date
- Id string
- The provider-assigned unique ID for this managed resource.
- Plans
List<Container
Registry Plan> - Plan of the registry
- Project
Id string - Project ID of your registry
- Size int
- Current size of the registry (bytes)
- Status string
- Registry status
- Updated
At string - Registry last update date
- Url string
- Access url of the registry
- Version string
- Version of your registry
- Created
At string - Plan creation date
- Id string
- The provider-assigned unique ID for this managed resource.
- Plans
[]Container
Registry Plan - Plan of the registry
- Project
Id string - Project ID of your registry
- Size int
- Current size of the registry (bytes)
- Status string
- Registry status
- Updated
At string - Registry last update date
- Url string
- Access url of the registry
- Version string
- Version of your registry
- created
At String - Plan creation date
- id String
- The provider-assigned unique ID for this managed resource.
- plans
List<Container
Registry Plan> - Plan of the registry
- project
Id String - Project ID of your registry
- size Integer
- Current size of the registry (bytes)
- status String
- Registry status
- updated
At String - Registry last update date
- url String
- Access url of the registry
- version String
- Version of your registry
- created
At string - Plan creation date
- id string
- The provider-assigned unique ID for this managed resource.
- plans
Container
Registry Plan[] - Plan of the registry
- project
Id string - Project ID of your registry
- size number
- Current size of the registry (bytes)
- status string
- Registry status
- updated
At 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[cloudproject.
Container Registry Plan] - 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
- created
At String - Plan creation date
- id String
- The provider-assigned unique ID for this managed resource.
- plans List<Property Map>
- Plan of the registry
- project
Id String - Project ID of your registry
- size Number
- Current size of the registry (bytes)
- status String
- Registry status
- updated
At String - Registry last update date
- url String
- Access url of the registry
- version String
- Version of your registry
Look up Existing ContainerRegistry Resource
Get an existing ContainerRegistry 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?: ContainerRegistryState, opts?: CustomResourceOptions): ContainerRegistry
@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[_cloudproject.ContainerRegistryPlanArgs]] = 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) -> ContainerRegistry
func GetContainerRegistry(ctx *Context, name string, id IDInput, state *ContainerRegistryState, opts ...ResourceOption) (*ContainerRegistry, error)
public static ContainerRegistry Get(string name, Input<string> id, ContainerRegistryState? state, CustomResourceOptions? opts = null)
public static ContainerRegistry get(String name, Output<String> id, ContainerRegistryState 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.
- Created
At string - Plan creation date
- Name string
- Registry name
- Plan
Id string - Plan ID of the registry
- Plans
List<Container
Registry Plan> - Plan of the registry
- Project
Id string - Project ID of your registry
- Region string
- Region of the registry
- Service
Name 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
- Updated
At string - Registry last update date
- Url string
- Access url of the registry
- Version string
- Version of your registry
- Created
At string - Plan creation date
- Name string
- Registry name
- Plan
Id string - Plan ID of the registry
- Plans
[]Container
Registry Plan Args - Plan of the registry
- Project
Id string - Project ID of your registry
- Region string
- Region of the registry
- Service
Name 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
- Updated
At string - Registry last update date
- Url string
- Access url of the registry
- Version string
- Version of your registry
- created
At String - Plan creation date
- name String
- Registry name
- plan
Id String - Plan ID of the registry
- plans
List<Container
Registry Plan> - Plan of the registry
- project
Id String - Project ID of your registry
- region String
- Region of the registry
- service
Name 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
- updated
At String - Registry last update date
- url String
- Access url of the registry
- version String
- Version of your registry
- created
At string - Plan creation date
- name string
- Registry name
- plan
Id string - Plan ID of the registry
- plans
Container
Registry Plan[] - Plan of the registry
- project
Id string - Project ID of your registry
- region string
- Region of the registry
- service
Name 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
- updated
At 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[cloudproject.
Container Registry Plan Args] - 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
- created
At String - Plan creation date
- name String
- Registry name
- plan
Id String - Plan ID of the registry
- plans List<Property Map>
- Plan of the registry
- project
Id String - Project ID of your registry
- region String
- Region of the registry
- service
Name 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
- updated
At String - Registry last update date
- url String
- Access url of the registry
- version String
- Version of your registry
Supporting Types
ContainerRegistryPlan, ContainerRegistryPlanArgs
- Code string
- Plan code from the catalog
- Created
At string - Plan creation date
- Features
List<Container
Registry Plan Feature> - Features of the plan
- Id string
- Plan ID
- Name string
- Registry name
- Registry
Limits List<ContainerRegistry Plan Registry Limit> - Container registry limits
- Updated
At string - Registry last update date
- Code string
- Plan code from the catalog
- Created
At string - Plan creation date
- Features
[]Container
Registry Plan Feature - Features of the plan
- Id string
- Plan ID
- Name string
- Registry name
- Registry
Limits []ContainerRegistry Plan Registry Limit - Container registry limits
- Updated
At string - Registry last update date
- code String
- Plan code from the catalog
- created
At String - Plan creation date
- features
List<Container
Registry Plan Feature> - Features of the plan
- id String
- Plan ID
- name String
- Registry name
- registry
Limits List<ContainerRegistry Plan Registry Limit> - Container registry limits
- updated
At String - Registry last update date
- code string
- Plan code from the catalog
- created
At string - Plan creation date
- features
Container
Registry Plan Feature[] - Features of the plan
- id string
- Plan ID
- name string
- Registry name
- registry
Limits ContainerRegistry Plan Registry Limit[] - Container registry limits
- updated
At string - Registry last update date
- code str
- Plan code from the catalog
- created_
at str - Plan creation date
- features
Sequence[cloudproject.
Container Registry Plan Feature] - Features of the plan
- id str
- Plan ID
- name str
- Registry name
- registry_
limits Sequence[cloudproject.Container Registry Plan Registry Limit] - Container registry limits
- updated_
at str - Registry last update date
- code String
- Plan code from the catalog
- created
At String - Plan creation date
- features List<Property Map>
- Features of the plan
- id String
- Plan ID
- name String
- Registry name
- registry
Limits List<Property Map> - Container registry limits
- updated
At String - Registry last update date
ContainerRegistryPlanFeature, ContainerRegistryPlanFeatureArgs
- Vulnerability bool
- Vulnerability scanning
- Vulnerability bool
- Vulnerability scanning
- vulnerability Boolean
- Vulnerability scanning
- vulnerability boolean
- Vulnerability scanning
- vulnerability bool
- Vulnerability scanning
- vulnerability Boolean
- Vulnerability scanning
ContainerRegistryPlanRegistryLimit, ContainerRegistryPlanRegistryLimitArgs
- Image
Storage int - Docker image storage limits in bytes
- Parallel
Request int - 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)
- image
Storage Integer - Docker image storage limits in bytes
- parallel
Request Integer - Parallel requests on Docker image API (/v2 Docker registry API)
- image
Storage number - Docker image storage limits in bytes
- parallel
Request 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)
- image
Storage Number - Docker image storage limits in bytes
- parallel
Request Number - Parallel requests on Docker image API (/v2 Docker registry API)
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.