edgecenter.ResellerImages
Explore with Pulumi AI
WARNING: resource “edgecenter.ResellerImages” is deprecated.
Use “edgecenter_reseller_imagesV2” resource instead.
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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args ResellerImagesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args ResellerImagesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResellerImagesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := edgecenter.NewResellerImages(ctx, "resellerImagesResource", &edgecenter.ResellerImagesArgs{
Options: edgecenter.ResellerImagesOptionArray{
&edgecenter.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"),
})
var resellerImagesResource = new ResellerImages("resellerImagesResource", ResellerImagesArgs.builder()
.options(ResellerImagesOptionArgs.builder()
.regionId(0)
.createdAt("string")
.imageIds("string")
.updatedAt("string")
.build())
.resellerId(0)
.resellerImagesId("string")
.build());
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")
const resellerImagesResource = new edgecenter.ResellerImages("resellerImagesResource", {
options: [{
regionId: 0,
createdAt: "string",
imageIds: ["string"],
updatedAt: "string",
}],
resellerId: 0,
resellerImagesId: "string",
});
type: edgecenter:ResellerImages
properties:
options:
- createdAt: string
imageIds:
- string
regionId: 0
updatedAt: string
resellerId: 0
resellerImagesId: string
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
List<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.
- Reseller
Images stringId - The ID of this resource.
- Options
[]Reseller
Images Option Args - This set defines image IDs that can be attached to the instances of the reseller.
- Reseller
Id float64 - The ID of the reseller.
- Reseller
Images stringId - The ID of this resource.
- options
List<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.
- reseller
Images StringId - The ID of this resource.
- options
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.
- reseller
Images stringId - The ID of this resource.
- options
Sequence[Reseller
Images Option Args] - 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_ strid - 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.
- reseller
Images StringId - 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Options
List<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.
- Reseller
Images stringId - The ID of this resource.
- Options
[]Reseller
Images Option Args - This set defines image IDs that can be attached to the instances of the reseller.
- Reseller
Id float64 - The ID of the reseller.
- Reseller
Images stringId - The ID of this resource.
- options
List<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.
- reseller
Images StringId - The ID of this resource.
- options
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.
- reseller
Images stringId - The ID of this resource.
- options
Sequence[Reseller
Images Option Args] - 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_ strid - 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.
- reseller
Images StringId - The ID of this resource.
Supporting Types
ResellerImagesOption, ResellerImagesOptionArgs
- region_
id 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.
Import
import using <reseller_id> format
$ pulumi import edgecenter:index/resellerImages:ResellerImages rimgs 123
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.