edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center
edgecenter.getResellerImagesV2
Explore with Pulumi AI
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:
- Entity
Id double - The ID of the entity.
- Entity
Type string - The entity type. Available values are 'reseller', 'client', 'project'.
- Id string
- The ID of this resource.
- Entity
Id float64 - The ID of the entity.
- Entity
Type string - The entity type. Available values are 'reseller', 'client', 'project'.
- Id string
- The ID of this resource.
- entity
Id Double - The ID of the entity.
- entity
Type String - The entity type. Available values are 'reseller', 'client', 'project'.
- id String
- The ID of this resource.
- entity
Id number - The ID of the entity.
- entity
Type 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.
- entity
Id Number - The ID of the entity.
- entity
Type 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:
- Entity
Id double - The ID of the entity.
- Entity
Type string - The entity type. Available values are 'reseller', 'client', 'project'.
- Id string
- The ID of this resource.
- Options
List<Get
Reseller Images V2Option> - This set defines image IDs that can be attached to the instances of the reseller.
- Entity
Id float64 - The ID of the entity.
- Entity
Type string - The entity type. Available values are 'reseller', 'client', 'project'.
- Id string
- The ID of this resource.
- Options
[]Get
Reseller Images V2Option - This set defines image IDs that can be attached to the instances of the reseller.
- entity
Id Double - The ID of the entity.
- entity
Type String - The entity type. Available values are 'reseller', 'client', 'project'.
- id String
- The ID of this resource.
- options
List<Get
Reseller Images V2Option> - This set defines image IDs that can be attached to the instances of the reseller.
- entity
Id number - The ID of the entity.
- entity
Type string - The entity type. Available values are 'reseller', 'client', 'project'.
- id string
- The ID of this resource.
- options
Get
Reseller Images V2Option[] - 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[Get
Reseller Images V2Option] - This set defines image IDs that can be attached to the instances of the reseller.
- entity
Id Number - The ID of the entity.
- entity
Type 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
- 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.
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center