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

edgecenter.getResellerImagesV2

Explore with Pulumi AI

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

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

    Returns the list of public images currently available for the given project, client, or all clients of a reseller. If image_ids = None, all public images are available. If image_ids = [], no public images are available

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const rimgs = edgecenter.getResellerImagesV2({
        entityId: 123456,
        entityType: "reseller",
    });
    export const view = rimgs;
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    rimgs = edgecenter.get_reseller_images_v2(entity_id=123456,
        entity_type="reseller")
    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.LookupResellerImagesV2(ctx, &edgecenter.LookupResellerImagesV2Args{
    			EntityId:   123456,
    			EntityType: "reseller",
    		}, 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.GetResellerImagesV2.Invoke(new()
        {
            EntityId = 123456,
            EntityType = "reseller",
        });
    
        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.GetResellerImagesV2Args;
    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.getResellerImagesV2(GetResellerImagesV2Args.builder()
                .entityId(123456)
                .entityType("reseller")
                .build());
    
            ctx.export("view", rimgs.applyValue(getResellerImagesV2Result -> getResellerImagesV2Result));
        }
    }
    
    variables:
      rimgs:
        fn::invoke:
          function: edgecenter:getResellerImagesV2
          arguments:
            entityId: 123456
            entityType: reseller
    outputs:
      view: ${rimgs}
    

    Using getResellerImagesV2

    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 getResellerImagesV2(args: GetResellerImagesV2Args, opts?: InvokeOptions): Promise<GetResellerImagesV2Result>
    function getResellerImagesV2Output(args: GetResellerImagesV2OutputArgs, opts?: InvokeOptions): Output<GetResellerImagesV2Result>
    def get_reseller_images_v2(entity_id: Optional[float] = None,
                               entity_type: Optional[str] = None,
                               id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetResellerImagesV2Result
    def get_reseller_images_v2_output(entity_id: Optional[pulumi.Input[float]] = None,
                               entity_type: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetResellerImagesV2Result]
    func LookupResellerImagesV2(ctx *Context, args *LookupResellerImagesV2Args, opts ...InvokeOption) (*LookupResellerImagesV2Result, error)
    func LookupResellerImagesV2Output(ctx *Context, args *LookupResellerImagesV2OutputArgs, opts ...InvokeOption) LookupResellerImagesV2ResultOutput

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

    public static class GetResellerImagesV2 
    {
        public static Task<GetResellerImagesV2Result> InvokeAsync(GetResellerImagesV2Args args, InvokeOptions? opts = null)
        public static Output<GetResellerImagesV2Result> Invoke(GetResellerImagesV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResellerImagesV2Result> getResellerImagesV2(GetResellerImagesV2Args args, InvokeOptions options)
    public static Output<GetResellerImagesV2Result> getResellerImagesV2(GetResellerImagesV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getResellerImagesV2:getResellerImagesV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EntityId double
    The ID of the entity.
    EntityType string
    The entity type. Available values are 'reseller', 'client', 'project'.
    Id string
    The ID of this resource.
    EntityId float64
    The ID of the entity.
    EntityType string
    The entity type. Available values are 'reseller', 'client', 'project'.
    Id string
    The ID of this resource.
    entityId Double
    The ID of the entity.
    entityType String
    The entity type. Available values are 'reseller', 'client', 'project'.
    id String
    The ID of this resource.
    entityId number
    The ID of the entity.
    entityType string
    The entity type. Available values are 'reseller', 'client', 'project'.
    id string
    The ID of this resource.
    entity_id float
    The ID of the entity.
    entity_type str
    The entity type. Available values are 'reseller', 'client', 'project'.
    id str
    The ID of this resource.
    entityId Number
    The ID of the entity.
    entityType String
    The entity type. Available values are 'reseller', 'client', 'project'.
    id String
    The ID of this resource.

    getResellerImagesV2 Result

    The following output properties are available:

    EntityId double
    The ID of the entity.
    EntityType string
    The entity type. Available values are 'reseller', 'client', 'project'.
    Id string
    The ID of this resource.
    Options List<GetResellerImagesV2Option>
    This set defines image IDs that can be attached to the instances of the reseller.
    EntityId float64
    The ID of the entity.
    EntityType string
    The entity type. Available values are 'reseller', 'client', 'project'.
    Id string
    The ID of this resource.
    Options []GetResellerImagesV2Option
    This set defines image IDs that can be attached to the instances of the reseller.
    entityId Double
    The ID of the entity.
    entityType String
    The entity type. Available values are 'reseller', 'client', 'project'.
    id String
    The ID of this resource.
    options List<GetResellerImagesV2Option>
    This set defines image IDs that can be attached to the instances of the reseller.
    entityId number
    The ID of the entity.
    entityType string
    The entity type. Available values are 'reseller', 'client', 'project'.
    id string
    The ID of this resource.
    options GetResellerImagesV2Option[]
    This set defines image IDs that can be attached to the instances of the reseller.
    entity_id float
    The ID of the entity.
    entity_type str
    The entity type. Available values are 'reseller', 'client', 'project'.
    id str
    The ID of this resource.
    options Sequence[GetResellerImagesV2Option]
    This set defines image IDs that can be attached to the instances of the reseller.
    entityId Number
    The ID of the entity.
    entityType String
    The entity type. Available values are 'reseller', 'client', 'project'.
    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.

    Supporting Types

    GetResellerImagesV2Option

    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