edgecenter.getResellerImages
Explore with Pulumi AI
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:
- Reseller
Id double - The ID of the reseller.
- Id string
- The ID of this resource.
- Reseller
Id float64 - The ID of the reseller.
- Id string
- The ID of this resource.
- reseller
Id Double - The ID of the reseller.
- id String
- The ID of this resource.
- reseller
Id 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.
- reseller
Id 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<Get
Reseller Images Option> - This set defines image IDs that can be attached to the instances of the reseller.
- Reseller
Id double - The ID of the reseller.
- Id string
- The ID of this resource.
- Options
[]Get
Reseller Images Option - This set defines image IDs that can be attached to the instances of the reseller.
- Reseller
Id float64 - The ID of the reseller.
- id String
- The ID of this resource.
- options
List<Get
Reseller Images Option> - This set defines image IDs that can be attached to the instances of the reseller.
- reseller
Id Double - The ID of the reseller.
- id string
- The ID of this resource.
- options
Get
Reseller Images Option[] - This set defines image IDs that can be attached to the instances of the reseller.
- reseller
Id number - The ID of the reseller.
- id str
- The ID of this resource.
- options
Sequence[Get
Reseller Images Option] - 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.
- reseller
Id Number - The ID of the reseller.
Supporting Types
GetResellerImagesOption
- created_
at str - image_
ids Sequence[str] - region_
id float - updated_
at str
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenter
Terraform Provider.