1. Packages
  2. Gcore Provider
  3. API Docs
  4. getCloudInferenceRegistryCredentials
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
gcore logo
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core

    Registry credentials store authentication details for private container registries used by inference deployments.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleCloudInferenceRegistryCredentials = gcore.getCloudInferenceRegistryCredentials({
        projectId: 1,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cloud_inference_registry_credentials = gcore.get_cloud_inference_registry_credentials(project_id=1)
    
    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 {
    		_, err := gcore.GetCloudInferenceRegistryCredentials(ctx, &gcore.GetCloudInferenceRegistryCredentialsArgs{
    			ProjectId: pulumi.Float64Ref(1),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCloudInferenceRegistryCredentials = Gcore.GetCloudInferenceRegistryCredentials.Invoke(new()
        {
            ProjectId = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetCloudInferenceRegistryCredentialsArgs;
    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 exampleCloudInferenceRegistryCredentials = GcoreFunctions.getCloudInferenceRegistryCredentials(GetCloudInferenceRegistryCredentialsArgs.builder()
                .projectId(1)
                .build());
    
        }
    }
    
    variables:
      exampleCloudInferenceRegistryCredentials:
        fn::invoke:
          function: gcore:getCloudInferenceRegistryCredentials
          arguments:
            projectId: 1
    

    Using getCloudInferenceRegistryCredentials

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCloudInferenceRegistryCredentials(args: GetCloudInferenceRegistryCredentialsArgs, opts?: InvokeOptions): Promise<GetCloudInferenceRegistryCredentialsResult>
    function getCloudInferenceRegistryCredentialsOutput(args: GetCloudInferenceRegistryCredentialsOutputArgs, opts?: InvokeOptions): Output<GetCloudInferenceRegistryCredentialsResult>
    def get_cloud_inference_registry_credentials(max_items: Optional[float] = None,
                                                 project_id: Optional[float] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetCloudInferenceRegistryCredentialsResult
    def get_cloud_inference_registry_credentials_output(max_items: Optional[pulumi.Input[float]] = None,
                                                 project_id: Optional[pulumi.Input[float]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetCloudInferenceRegistryCredentialsResult]
    func GetCloudInferenceRegistryCredentials(ctx *Context, args *GetCloudInferenceRegistryCredentialsArgs, opts ...InvokeOption) (*GetCloudInferenceRegistryCredentialsResult, error)
    func GetCloudInferenceRegistryCredentialsOutput(ctx *Context, args *GetCloudInferenceRegistryCredentialsOutputArgs, opts ...InvokeOption) GetCloudInferenceRegistryCredentialsResultOutput

    > Note: This function is named GetCloudInferenceRegistryCredentials in the Go SDK.

    public static class GetCloudInferenceRegistryCredentials 
    {
        public static Task<GetCloudInferenceRegistryCredentialsResult> InvokeAsync(GetCloudInferenceRegistryCredentialsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudInferenceRegistryCredentialsResult> Invoke(GetCloudInferenceRegistryCredentialsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudInferenceRegistryCredentialsResult> getCloudInferenceRegistryCredentials(GetCloudInferenceRegistryCredentialsArgs args, InvokeOptions options)
    public static Output<GetCloudInferenceRegistryCredentialsResult> getCloudInferenceRegistryCredentials(GetCloudInferenceRegistryCredentialsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCloudInferenceRegistryCredentials:getCloudInferenceRegistryCredentials
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MaxItems double
    Max items to fetch, default: 1000
    ProjectId double
    Project ID
    MaxItems float64
    Max items to fetch, default: 1000
    ProjectId float64
    Project ID
    maxItems Double
    Max items to fetch, default: 1000
    projectId Double
    Project ID
    maxItems number
    Max items to fetch, default: 1000
    projectId number
    Project ID
    max_items float
    Max items to fetch, default: 1000
    project_id float
    Project ID
    maxItems Number
    Max items to fetch, default: 1000
    projectId Number
    Project ID

    getCloudInferenceRegistryCredentials Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetCloudInferenceRegistryCredentialsItem>
    The items returned by the data source
    MaxItems double
    Max items to fetch, default: 1000
    ProjectId double
    Project ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetCloudInferenceRegistryCredentialsItem
    The items returned by the data source
    MaxItems float64
    Max items to fetch, default: 1000
    ProjectId float64
    Project ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetCloudInferenceRegistryCredentialsItem>
    The items returned by the data source
    maxItems Double
    Max items to fetch, default: 1000
    projectId Double
    Project ID
    id string
    The provider-assigned unique ID for this managed resource.
    items GetCloudInferenceRegistryCredentialsItem[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    projectId number
    Project ID
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetCloudInferenceRegistryCredentialsItem]
    The items returned by the data source
    max_items float
    Max items to fetch, default: 1000
    project_id float
    Project ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000
    projectId Number
    Project ID

    Supporting Types

    GetCloudInferenceRegistryCredentialsItem

    Id string
    Registry credential name.
    Name string
    Registry credential name.
    ProjectId double
    Project ID to which the inference registry credentials belongs.
    RegistryUrl string
    Registry URL.
    Username string
    Registry username.
    Id string
    Registry credential name.
    Name string
    Registry credential name.
    ProjectId float64
    Project ID to which the inference registry credentials belongs.
    RegistryUrl string
    Registry URL.
    Username string
    Registry username.
    id String
    Registry credential name.
    name String
    Registry credential name.
    projectId Double
    Project ID to which the inference registry credentials belongs.
    registryUrl String
    Registry URL.
    username String
    Registry username.
    id string
    Registry credential name.
    name string
    Registry credential name.
    projectId number
    Project ID to which the inference registry credentials belongs.
    registryUrl string
    Registry URL.
    username string
    Registry username.
    id str
    Registry credential name.
    name str
    Registry credential name.
    project_id float
    Project ID to which the inference registry credentials belongs.
    registry_url str
    Registry URL.
    username str
    Registry username.
    id String
    Registry credential name.
    name String
    Registry credential name.
    projectId Number
    Project ID to which the inference registry credentials belongs.
    registryUrl String
    Registry URL.
    username String
    Registry username.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    Viewing docs for gcore 2.0.0-alpha.2
    published on Tuesday, Mar 24, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.