1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. ResellerImages
edgecenter 0.7.34 published on Monday, Apr 14, 2025 by edge-center

edgecenter.ResellerImages

Explore with Pulumi AI

!!! This resource 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 = new edgecenter.ResellerImages("rimgs", {
    options: [
        {
            imageIds: [
                "b5b4d65d-945f-4b98-ab6f-332319c724ef",
                "0052a312-e6d8-4177-8e29-b017a3a6b588",
            ],
            regionId: 123,
        },
        {
            imageIds: [],
            regionId: 456,
        },
    ],
    resellerId: 123456,
});
Copy
import pulumi
import pulumi_edgecenter as edgecenter

rimgs = edgecenter.ResellerImages("rimgs",
    options=[
        {
            "image_ids": [
                "b5b4d65d-945f-4b98-ab6f-332319c724ef",
                "0052a312-e6d8-4177-8e29-b017a3a6b588",
            ],
            "region_id": 123,
        },
        {
            "image_ids": [],
            "region_id": 456,
        },
    ],
    reseller_id=123456)
Copy
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 {
		_, err := edgecenter.NewResellerImages(ctx, "rimgs", &edgecenter.ResellerImagesArgs{
			Options: edgecenter.ResellerImagesOptionArray{
				&edgecenter.ResellerImagesOptionArgs{
					ImageIds: pulumi.StringArray{
						pulumi.String("b5b4d65d-945f-4b98-ab6f-332319c724ef"),
						pulumi.String("0052a312-e6d8-4177-8e29-b017a3a6b588"),
					},
					RegionId: pulumi.Float64(123),
				},
				&edgecenter.ResellerImagesOptionArgs{
					ImageIds: pulumi.StringArray{},
					RegionId: pulumi.Float64(456),
				},
			},
			ResellerId: pulumi.Float64(123456),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;

return await Deployment.RunAsync(() => 
{
    var rimgs = new Edgecenter.ResellerImages("rimgs", new()
    {
        Options = new[]
        {
            new Edgecenter.Inputs.ResellerImagesOptionArgs
            {
                ImageIds = new[]
                {
                    "b5b4d65d-945f-4b98-ab6f-332319c724ef",
                    "0052a312-e6d8-4177-8e29-b017a3a6b588",
                },
                RegionId = 123,
            },
            new Edgecenter.Inputs.ResellerImagesOptionArgs
            {
                ImageIds = new() { },
                RegionId = 456,
            },
        },
        ResellerId = 123456,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.ResellerImages;
import com.pulumi.edgecenter.ResellerImagesArgs;
import com.pulumi.edgecenter.inputs.ResellerImagesOptionArgs;
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) {
        var rimgs = new ResellerImages("rimgs", ResellerImagesArgs.builder()
            .options(            
                ResellerImagesOptionArgs.builder()
                    .imageIds(                    
                        "b5b4d65d-945f-4b98-ab6f-332319c724ef",
                        "0052a312-e6d8-4177-8e29-b017a3a6b588")
                    .regionId(123)
                    .build(),
                ResellerImagesOptionArgs.builder()
                    .imageIds()
                    .regionId(456)
                    .build())
            .resellerId(123456)
            .build());

    }
}
Copy
resources:
  rimgs:
    type: edgecenter:ResellerImages
    properties:
      options:
        - imageIds:
            - b5b4d65d-945f-4b98-ab6f-332319c724ef
            - 0052a312-e6d8-4177-8e29-b017a3a6b588
          regionId: 123
        - imageIds: []
          regionId: 456
      resellerId: 123456
Copy

Create ResellerImages Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ResellerImages(name: string, args: ResellerImagesArgs, opts?: CustomResourceOptions);
@overload
def ResellerImages(resource_name: str,
                   args: ResellerImagesArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def ResellerImages(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   options: Optional[Sequence[ResellerImagesOptionArgs]] = None,
                   reseller_id: Optional[float] = None,
                   reseller_images_id: Optional[str] = None)
func NewResellerImages(ctx *Context, name string, args ResellerImagesArgs, opts ...ResourceOption) (*ResellerImages, error)
public ResellerImages(string name, ResellerImagesArgs args, CustomResourceOptions? opts = null)
public ResellerImages(String name, ResellerImagesArgs args)
public ResellerImages(String name, ResellerImagesArgs args, CustomResourceOptions options)
type: edgecenter:ResellerImages
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ResellerImagesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ResellerImagesArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ResellerImagesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ResellerImagesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ResellerImagesArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var resellerImagesResource = new Edgecenter.ResellerImages("resellerImagesResource", new()
{
    Options = new[]
    {
        new Edgecenter.Inputs.ResellerImagesOptionArgs
        {
            RegionId = 0,
            CreatedAt = "string",
            ImageIds = new[]
            {
                "string",
            },
            UpdatedAt = "string",
        },
    },
    ResellerId = 0,
    ResellerImagesId = "string",
});
Copy
example, err := edgecenter.NewResellerImages(ctx, "resellerImagesResource", &edgecenter.ResellerImagesArgs{
Options: .ResellerImagesOptionArray{
&.ResellerImagesOptionArgs{
RegionId: pulumi.Float64(0),
CreatedAt: pulumi.String("string"),
ImageIds: pulumi.StringArray{
pulumi.String("string"),
},
UpdatedAt: pulumi.String("string"),
},
},
ResellerId: pulumi.Float64(0),
ResellerImagesId: pulumi.String("string"),
})
Copy
var resellerImagesResource = new ResellerImages("resellerImagesResource", ResellerImagesArgs.builder()
    .options(ResellerImagesOptionArgs.builder()
        .regionId(0)
        .createdAt("string")
        .imageIds("string")
        .updatedAt("string")
        .build())
    .resellerId(0)
    .resellerImagesId("string")
    .build());
Copy
reseller_images_resource = edgecenter.ResellerImages("resellerImagesResource",
    options=[{
        "region_id": 0,
        "created_at": "string",
        "image_ids": ["string"],
        "updated_at": "string",
    }],
    reseller_id=0,
    reseller_images_id="string")
Copy
const resellerImagesResource = new edgecenter.ResellerImages("resellerImagesResource", {
    options: [{
        regionId: 0,
        createdAt: "string",
        imageIds: ["string"],
        updatedAt: "string",
    }],
    resellerId: 0,
    resellerImagesId: "string",
});
Copy
type: edgecenter:ResellerImages
properties:
    options:
        - createdAt: string
          imageIds:
            - string
          regionId: 0
          updatedAt: string
    resellerId: 0
    resellerImagesId: string
Copy

ResellerImages Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ResellerImages resource accepts the following input properties:

Options This property is required. List<ResellerImagesOption>
This set defines image IDs that can be attached to the instances of the reseller.
ResellerId This property is required. double
The ID of the reseller.
ResellerImagesId string
The ID of this resource.
Options This property is required. []ResellerImagesOptionArgs
This set defines image IDs that can be attached to the instances of the reseller.
ResellerId This property is required. float64
The ID of the reseller.
ResellerImagesId string
The ID of this resource.
options This property is required. List<ResellerImagesOption>
This set defines image IDs that can be attached to the instances of the reseller.
resellerId This property is required. Double
The ID of the reseller.
resellerImagesId String
The ID of this resource.
options This property is required. ResellerImagesOption[]
This set defines image IDs that can be attached to the instances of the reseller.
resellerId This property is required. number
The ID of the reseller.
resellerImagesId string
The ID of this resource.
options This property is required. Sequence[ResellerImagesOptionArgs]
This set defines image IDs that can be attached to the instances of the reseller.
reseller_id This property is required. float
The ID of the reseller.
reseller_images_id str
The ID of this resource.
options This property is required. List<Property Map>
This set defines image IDs that can be attached to the instances of the reseller.
resellerId This property is required. Number
The ID of the reseller.
resellerImagesId String
The ID of this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the ResellerImages resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ResellerImages Resource

Get an existing ResellerImages resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ResellerImagesState, opts?: CustomResourceOptions): ResellerImages
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        options: Optional[Sequence[ResellerImagesOptionArgs]] = None,
        reseller_id: Optional[float] = None,
        reseller_images_id: Optional[str] = None) -> ResellerImages
func GetResellerImages(ctx *Context, name string, id IDInput, state *ResellerImagesState, opts ...ResourceOption) (*ResellerImages, error)
public static ResellerImages Get(string name, Input<string> id, ResellerImagesState? state, CustomResourceOptions? opts = null)
public static ResellerImages get(String name, Output<String> id, ResellerImagesState state, CustomResourceOptions options)
resources:  _:    type: edgecenter:ResellerImages    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Options List<ResellerImagesOption>
This set defines image IDs that can be attached to the instances of the reseller.
ResellerId double
The ID of the reseller.
ResellerImagesId string
The ID of this resource.
Options []ResellerImagesOptionArgs
This set defines image IDs that can be attached to the instances of the reseller.
ResellerId float64
The ID of the reseller.
ResellerImagesId string
The ID of this resource.
options List<ResellerImagesOption>
This set defines image IDs that can be attached to the instances of the reseller.
resellerId Double
The ID of the reseller.
resellerImagesId String
The ID of this resource.
options ResellerImagesOption[]
This set defines image IDs that can be attached to the instances of the reseller.
resellerId number
The ID of the reseller.
resellerImagesId string
The ID of this resource.
options Sequence[ResellerImagesOptionArgs]
This set defines image IDs that can be attached to the instances of the reseller.
reseller_id float
The ID of the reseller.
reseller_images_id str
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.
resellerImagesId String
The ID of this resource.

Supporting Types

ResellerImagesOption
, ResellerImagesOptionArgs

RegionId This property is required. double
The ID of the region.
CreatedAt string
Date when list images was created.
ImageIds List<string>
A list of image IDs available for clients of the reseller.
UpdatedAt string
Date when list images was last updated.
RegionId This property is required. float64
The ID of the region.
CreatedAt string
Date when list images was created.
ImageIds []string
A list of image IDs available for clients of the reseller.
UpdatedAt string
Date when list images was last updated.
regionId This property is required. Double
The ID of the region.
createdAt String
Date when list images was created.
imageIds List<String>
A list of image IDs available for clients of the reseller.
updatedAt String
Date when list images was last updated.
regionId This property is required. number
The ID of the region.
createdAt string
Date when list images was created.
imageIds string[]
A list of image IDs available for clients of the reseller.
updatedAt string
Date when list images was last updated.
region_id This property is required. float
The ID of the region.
created_at str
Date when list images was created.
image_ids Sequence[str]
A list of image IDs available for clients of the reseller.
updated_at str
Date when list images was last updated.
regionId This property is required. Number
The ID of the region.
createdAt String
Date when list images was created.
imageIds List<String>
A list of image IDs available for clients of the reseller.
updatedAt String
Date when list images was last updated.

Import

import using <reseller_id> format

$ pulumi import edgecenter:index/resellerImages:ResellerImages rimgs 123
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
edgecenter edge-center/terraform-provider-edgecenter
License
Notes
This Pulumi package is based on the edgecenter Terraform Provider.