1. Packages
  2. Juniper Mist
  3. API Docs
  4. getConstCountries
Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi

junipermist.getConstCountries

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi

    This data source provides the of ConstCountries. This information can be used to define the Country in the RF templates (junipermist.org.Rftemplate)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const listOfCountries = junipermist.getConstCountries({});
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    list_of_countries = junipermist.get_const_countries()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := junipermist.GetConstCountries(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using JuniperMist = Pulumi.JuniperMist;
    
    return await Deployment.RunAsync(() => 
    {
        var listOfCountries = JuniperMist.GetConstCountries.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.JunipermistFunctions;
    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 listOfCountries = JunipermistFunctions.getConstCountries();
    
        }
    }
    
    variables:
      listOfCountries:
        fn::invoke:
          Function: junipermist:getConstCountries
          Arguments: {}
    

    Using getConstCountries

    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 getConstCountries(opts?: InvokeOptions): Promise<GetConstCountriesResult>
    function getConstCountriesOutput(opts?: InvokeOptions): Output<GetConstCountriesResult>
    def get_const_countries(opts: Optional[InvokeOptions] = None) -> GetConstCountriesResult
    def get_const_countries_output(opts: Optional[InvokeOptions] = None) -> Output[GetConstCountriesResult]
    func GetConstCountries(ctx *Context, opts ...InvokeOption) (*GetConstCountriesResult, error)
    func GetConstCountriesOutput(ctx *Context, opts ...InvokeOption) GetConstCountriesResultOutput

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

    public static class GetConstCountries 
    {
        public static Task<GetConstCountriesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetConstCountriesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConstCountriesResult> getConstCountries(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: junipermist:index/getConstCountries:getConstCountries
      arguments:
        # arguments dictionary

    getConstCountries Result

    The following output properties are available:

    ConstCountries List<Pulumi.JuniperMist.Outputs.GetConstCountriesConstCountry>
    Id string
    The provider-assigned unique ID for this managed resource.
    ConstCountries []GetConstCountriesConstCountry
    Id string
    The provider-assigned unique ID for this managed resource.
    constCountries List<GetConstCountriesConstCountry>
    id String
    The provider-assigned unique ID for this managed resource.
    constCountries GetConstCountriesConstCountry[]
    id string
    The provider-assigned unique ID for this managed resource.
    const_countries Sequence[GetConstCountriesConstCountry]
    id str
    The provider-assigned unique ID for this managed resource.
    constCountries List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetConstCountriesConstCountry

    Alpha2 string
    country code, in two-character
    Certified bool
    Name string
    Numeric double
    country code, ISO 3166-1 numeric
    Alpha2 string
    country code, in two-character
    Certified bool
    Name string
    Numeric float64
    country code, ISO 3166-1 numeric
    alpha2 String
    country code, in two-character
    certified Boolean
    name String
    numeric Double
    country code, ISO 3166-1 numeric
    alpha2 string
    country code, in two-character
    certified boolean
    name string
    numeric number
    country code, ISO 3166-1 numeric
    alpha2 str
    country code, in two-character
    certified bool
    name str
    numeric float
    country code, ISO 3166-1 numeric
    alpha2 String
    country code, in two-character
    certified Boolean
    name String
    numeric Number
    country code, ISO 3166-1 numeric

    Package Details

    Repository
    junipermist pulumi/pulumi-junipermist
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mist Terraform Provider.
    junipermist logo
    Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi