Registry
An object that represents a container registry. Latest API Version: 2019-05-01.
Example Usage
RegistryCreate
using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;
class MyStack : Stack
{
public MyStack()
{
var registry = new AzureNextGen.ContainerRegistry.Latest.Registry("registry", new AzureNextGen.ContainerRegistry.Latest.RegistryArgs
{
AdminUserEnabled = true,
Location = "westus",
RegistryName = "myRegistry",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNextGen.ContainerRegistry.Latest.Inputs.SkuArgs
{
Name = "Standard",
},
Tags =
{
{ "key", "value" },
},
});
}
}
package main
import (
containerregistry "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/containerregistry/latest"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerregistry.NewRegistry(ctx, "registry", &containerregistry.RegistryArgs{
AdminUserEnabled: pulumi.Bool(true),
Location: pulumi.String("westus"),
RegistryName: pulumi.String("myRegistry"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &containerregistry.SkuArgs{
Name: pulumi.String("Standard"),
},
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen
registry = azure_nextgen.containerregistry.latest.Registry("registry",
admin_user_enabled=True,
location="westus",
registry_name="myRegistry",
resource_group_name="myResourceGroup",
sku=azure_nextgen.containerregistry.latest.SkuArgs(
name="Standard",
),
tags={
"key": "value",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";
const registry = new azure_nextgen.containerregistry.latest.Registry("registry", {
adminUserEnabled: true,
location: "westus",
registryName: "myRegistry",
resourceGroupName: "myResourceGroup",
sku: {
name: "Standard",
},
tags: {
key: "value",
},
});
Create a Registry Resource
new Registry(name: string, args: RegistryArgs, opts?: CustomResourceOptions);
def Registry(resource_name: str, opts: Optional[ResourceOptions] = None, admin_user_enabled: Optional[bool] = None, location: Optional[str] = None, network_rule_set: Optional[NetworkRuleSetArgs] = None, policies: Optional[PoliciesArgs] = None, registry_name: Optional[str] = None, resource_group_name: Optional[str] = None, sku: Optional[SkuArgs] = None, storage_account: Optional[StorageAccountPropertiesArgs] = None, tags: Optional[Mapping[str, str]] = None)
func NewRegistry(ctx *Context, name string, args RegistryArgs, opts ...ResourceOption) (*Registry, error)
public Registry(string name, RegistryArgs args, CustomResourceOptions? opts = null)
- 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.
- opts ResourceOptions
- A bag of options that control this 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.
Registry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Registry resource accepts the following input properties:
- Registry
Name string - The name of the container registry.
- Resource
Group stringName - The name of the resource group to which the container registry belongs.
- Sku
Pulumi.
Azure Next Gen. Container Registry. Inputs. Sku Args - The SKU of the container registry.
- Admin
User boolEnabled - The value that indicates whether the admin user is enabled.
- Location string
- The location of the resource. This cannot be changed after the resource is created.
- Network
Rule Pulumi.Set Azure Next Gen. Container Registry. Inputs. Network Rule Set Args - The network rule set for a container registry.
- Policies
Pulumi.
Azure Next Gen. Container Registry. Inputs. Policies Args - The policies for a container registry.
- Storage
Account Pulumi.Azure Next Gen. Container Registry. Inputs. Storage Account Properties Args - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- Dictionary<string, string>
- The tags of the resource.
- Registry
Name string - The name of the container registry.
- Resource
Group stringName - The name of the resource group to which the container registry belongs.
- Sku Sku
- The SKU of the container registry.
- Admin
User boolEnabled - The value that indicates whether the admin user is enabled.
- Location string
- The location of the resource. This cannot be changed after the resource is created.
- Network
Rule NetworkSet Rule Set - The network rule set for a container registry.
- Policies Policies
- The policies for a container registry.
- Storage
Account StorageAccount Properties - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- map[string]string
- The tags of the resource.
- registry
Name string - The name of the container registry.
- resource
Group stringName - The name of the resource group to which the container registry belongs.
- sku Sku
- The SKU of the container registry.
- admin
User booleanEnabled - The value that indicates whether the admin user is enabled.
- location string
- The location of the resource. This cannot be changed after the resource is created.
- network
Rule NetworkSet Rule Set - The network rule set for a container registry.
- policies Policies
- The policies for a container registry.
- storage
Account StorageAccount Properties - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- {[key: string]: string}
- The tags of the resource.
- registry_
name str - The name of the container registry.
- resource_
group_ strname - The name of the resource group to which the container registry belongs.
- sku
Sku
Args - The SKU of the container registry.
- admin_
user_ boolenabled - The value that indicates whether the admin user is enabled.
- location str
- The location of the resource. This cannot be changed after the resource is created.
- network_
rule_ Networkset Rule Set Args - The network rule set for a container registry.
- policies
Policies
Args - The policies for a container registry.
- storage_
account StorageAccount Properties Args - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- Mapping[str, str]
- The tags of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Registry resource produces the following output properties:
- Creation
Date string - The creation date of the container registry in ISO8601 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Server string - The URL that can be used to log into the container registry.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning state of the container registry at the time the operation was called.
- Status
Pulumi.
Azure Next Gen. Container Registry. Outputs. Status Response - The status of the container registry at the time the operation was called.
- Type string
- The type of the resource.
- Creation
Date string - The creation date of the container registry in ISO8601 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Server string - The URL that can be used to log into the container registry.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning state of the container registry at the time the operation was called.
- Status
Status
Response - The status of the container registry at the time the operation was called.
- Type string
- The type of the resource.
- creation
Date string - The creation date of the container registry in ISO8601 format.
- id string
- The provider-assigned unique ID for this managed resource.
- login
Server string - The URL that can be used to log into the container registry.
- name string
- The name of the resource.
- provisioning
State string - The provisioning state of the container registry at the time the operation was called.
- status
Status
Response - The status of the container registry at the time the operation was called.
- type string
- The type of the resource.
- creation_
date str - The creation date of the container registry in ISO8601 format.
- id str
- The provider-assigned unique ID for this managed resource.
- login_
server str - The URL that can be used to log into the container registry.
- name str
- The name of the resource.
- provisioning_
state str - The provisioning state of the container registry at the time the operation was called.
- status
Status
Response - The status of the container registry at the time the operation was called.
- type str
- The type of the resource.
Supporting Types
Action
- Allow
- Allow
- Action
Allow - Allow
- Allow
- Allow
- ALLOW
- Allow
DefaultAction
- Allow
- Allow
- Deny
- Deny
- Default
Action Allow - Allow
- Default
Action Deny - Deny
- Allow
- Allow
- Deny
- Deny
- ALLOW
- Allow
- DENY
- Deny
IPRule
- IPAddress
Or stringRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Action
string | Pulumi.
Azure Next Gen. Container Registry. Action - The action of IP ACL rule.
- IPAddress
Or stringRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Action string | Action
- The action of IP ACL rule.
- i
PAddress stringOr Range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action string | Action
- The action of IP ACL rule.
- i_
p_ straddress_ or_ range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action str | Action
- The action of IP ACL rule.
IPRuleResponse
- IPAddress
Or stringRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Action string
- The action of IP ACL rule.
- IPAddress
Or stringRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Action string
- The action of IP ACL rule.
- i
PAddress stringOr Range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action string
- The action of IP ACL rule.
- i_
p_ straddress_ or_ range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action str
- The action of IP ACL rule.
NetworkRuleSet
- Default
Action string | Pulumi.Azure Next Gen. Container Registry. Default Action - The default action of allow or deny when no other rules match.
- Ip
Rules List<Pulumi.Azure Next Gen. Container Registry. Inputs. IPRule Args> - The IP ACL rules.
- Virtual
Network List<Pulumi.Rules Azure Next Gen. Container Registry. Inputs. Virtual Network Rule Args> - The virtual network rules.
- Default
Action string | DefaultAction - The default action of allow or deny when no other rules match.
- Ip
Rules []IPRule - The IP ACL rules.
- Virtual
Network []VirtualRules Network Rule - The virtual network rules.
- default
Action string | DefaultAction - The default action of allow or deny when no other rules match.
- ip
Rules IPRule[] - The IP ACL rules.
- virtual
Network VirtualRules Network Rule[] - The virtual network rules.
- default_
action str | DefaultAction - The default action of allow or deny when no other rules match.
- ip_
rules Sequence[IPRuleArgs] - The IP ACL rules.
- virtual_
network_ Sequence[Virtualrules Network Rule Args] - The virtual network rules.
NetworkRuleSetResponse
- Default
Action string - The default action of allow or deny when no other rules match.
- Ip
Rules List<Pulumi.Azure Next Gen. Container Registry. Inputs. IPRule Response Args> - The IP ACL rules.
- Virtual
Network List<Pulumi.Rules Azure Next Gen. Container Registry. Inputs. Virtual Network Rule Response Args> - The virtual network rules.
- Default
Action string - The default action of allow or deny when no other rules match.
- Ip
Rules []IPRuleResponse - The IP ACL rules.
- Virtual
Network []VirtualRules Network Rule Response - The virtual network rules.
- default
Action string - The default action of allow or deny when no other rules match.
- ip
Rules IPRuleResponse[] - The IP ACL rules.
- virtual
Network VirtualRules Network Rule Response[] - The virtual network rules.
- default_
action str - The default action of allow or deny when no other rules match.
- ip_
rules Sequence[IPRuleResponse Args] - The IP ACL rules.
- virtual_
network_ Sequence[Virtualrules Network Rule Response Args] - The virtual network rules.
Policies
- Quarantine
Policy Pulumi.Azure Next Gen. Container Registry. Inputs. Quarantine Policy Args - The quarantine policy for a container registry.
- Retention
Policy Pulumi.Azure Next Gen. Container Registry. Inputs. Retention Policy Args - The retention policy for a container registry.
- Trust
Policy Pulumi.Azure Next Gen. Container Registry. Inputs. Trust Policy Args - The content trust policy for a container registry.
- Quarantine
Policy QuarantinePolicy - The quarantine policy for a container registry.
- Retention
Policy RetentionPolicy - The retention policy for a container registry.
- Trust
Policy TrustPolicy - The content trust policy for a container registry.
- quarantine
Policy QuarantinePolicy - The quarantine policy for a container registry.
- retention
Policy RetentionPolicy - The retention policy for a container registry.
- trust
Policy TrustPolicy - The content trust policy for a container registry.
- quarantine_
policy QuarantinePolicy Args - The quarantine policy for a container registry.
- retention_
policy RetentionPolicy Args - The retention policy for a container registry.
- trust_
policy TrustPolicy Args - The content trust policy for a container registry.
PoliciesResponse
- Quarantine
Policy Pulumi.Azure Next Gen. Container Registry. Inputs. Quarantine Policy Response Args - The quarantine policy for a container registry.
- Retention
Policy Pulumi.Azure Next Gen. Container Registry. Inputs. Retention Policy Response Args - The retention policy for a container registry.
- Trust
Policy Pulumi.Azure Next Gen. Container Registry. Inputs. Trust Policy Response Args - The content trust policy for a container registry.
- Quarantine
Policy QuarantinePolicy Response - The quarantine policy for a container registry.
- Retention
Policy RetentionPolicy Response - The retention policy for a container registry.
- Trust
Policy TrustPolicy Response - The content trust policy for a container registry.
- quarantine
Policy QuarantinePolicy Response - The quarantine policy for a container registry.
- retention
Policy RetentionPolicy Response - The retention policy for a container registry.
- trust
Policy TrustPolicy Response - The content trust policy for a container registry.
- quarantine_
policy QuarantinePolicy Response Args - The quarantine policy for a container registry.
- retention_
policy RetentionPolicy Response Args - The retention policy for a container registry.
- trust_
policy TrustPolicy Response Args - The content trust policy for a container registry.
PolicyStatus
- Enabled
- enabled
- Disabled
- disabled
- Policy
Status Enabled - enabled
- Policy
Status Disabled - disabled
- Enabled
- enabled
- Disabled
- disabled
- ENABLED
- enabled
- DISABLED
- disabled
QuarantinePolicy
- Status
string | Pulumi.
Azure Next Gen. Container Registry. Policy Status - The value that indicates whether the policy is enabled or not.
- Status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- status
str | Policy
Status - The value that indicates whether the policy is enabled or not.
QuarantinePolicyResponse
- Status string
- The value that indicates whether the policy is enabled or not.
- Status string
- The value that indicates whether the policy is enabled or not.
- status string
- The value that indicates whether the policy is enabled or not.
- status str
- The value that indicates whether the policy is enabled or not.
RetentionPolicy
- Days int
- The number of days to retain an untagged manifest after which it gets purged.
- Status
string | Pulumi.
Azure Next Gen. Container Registry. Policy Status - The value that indicates whether the policy is enabled or not.
- Days int
- The number of days to retain an untagged manifest after which it gets purged.
- Status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- days number
- The number of days to retain an untagged manifest after which it gets purged.
- status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- days int
- The number of days to retain an untagged manifest after which it gets purged.
- status
str | Policy
Status - The value that indicates whether the policy is enabled or not.
RetentionPolicyResponse
- Last
Updated stringTime - The timestamp when the policy was last updated.
- Days int
- The number of days to retain an untagged manifest after which it gets purged.
- Status string
- The value that indicates whether the policy is enabled or not.
- Last
Updated stringTime - The timestamp when the policy was last updated.
- Days int
- The number of days to retain an untagged manifest after which it gets purged.
- Status string
- The value that indicates whether the policy is enabled or not.
- last
Updated stringTime - The timestamp when the policy was last updated.
- days number
- The number of days to retain an untagged manifest after which it gets purged.
- status string
- The value that indicates whether the policy is enabled or not.
- last_
updated_ strtime - The timestamp when the policy was last updated.
- days int
- The number of days to retain an untagged manifest after which it gets purged.
- status str
- The value that indicates whether the policy is enabled or not.
Sku
- Name
string | Pulumi.
Azure Next Gen. Container Registry. Sku Name - The SKU name of the container registry. Required for registry creation.
SkuName
- Classic
- Classic
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Sku
Name Classic - Classic
- Sku
Name Basic - Basic
- Sku
Name Standard - Standard
- Sku
Name Premium - Premium
- Classic
- Classic
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- CLASSIC
- Classic
- BASIC
- Basic
- STANDARD
- Standard
- PREMIUM
- Premium
SkuResponse
StatusResponse
- Display
Status string - The short label for the status.
- Message string
- The detailed message for the status, including alerts and error messages.
- Timestamp string
- The timestamp when the status was changed to the current value.
- Display
Status string - The short label for the status.
- Message string
- The detailed message for the status, including alerts and error messages.
- Timestamp string
- The timestamp when the status was changed to the current value.
- display
Status string - The short label for the status.
- message string
- The detailed message for the status, including alerts and error messages.
- timestamp string
- The timestamp when the status was changed to the current value.
- display_
status str - The short label for the status.
- message str
- The detailed message for the status, including alerts and error messages.
- timestamp str
- The timestamp when the status was changed to the current value.
StorageAccountProperties
- Id string
- The resource ID of the storage account.
- Id string
- The resource ID of the storage account.
- id string
- The resource ID of the storage account.
- id str
- The resource ID of the storage account.
StorageAccountPropertiesResponse
- Id string
- The resource ID of the storage account.
- Id string
- The resource ID of the storage account.
- id string
- The resource ID of the storage account.
- id str
- The resource ID of the storage account.
TrustPolicy
- Status
string | Pulumi.
Azure Next Gen. Container Registry. Policy Status - The value that indicates whether the policy is enabled or not.
- Type
string | Pulumi.
Azure Next Gen. Container Registry. Trust Policy Type - The type of trust policy.
- Status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- Type
string | Trust
Policy Type - The type of trust policy.
- status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- type
string | Trust
Policy Type - The type of trust policy.
- status
str | Policy
Status - The value that indicates whether the policy is enabled or not.
- type
str | Trust
Policy Type - The type of trust policy.
TrustPolicyResponse
TrustPolicyType
- Notary
- Notary
- Trust
Policy Type Notary - Notary
- Notary
- Notary
- NOTARY
- Notary
VirtualNetworkRule
- Virtual
Network stringResource Id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- Action
string | Pulumi.
Azure Next Gen. Container Registry. Action - The action of virtual network rule.
- Virtual
Network stringResource Id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- Action string | Action
- The action of virtual network rule.
- virtual
Network stringResource Id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- action string | Action
- The action of virtual network rule.
- virtual_
network_ strresource_ id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- action str | Action
- The action of virtual network rule.
VirtualNetworkRuleResponse
- Virtual
Network stringResource Id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- Action string
- The action of virtual network rule.
- Virtual
Network stringResource Id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- Action string
- The action of virtual network rule.
- virtual
Network stringResource Id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- action string
- The action of virtual network rule.
- virtual_
network_ strresource_ id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- action str
- The action of virtual network rule.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-nextgen:containerregistry/latest:Registry myRegistry /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure-nextgen
- License
- Apache-2.0