1. Packages
  2. Ionoscloud
  3. API Docs
  4. creg
  5. getRegistryLocations
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

ionoscloud.creg.getRegistryLocations

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

    The Container Registry Locations data source can be used to get a list of Container Registry Locations

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.creg.getRegistryLocations({});
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.creg.get_registry_locations()
    
    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.GetRegistryLocations(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Creg.GetRegistryLocations.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.creg.CregFunctions;
    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 example = CregFunctions.getRegistryLocations();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:creg:getRegistryLocations
          arguments: {}
    

    Using getRegistryLocations

    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 getRegistryLocations(opts?: InvokeOptions): Promise<GetRegistryLocationsResult>
    function getRegistryLocationsOutput(opts?: InvokeOptions): Output<GetRegistryLocationsResult>
    def get_registry_locations(opts: Optional[InvokeOptions] = None) -> GetRegistryLocationsResult
    def get_registry_locations_output(opts: Optional[InvokeOptions] = None) -> Output[GetRegistryLocationsResult]
    func GetRegistryLocations(ctx *Context, opts ...InvokeOption) (*GetRegistryLocationsResult, error)
    func GetRegistryLocationsOutput(ctx *Context, opts ...InvokeOption) GetRegistryLocationsResultOutput

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

    public static class GetRegistryLocations 
    {
        public static Task<GetRegistryLocationsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetRegistryLocationsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegistryLocationsResult> getRegistryLocations(InvokeOptions options)
    public static Output<GetRegistryLocationsResult> getRegistryLocations(InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:creg/getRegistryLocations:getRegistryLocations
      arguments:
        # arguments dictionary

    getRegistryLocations Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Locations List<string>
    list of container registry locations
    Id string
    The provider-assigned unique ID for this managed resource.
    Locations []string
    list of container registry locations
    id String
    The provider-assigned unique ID for this managed resource.
    locations List<String>
    list of container registry locations
    id string
    The provider-assigned unique ID for this managed resource.
    locations string[]
    list of container registry locations
    id str
    The provider-assigned unique ID for this managed resource.
    locations Sequence[str]
    list of container registry locations
    id String
    The provider-assigned unique ID for this managed resource.
    locations List<String>
    list of container registry locations

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud