published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
Registry credentials store authentication details for private container registries used by inference deployments.
Example Usage
Docker Hub registry credential
Create a container registry credential for pulling private images from Docker Hub.
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
// Create a container registry credential for private image pulls
const example = new gcore.CloudInferenceRegistryCredential("example", {
projectId: 1,
name: "docker-io",
username: "my-username",
passwordWo: "my-password",
passwordWoVersion: 1,
registryUrl: "docker.io",
});
import pulumi
import pulumi_gcore as gcore
# Create a container registry credential for private image pulls
example = gcore.CloudInferenceRegistryCredential("example",
project_id=1,
name="docker-io",
username="my-username",
password_wo="my-password",
password_wo_version=1,
registry_url="docker.io")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a container registry credential for private image pulls
_, err := gcore.NewCloudInferenceRegistryCredential(ctx, "example", &gcore.CloudInferenceRegistryCredentialArgs{
ProjectId: pulumi.Float64(1),
Name: pulumi.String("docker-io"),
Username: pulumi.String("my-username"),
PasswordWo: pulumi.String("my-password"),
PasswordWoVersion: pulumi.Float64(1),
RegistryUrl: pulumi.String("docker.io"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
// Create a container registry credential for private image pulls
var example = new Gcore.CloudInferenceRegistryCredential("example", new()
{
ProjectId = 1,
Name = "docker-io",
Username = "my-username",
PasswordWo = "my-password",
PasswordWoVersion = 1,
RegistryUrl = "docker.io",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CloudInferenceRegistryCredential;
import com.pulumi.gcore.CloudInferenceRegistryCredentialArgs;
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) {
// Create a container registry credential for private image pulls
var example = new CloudInferenceRegistryCredential("example", CloudInferenceRegistryCredentialArgs.builder()
.projectId(1.0)
.name("docker-io")
.username("my-username")
.passwordWo("my-password")
.passwordWoVersion(1.0)
.registryUrl("docker.io")
.build());
}
}
resources:
# Create a container registry credential for private image pulls
example:
type: gcore:CloudInferenceRegistryCredential
properties:
projectId: 1
name: docker-io
username: my-username
passwordWo: my-password
passwordWoVersion: 1
registryUrl: docker.io
Create CloudInferenceRegistryCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudInferenceRegistryCredential(name: string, args: CloudInferenceRegistryCredentialArgs, opts?: CustomResourceOptions);@overload
def CloudInferenceRegistryCredential(resource_name: str,
args: CloudInferenceRegistryCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudInferenceRegistryCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[float] = None,
registry_url: Optional[str] = None,
username: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None)func NewCloudInferenceRegistryCredential(ctx *Context, name string, args CloudInferenceRegistryCredentialArgs, opts ...ResourceOption) (*CloudInferenceRegistryCredential, error)public CloudInferenceRegistryCredential(string name, CloudInferenceRegistryCredentialArgs args, CustomResourceOptions? opts = null)
public CloudInferenceRegistryCredential(String name, CloudInferenceRegistryCredentialArgs args)
public CloudInferenceRegistryCredential(String name, CloudInferenceRegistryCredentialArgs args, CustomResourceOptions options)
type: gcore:CloudInferenceRegistryCredential
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 CloudInferenceRegistryCredentialArgs
- 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 CloudInferenceRegistryCredentialArgs
- 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 CloudInferenceRegistryCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudInferenceRegistryCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudInferenceRegistryCredentialArgs
- 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 cloudInferenceRegistryCredentialResource = new Gcore.Index.CloudInferenceRegistryCredential("cloudInferenceRegistryCredentialResource", new()
{
PasswordWo = "string",
PasswordWoVersion = 0,
RegistryUrl = "string",
Username = "string",
Name = "string",
ProjectId = 0,
});
example, err := gcore.NewCloudInferenceRegistryCredential(ctx, "cloudInferenceRegistryCredentialResource", &gcore.CloudInferenceRegistryCredentialArgs{
PasswordWo: pulumi.String("string"),
PasswordWoVersion: pulumi.Float64(0),
RegistryUrl: pulumi.String("string"),
Username: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
})
var cloudInferenceRegistryCredentialResource = new CloudInferenceRegistryCredential("cloudInferenceRegistryCredentialResource", CloudInferenceRegistryCredentialArgs.builder()
.passwordWo("string")
.passwordWoVersion(0.0)
.registryUrl("string")
.username("string")
.name("string")
.projectId(0.0)
.build());
cloud_inference_registry_credential_resource = gcore.CloudInferenceRegistryCredential("cloudInferenceRegistryCredentialResource",
password_wo="string",
password_wo_version=0,
registry_url="string",
username="string",
name="string",
project_id=0)
const cloudInferenceRegistryCredentialResource = new gcore.CloudInferenceRegistryCredential("cloudInferenceRegistryCredentialResource", {
passwordWo: "string",
passwordWoVersion: 0,
registryUrl: "string",
username: "string",
name: "string",
projectId: 0,
});
type: gcore:CloudInferenceRegistryCredential
properties:
name: string
passwordWo: string
passwordWoVersion: 0
projectId: 0
registryUrl: string
username: string
CloudInferenceRegistryCredential 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 CloudInferenceRegistryCredential resource accepts the following input properties:
- Password
Wo string - Registry password.
- Password
Wo doubleVersion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- Registry
Url string - Registry URL.
- Username string
- Registry username.
- Name string
- Registry credential name.
- Project
Id double - Project ID
- Password
Wo string - Registry password.
- Password
Wo float64Version - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- Registry
Url string - Registry URL.
- Username string
- Registry username.
- Name string
- Registry credential name.
- Project
Id float64 - Project ID
- password
Wo String - Registry password.
- password
Wo DoubleVersion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- registry
Url String - Registry URL.
- username String
- Registry username.
- name String
- Registry credential name.
- project
Id Double - Project ID
- password
Wo string - Registry password.
- password
Wo numberVersion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- registry
Url string - Registry URL.
- username string
- Registry username.
- name string
- Registry credential name.
- project
Id number - Project ID
- password_
wo str - Registry password.
- password_
wo_ floatversion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- registry_
url str - Registry URL.
- username str
- Registry username.
- name str
- Registry credential name.
- project_
id float - Project ID
- password
Wo String - Registry password.
- password
Wo NumberVersion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- registry
Url String - Registry URL.
- username String
- Registry username.
- name String
- Registry credential name.
- project
Id Number - Project ID
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudInferenceRegistryCredential resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CloudInferenceRegistryCredential Resource
Get an existing CloudInferenceRegistryCredential 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?: CloudInferenceRegistryCredentialState, opts?: CustomResourceOptions): CloudInferenceRegistryCredential@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[float] = None,
project_id: Optional[float] = None,
registry_url: Optional[str] = None,
username: Optional[str] = None) -> CloudInferenceRegistryCredentialfunc GetCloudInferenceRegistryCredential(ctx *Context, name string, id IDInput, state *CloudInferenceRegistryCredentialState, opts ...ResourceOption) (*CloudInferenceRegistryCredential, error)public static CloudInferenceRegistryCredential Get(string name, Input<string> id, CloudInferenceRegistryCredentialState? state, CustomResourceOptions? opts = null)public static CloudInferenceRegistryCredential get(String name, Output<String> id, CloudInferenceRegistryCredentialState state, CustomResourceOptions options)resources: _: type: gcore:CloudInferenceRegistryCredential 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.
- Name string
- Registry credential name.
- Password
Wo string - Registry password.
- Password
Wo doubleVersion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- Project
Id double - Project ID
- Registry
Url string - Registry URL.
- Username string
- Registry username.
- Name string
- Registry credential name.
- Password
Wo string - Registry password.
- Password
Wo float64Version - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- Project
Id float64 - Project ID
- Registry
Url string - Registry URL.
- Username string
- Registry username.
- name String
- Registry credential name.
- password
Wo String - Registry password.
- password
Wo DoubleVersion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- project
Id Double - Project ID
- registry
Url String - Registry URL.
- username String
- Registry username.
- name string
- Registry credential name.
- password
Wo string - Registry password.
- password
Wo numberVersion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- project
Id number - Project ID
- registry
Url string - Registry URL.
- username string
- Registry username.
- name str
- Registry credential name.
- password_
wo str - Registry password.
- password_
wo_ floatversion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- project_
id float - Project ID
- registry_
url str - Registry URL.
- username str
- Registry username.
- name String
- Registry credential name.
- password
Wo String - Registry password.
- password
Wo NumberVersion - Registry credential password write-only version. Used to trigger updates of the write-only password field.
- project
Id Number - Project ID
- registry
Url String - Registry URL.
- username String
- Registry username.
Import
$ pulumi import gcore:index/cloudInferenceRegistryCredential:CloudInferenceRegistryCredential example '<project_id>/<credential_name>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Monday, Mar 30, 2026 by g-core
