aviatrix.getAviatrixGatewayImage
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Cloud
Type int - Cloud type. Type: Integer. Example: 1 (AWS)
 - Software
Version string - Software version. Type: String. Example: "6.4.2487"
 
- Cloud
Type int - Cloud type. Type: Integer. Example: 1 (AWS)
 - Software
Version string - Software version. Type: String. Example: "6.4.2487"
 
- cloud
Type Integer - Cloud type. Type: Integer. Example: 1 (AWS)
 - software
Version String - Software version. Type: String. Example: "6.4.2487"
 
- cloud
Type number - Cloud type. Type: Integer. Example: 1 (AWS)
 - software
Version 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"
 
- cloud
Type Number - Cloud type. Type: Integer. Example: 1 (AWS)
 - software
Version String - Software version. Type: String. Example: "6.4.2487"
 
getAviatrixGatewayImage Result
The following output properties are available:
- Cloud
Type int - Id string
 - The provider-assigned unique ID for this managed resource.
 - Image
Version string - Image version that is compatible with the given cloud_type and software_version.
 - Software
Version string 
- Cloud
Type int - Id string
 - The provider-assigned unique ID for this managed resource.
 - Image
Version string - Image version that is compatible with the given cloud_type and software_version.
 - Software
Version string 
- cloud
Type Integer - id String
 - The provider-assigned unique ID for this managed resource.
 - image
Version String - Image version that is compatible with the given cloud_type and software_version.
 - software
Version String 
- cloud
Type number - id string
 - The provider-assigned unique ID for this managed resource.
 - image
Version string - Image version that is compatible with the given cloud_type and software_version.
 - software
Version 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 
- cloud
Type Number - id String
 - The provider-assigned unique ID for this managed resource.
 - image
Version String - Image version that is compatible with the given cloud_type and software_version.
 - software
Version String 
Package Details
- Repository
 - aviatrix astipkovits/pulumi-aviatrix
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
aviatrixTerraform Provider.