1. Packages
  2. Aviatrix
  3. API Docs
  4. getAviatrixGatewayImage
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.getAviatrixGatewayImage

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    The aviatrix_gateway_image data source provides the current image version that pairs with the given software version and cloud type.

    This data source is useful for getting the correct image_version for a gateway when upgrading the software_version of the gateway.

    Example Usage

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aviatrix.AviatrixFunctions;
    import com.pulumi.aviatrix.inputs.GetAviatrixGatewayArgs;
    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 foo = AviatrixFunctions.getAviatrixGateway(GetAviatrixGatewayArgs.builder()
                .cloudType(aviatrix_spoke_gateway.spoke().cloud_type())
                .softwareVersion(aviatrix_spoke_gateway.spoke().software_version())
                .build());
    
        }
    }
    

    Coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Aviatrix Gateway Image Data Source
    const foo = pulumi.output(aviatrix.getAviatrixGateway({
        cloudType: 4,
        softwareVersion: "6.4.2487",
    }));
    
    variables:
      foo:
        fn::invoke:
          Function: aviatrix:getAviatrixGateway
          Arguments:
            cloudType: ${aviatrix_spoke_gateway.spoke.cloud_type}
            softwareVersion: ${aviatrix_spoke_gateway.spoke.software_version}
    

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aviatrix.AviatrixFunctions;
    import com.pulumi.aviatrix.inputs.GetAviatrixGatewayArgs;
    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 foo = AviatrixFunctions.getAviatrixGateway(GetAviatrixGatewayArgs.builder()
                .cloudType(4)
                .softwareVersion("6.4.2487")
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    variables:
      foo:
        fn::invoke:
          Function: aviatrix:getAviatrixGateway
          Arguments:
            cloudType: 4
            softwareVersion: 6.4.2487
    

    Using getAviatrixGatewayImage

    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 getAviatrixGatewayImage(args: GetAviatrixGatewayImageArgs, opts?: InvokeOptions): Promise<GetAviatrixGatewayImageResult>
    function getAviatrixGatewayImageOutput(args: GetAviatrixGatewayImageOutputArgs, opts?: InvokeOptions): Output<GetAviatrixGatewayImageResult>
    def get_aviatrix_gateway_image(cloud_type: Optional[int] = None,
                                   software_version: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAviatrixGatewayImageResult
    def get_aviatrix_gateway_image_output(cloud_type: Optional[pulumi.Input[int]] = None,
                                   software_version: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAviatrixGatewayImageResult]
    func GetAviatrixGatewayImage(ctx *Context, args *GetAviatrixGatewayImageArgs, opts ...InvokeOption) (*GetAviatrixGatewayImageResult, error)
    func GetAviatrixGatewayImageOutput(ctx *Context, args *GetAviatrixGatewayImageOutputArgs, opts ...InvokeOption) GetAviatrixGatewayImageResultOutput

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

    public static class GetAviatrixGatewayImage 
    {
        public static Task<GetAviatrixGatewayImageResult> InvokeAsync(GetAviatrixGatewayImageArgs args, InvokeOptions? opts = null)
        public static Output<GetAviatrixGatewayImageResult> Invoke(GetAviatrixGatewayImageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAviatrixGatewayImageResult> getAviatrixGatewayImage(GetAviatrixGatewayImageArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aviatrix:index/getAviatrixGatewayImage:getAviatrixGatewayImage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudType int
    Cloud type. Type: Integer. Example: 1 (AWS)
    SoftwareVersion string
    Software version. Type: String. Example: "6.4.2487"
    CloudType int
    Cloud type. Type: Integer. Example: 1 (AWS)
    SoftwareVersion string
    Software version. Type: String. Example: "6.4.2487"
    cloudType Integer
    Cloud type. Type: Integer. Example: 1 (AWS)
    softwareVersion String
    Software version. Type: String. Example: "6.4.2487"
    cloudType number
    Cloud type. Type: Integer. Example: 1 (AWS)
    softwareVersion string
    Software version. Type: String. Example: "6.4.2487"
    cloud_type int
    Cloud type. Type: Integer. Example: 1 (AWS)
    software_version str
    Software version. Type: String. Example: "6.4.2487"
    cloudType Number
    Cloud type. Type: Integer. Example: 1 (AWS)
    softwareVersion String
    Software version. Type: String. Example: "6.4.2487"

    getAviatrixGatewayImage Result

    The following output properties are available:

    CloudType int
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageVersion string
    Image version that is compatible with the given cloud_type and software_version.
    SoftwareVersion string
    CloudType int
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageVersion string
    Image version that is compatible with the given cloud_type and software_version.
    SoftwareVersion string
    cloudType Integer
    id String
    The provider-assigned unique ID for this managed resource.
    imageVersion String
    Image version that is compatible with the given cloud_type and software_version.
    softwareVersion String
    cloudType number
    id string
    The provider-assigned unique ID for this managed resource.
    imageVersion string
    Image version that is compatible with the given cloud_type and software_version.
    softwareVersion string
    cloud_type int
    id str
    The provider-assigned unique ID for this managed resource.
    image_version str
    Image version that is compatible with the given cloud_type and software_version.
    software_version str
    cloudType Number
    id String
    The provider-assigned unique ID for this managed resource.
    imageVersion String
    Image version that is compatible with the given cloud_type and software_version.
    softwareVersion String

    Package Details

    Repository
    aviatrix astipkovits/pulumi-aviatrix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aviatrix Terraform Provider.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix