1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getResellerImages
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.getResellerImages

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    WARNING: Data source “edgecenter.ResellerImages” is deprecated.

    Use “edgecenter_reseller_imagesV2” data source instead.

    This data source has been created for resellers and only works with the reseller API key.

    Reseller and cloud admin can change the set of images, available to reseller clients.

    Firstly, they may limit the number of public images available. Secondly, they can share the image of the reseller client to all clients of the reseller.

    If the reseller has image_ids = [] or hasn’t image_ids field in config, all public images are unavailable to the client.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const rimgs = edgecenter.getResellerImages({
        resellerId: 123456,
    });
    export const view = rimgs;
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    rimgs = edgecenter.get_reseller_images(reseller_id=123456)
    pulumi.export("view", rimgs)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		rimgs, err := edgecenter.LookupResellerImages(ctx, &edgecenter.LookupResellerImagesArgs{
    			ResellerId: 123456,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("view", rimgs)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var rimgs = Edgecenter.GetResellerImages.Invoke(new()
        {
            ResellerId = 123456,
        });
    
        return new Dictionary<string, object?>
        {
            ["view"] = rimgs,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetResellerImagesArgs;
    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 rimgs = EdgecenterFunctions.getResellerImages(GetResellerImagesArgs.builder()
                .resellerId(123456)
                .build());
    
            ctx.export("view", rimgs.applyValue(getResellerImagesResult -> getResellerImagesResult));
        }
    }
    
    variables:
      rimgs:
        fn::invoke:
          function: edgecenter:getResellerImages
          arguments:
            resellerId: 123456
    outputs:
      view: ${rimgs}
    

    Using getResellerImages

    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 getResellerImages(args: GetResellerImagesArgs, opts?: InvokeOptions): Promise<GetResellerImagesResult>
    function getResellerImagesOutput(args: GetResellerImagesOutputArgs, opts?: InvokeOptions): Output<GetResellerImagesResult>
    def get_reseller_images(id: Optional[str] = None,
                            reseller_id: Optional[float] = None,
                            opts: Optional[InvokeOptions] = None) -> GetResellerImagesResult
    def get_reseller_images_output(id: Optional[pulumi.Input[str]] = None,
                            reseller_id: Optional[pulumi.Input[float]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetResellerImagesResult]
    func LookupResellerImages(ctx *Context, args *LookupResellerImagesArgs, opts ...InvokeOption) (*LookupResellerImagesResult, error)
    func LookupResellerImagesOutput(ctx *Context, args *LookupResellerImagesOutputArgs, opts ...InvokeOption) LookupResellerImagesResultOutput

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

    public static class GetResellerImages 
    {
        public static Task<GetResellerImagesResult> InvokeAsync(GetResellerImagesArgs args, InvokeOptions? opts = null)
        public static Output<GetResellerImagesResult> Invoke(GetResellerImagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResellerImagesResult> getResellerImages(GetResellerImagesArgs args, InvokeOptions options)
    public static Output<GetResellerImagesResult> getResellerImages(GetResellerImagesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getResellerImages:getResellerImages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResellerId double
    The ID of the reseller.
    Id string
    The ID of this resource.
    ResellerId float64
    The ID of the reseller.
    Id string
    The ID of this resource.
    resellerId Double
    The ID of the reseller.
    id String
    The ID of this resource.
    resellerId number
    The ID of the reseller.
    id string
    The ID of this resource.
    reseller_id float
    The ID of the reseller.
    id str
    The ID of this resource.
    resellerId Number
    The ID of the reseller.
    id String
    The ID of this resource.

    getResellerImages Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Options List<GetResellerImagesOption>
    This set defines image IDs that can be attached to the instances of the reseller.
    ResellerId double
    The ID of the reseller.
    Id string
    The ID of this resource.
    Options []GetResellerImagesOption
    This set defines image IDs that can be attached to the instances of the reseller.
    ResellerId float64
    The ID of the reseller.
    id String
    The ID of this resource.
    options List<GetResellerImagesOption>
    This set defines image IDs that can be attached to the instances of the reseller.
    resellerId Double
    The ID of the reseller.
    id string
    The ID of this resource.
    options GetResellerImagesOption[]
    This set defines image IDs that can be attached to the instances of the reseller.
    resellerId number
    The ID of the reseller.
    id str
    The ID of this resource.
    options Sequence[GetResellerImagesOption]
    This set defines image IDs that can be attached to the instances of the reseller.
    reseller_id float
    The ID of the reseller.
    id String
    The ID of this resource.
    options List<Property Map>
    This set defines image IDs that can be attached to the instances of the reseller.
    resellerId Number
    The ID of the reseller.

    Supporting Types

    GetResellerImagesOption

    CreatedAt string
    ImageIds List<string>
    RegionId double
    UpdatedAt string
    CreatedAt string
    ImageIds []string
    RegionId float64
    UpdatedAt string
    createdAt String
    imageIds List<String>
    regionId Double
    updatedAt String
    createdAt string
    imageIds string[]
    regionId number
    updatedAt string
    created_at str
    image_ids Sequence[str]
    region_id float
    updated_at str
    createdAt String
    imageIds List<String>
    regionId Number
    updatedAt String

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center