ionoscloud.creg.Registry
Explore with Pulumi AI
Manages an Container Registry on IonosCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = new ionoscloud.creg.Registry("example", {
garbageCollectionSchedule: {
days: [
"Monday",
"Tuesday",
],
time: "05:19:00+00:00",
},
location: "de/fra",
name: "container-registry-example",
apiSubnetAllowLists: ["1.2.3.4/32"],
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.creg.Registry("example",
garbage_collection_schedule={
"days": [
"Monday",
"Tuesday",
],
"time": "05:19:00+00:00",
},
location="de/fra",
name="container-registry-example",
api_subnet_allow_lists=["1.2.3.4/32"])
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/creg"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := creg.NewRegistry(ctx, "example", &creg.RegistryArgs{
GarbageCollectionSchedule: &creg.RegistryGarbageCollectionScheduleArgs{
Days: pulumi.StringArray{
pulumi.String("Monday"),
pulumi.String("Tuesday"),
},
Time: pulumi.String("05:19:00+00:00"),
},
Location: pulumi.String("de/fra"),
Name: pulumi.String("container-registry-example"),
ApiSubnetAllowLists: pulumi.StringArray{
pulumi.String("1.2.3.4/32"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = new Ionoscloud.Creg.Registry("example", new()
{
GarbageCollectionSchedule = new Ionoscloud.Creg.Inputs.RegistryGarbageCollectionScheduleArgs
{
Days = new[]
{
"Monday",
"Tuesday",
},
Time = "05:19:00+00:00",
},
Location = "de/fra",
Name = "container-registry-example",
ApiSubnetAllowLists = new[]
{
"1.2.3.4/32",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.creg.Registry;
import com.pulumi.ionoscloud.creg.RegistryArgs;
import com.pulumi.ionoscloud.creg.inputs.RegistryGarbageCollectionScheduleArgs;
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 example = new Registry("example", RegistryArgs.builder()
.garbageCollectionSchedule(RegistryGarbageCollectionScheduleArgs.builder()
.days(
"Monday",
"Tuesday")
.time("05:19:00+00:00")
.build())
.location("de/fra")
.name("container-registry-example")
.apiSubnetAllowLists("1.2.3.4/32")
.build());
}
}
resources:
example:
type: ionoscloud:creg:Registry
properties:
garbageCollectionSchedule:
days:
- Monday
- Tuesday
time: 05:19:00+00:00
location: de/fra
name: container-registry-example
apiSubnetAllowLists:
- 1.2.3.4/32
Create Registry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Registry(name: string, args: RegistryArgs, opts?: CustomResourceOptions);
@overload
def Registry(resource_name: str,
args: RegistryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Registry(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
api_subnet_allow_lists: Optional[Sequence[str]] = None,
features: Optional[RegistryFeaturesArgs] = None,
garbage_collection_schedule: Optional[RegistryGarbageCollectionScheduleArgs] = None,
name: Optional[str] = None)
func NewRegistry(ctx *Context, name string, args RegistryArgs, opts ...ResourceOption) (*Registry, error)
public Registry(string name, RegistryArgs args, CustomResourceOptions? opts = null)
public Registry(String name, RegistryArgs args)
public Registry(String name, RegistryArgs args, CustomResourceOptions options)
type: ionoscloud:creg:Registry
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 RegistryArgs
- 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 RegistryArgs
- 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 RegistryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegistryArgs
- 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 registryResource = new Ionoscloud.Creg.Registry("registryResource", new()
{
Location = "string",
ApiSubnetAllowLists = new[]
{
"string",
},
Features = new Ionoscloud.Creg.Inputs.RegistryFeaturesArgs
{
VulnerabilityScanning = false,
},
GarbageCollectionSchedule = new Ionoscloud.Creg.Inputs.RegistryGarbageCollectionScheduleArgs
{
Days = new[]
{
"string",
},
Time = "string",
},
Name = "string",
});
example, err := creg.NewRegistry(ctx, "registryResource", &creg.RegistryArgs{
Location: pulumi.String("string"),
ApiSubnetAllowLists: pulumi.StringArray{
pulumi.String("string"),
},
Features: &creg.RegistryFeaturesArgs{
VulnerabilityScanning: pulumi.Bool(false),
},
GarbageCollectionSchedule: &creg.RegistryGarbageCollectionScheduleArgs{
Days: pulumi.StringArray{
pulumi.String("string"),
},
Time: pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var registryResource = new Registry("registryResource", RegistryArgs.builder()
.location("string")
.apiSubnetAllowLists("string")
.features(RegistryFeaturesArgs.builder()
.vulnerabilityScanning(false)
.build())
.garbageCollectionSchedule(RegistryGarbageCollectionScheduleArgs.builder()
.days("string")
.time("string")
.build())
.name("string")
.build());
registry_resource = ionoscloud.creg.Registry("registryResource",
location="string",
api_subnet_allow_lists=["string"],
features={
"vulnerability_scanning": False,
},
garbage_collection_schedule={
"days": ["string"],
"time": "string",
},
name="string")
const registryResource = new ionoscloud.creg.Registry("registryResource", {
location: "string",
apiSubnetAllowLists: ["string"],
features: {
vulnerabilityScanning: false,
},
garbageCollectionSchedule: {
days: ["string"],
time: "string",
},
name: "string",
});
type: ionoscloud:creg:Registry
properties:
apiSubnetAllowLists:
- string
features:
vulnerabilityScanning: false
garbageCollectionSchedule:
days:
- string
time: string
location: string
name: string
Registry 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 Registry resource accepts the following input properties:
- Location string
- [string] Immutable, update forces re-creation of the resource.
- Api
Subnet List<string>Allow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- Features
Ionoscloud.
Registry Features - [Map]
- Garbage
Collection Ionoscloud.Schedule Registry Garbage Collection Schedule - [Map]
- Name string
- The name of the container registry. Immutable, update forces re-creation of the resource.
- Location string
- [string] Immutable, update forces re-creation of the resource.
- Api
Subnet []stringAllow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- Features
Registry
Features Args - [Map]
- Garbage
Collection RegistrySchedule Garbage Collection Schedule Args - [Map]
- Name string
- The name of the container registry. Immutable, update forces re-creation of the resource.
- location String
- [string] Immutable, update forces re-creation of the resource.
- api
Subnet List<String>Allow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- features
Registry
Features - [Map]
- garbage
Collection RegistrySchedule Garbage Collection Schedule - [Map]
- name String
- The name of the container registry. Immutable, update forces re-creation of the resource.
- location string
- [string] Immutable, update forces re-creation of the resource.
- api
Subnet string[]Allow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- features
Registry
Features - [Map]
- garbage
Collection RegistrySchedule Garbage Collection Schedule - [Map]
- name string
- The name of the container registry. Immutable, update forces re-creation of the resource.
- location str
- [string] Immutable, update forces re-creation of the resource.
- api_
subnet_ Sequence[str]allow_ lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- features
Registry
Features Args - [Map]
- garbage_
collection_ Registryschedule Garbage Collection Schedule Args - [Map]
- name str
- The name of the container registry. Immutable, update forces re-creation of the resource.
- location String
- [string] Immutable, update forces re-creation of the resource.
- api
Subnet List<String>Allow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- features Property Map
- [Map]
- garbage
Collection Property MapSchedule - [Map]
- name String
- The name of the container registry. Immutable, update forces re-creation of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Registry resource produces the following output properties:
- Hostname string
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Usages List<Ionoscloud.Registry Storage Usage>
- Hostname string
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Usages []RegistryStorage Usage
- hostname String
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Usages List<RegistryStorage Usage>
- hostname string
- id string
- The provider-assigned unique ID for this managed resource.
- storage
Usages RegistryStorage Usage[]
- hostname str
- id str
- The provider-assigned unique ID for this managed resource.
- storage_
usages Sequence[RegistryStorage Usage]
- hostname String
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Usages List<Property Map>
Look up Existing Registry Resource
Get an existing Registry 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?: RegistryState, opts?: CustomResourceOptions): Registry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_subnet_allow_lists: Optional[Sequence[str]] = None,
features: Optional[RegistryFeaturesArgs] = None,
garbage_collection_schedule: Optional[RegistryGarbageCollectionScheduleArgs] = None,
hostname: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
storage_usages: Optional[Sequence[RegistryStorageUsageArgs]] = None) -> Registry
func GetRegistry(ctx *Context, name string, id IDInput, state *RegistryState, opts ...ResourceOption) (*Registry, error)
public static Registry Get(string name, Input<string> id, RegistryState? state, CustomResourceOptions? opts = null)
public static Registry get(String name, Output<String> id, RegistryState state, CustomResourceOptions options)
resources: _: type: ionoscloud:creg:Registry 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.
- Api
Subnet List<string>Allow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- Features
Ionoscloud.
Registry Features - [Map]
- Garbage
Collection Ionoscloud.Schedule Registry Garbage Collection Schedule - [Map]
- Hostname string
- Location string
- [string] Immutable, update forces re-creation of the resource.
- Name string
- The name of the container registry. Immutable, update forces re-creation of the resource.
- Storage
Usages List<Ionoscloud.Registry Storage Usage>
- Api
Subnet []stringAllow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- Features
Registry
Features Args - [Map]
- Garbage
Collection RegistrySchedule Garbage Collection Schedule Args - [Map]
- Hostname string
- Location string
- [string] Immutable, update forces re-creation of the resource.
- Name string
- The name of the container registry. Immutable, update forces re-creation of the resource.
- Storage
Usages []RegistryStorage Usage Args
- api
Subnet List<String>Allow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- features
Registry
Features - [Map]
- garbage
Collection RegistrySchedule Garbage Collection Schedule - [Map]
- hostname String
- location String
- [string] Immutable, update forces re-creation of the resource.
- name String
- The name of the container registry. Immutable, update forces re-creation of the resource.
- storage
Usages List<RegistryStorage Usage>
- api
Subnet string[]Allow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- features
Registry
Features - [Map]
- garbage
Collection RegistrySchedule Garbage Collection Schedule - [Map]
- hostname string
- location string
- [string] Immutable, update forces re-creation of the resource.
- name string
- The name of the container registry. Immutable, update forces re-creation of the resource.
- storage
Usages RegistryStorage Usage[]
- api_
subnet_ Sequence[str]allow_ lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- features
Registry
Features Args - [Map]
- garbage_
collection_ Registryschedule Garbage Collection Schedule Args - [Map]
- hostname str
- location str
- [string] Immutable, update forces re-creation of the resource.
- name str
- The name of the container registry. Immutable, update forces re-creation of the resource.
- storage_
usages Sequence[RegistryStorage Usage Args]
- api
Subnet List<String>Allow Lists - [list] The subnet CIDRs that are allowed to connect to the registry. Specify "a.b.c.d/32" for an individual IP address. Note: If this list is empty or not set, there are no restrictions.
- features Property Map
- [Map]
- garbage
Collection Property MapSchedule - [Map]
- hostname String
- location String
- [string] Immutable, update forces re-creation of the resource.
- name String
- The name of the container registry. Immutable, update forces re-creation of the resource.
- storage
Usages List<Property Map>
Supporting Types
RegistryFeatures, RegistryFeaturesArgs
- Vulnerability
Scanning bool [bool] Enables or disables the Vulnerability Scanning feature for the Container Registry. To disable this feature, set the attribute to false when creating the CR resource.
⚠ WARNING
Container Registry Vulnerability Scanning
is a paid feature which is enabled by default, and cannot be turned off after activation. To disable this feature for a Container Registry, ensurevulnerability_scanning
is set to false on resource creation.
- Vulnerability
Scanning bool [bool] Enables or disables the Vulnerability Scanning feature for the Container Registry. To disable this feature, set the attribute to false when creating the CR resource.
⚠ WARNING
Container Registry Vulnerability Scanning
is a paid feature which is enabled by default, and cannot be turned off after activation. To disable this feature for a Container Registry, ensurevulnerability_scanning
is set to false on resource creation.
- vulnerability
Scanning Boolean [bool] Enables or disables the Vulnerability Scanning feature for the Container Registry. To disable this feature, set the attribute to false when creating the CR resource.
⚠ WARNING
Container Registry Vulnerability Scanning
is a paid feature which is enabled by default, and cannot be turned off after activation. To disable this feature for a Container Registry, ensurevulnerability_scanning
is set to false on resource creation.
- vulnerability
Scanning boolean [bool] Enables or disables the Vulnerability Scanning feature for the Container Registry. To disable this feature, set the attribute to false when creating the CR resource.
⚠ WARNING
Container Registry Vulnerability Scanning
is a paid feature which is enabled by default, and cannot be turned off after activation. To disable this feature for a Container Registry, ensurevulnerability_scanning
is set to false on resource creation.
- vulnerability_
scanning bool [bool] Enables or disables the Vulnerability Scanning feature for the Container Registry. To disable this feature, set the attribute to false when creating the CR resource.
⚠ WARNING
Container Registry Vulnerability Scanning
is a paid feature which is enabled by default, and cannot be turned off after activation. To disable this feature for a Container Registry, ensurevulnerability_scanning
is set to false on resource creation.
- vulnerability
Scanning Boolean [bool] Enables or disables the Vulnerability Scanning feature for the Container Registry. To disable this feature, set the attribute to false when creating the CR resource.
⚠ WARNING
Container Registry Vulnerability Scanning
is a paid feature which is enabled by default, and cannot be turned off after activation. To disable this feature for a Container Registry, ensurevulnerability_scanning
is set to false on resource creation.
RegistryGarbageCollectionSchedule, RegistryGarbageCollectionScheduleArgs
RegistryStorageUsage, RegistryStorageUsageArgs
- bytes int
- updated_
at str
Import
Resource Container Registry can be imported using the resource id
, e.g.
$ pulumi import ionoscloud:creg/registry:Registry mycr container_registry uuid
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.