edgecenter.ResellerImagesV2
Explore with Pulumi AI
This resource has been created for resellers and only works with the reseller API key.
Resellers and Cloud Admins can change the set of images available to resellers, their customers and their projects.
Firstly, they can limit the number of public images available. If the reseller, client or project has image_ids = [] or doesn’t have an image_ids field in config, all public images will be unavailable to the client.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const rimgs = new edgecenter.ResellerImagesV2("rimgs", {
entityId: 123456,
entityType: "reseller",
options: [
{
imageIds: [
"b5b4d65d-945f-4b98-ab6f-332319c724ef",
"0052a312-e6d8-4177-8e29-b017a3a6b588",
],
regionId: 123,
},
{
imageIds: [],
regionId: 456,
},
],
});
import pulumi
import pulumi_edgecenter as edgecenter
rimgs = edgecenter.ResellerImagesV2("rimgs",
entity_id=123456,
entity_type="reseller",
options=[
{
"image_ids": [
"b5b4d65d-945f-4b98-ab6f-332319c724ef",
"0052a312-e6d8-4177-8e29-b017a3a6b588",
],
"region_id": 123,
},
{
"image_ids": [],
"region_id": 456,
},
])
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.NewResellerImagesV2(ctx, "rimgs", &edgecenter.ResellerImagesV2Args{
EntityId: pulumi.Float64(123456),
EntityType: pulumi.String("reseller"),
Options: edgecenter.ResellerImagesV2OptionArray{
&edgecenter.ResellerImagesV2OptionArgs{
ImageIds: pulumi.StringArray{
pulumi.String("b5b4d65d-945f-4b98-ab6f-332319c724ef"),
pulumi.String("0052a312-e6d8-4177-8e29-b017a3a6b588"),
},
RegionId: pulumi.Float64(123),
},
&edgecenter.ResellerImagesV2OptionArgs{
ImageIds: pulumi.StringArray{},
RegionId: pulumi.Float64(456),
},
},
})
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.ResellerImagesV2("rimgs", new()
{
EntityId = 123456,
EntityType = "reseller",
Options = new[]
{
new Edgecenter.Inputs.ResellerImagesV2OptionArgs
{
ImageIds = new[]
{
"b5b4d65d-945f-4b98-ab6f-332319c724ef",
"0052a312-e6d8-4177-8e29-b017a3a6b588",
},
RegionId = 123,
},
new Edgecenter.Inputs.ResellerImagesV2OptionArgs
{
ImageIds = new() { },
RegionId = 456,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.ResellerImagesV2;
import com.pulumi.edgecenter.ResellerImagesV2Args;
import com.pulumi.edgecenter.inputs.ResellerImagesV2OptionArgs;
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 ResellerImagesV2("rimgs", ResellerImagesV2Args.builder()
.entityId(123456)
.entityType("reseller")
.options(
ResellerImagesV2OptionArgs.builder()
.imageIds(
"b5b4d65d-945f-4b98-ab6f-332319c724ef",
"0052a312-e6d8-4177-8e29-b017a3a6b588")
.regionId(123)
.build(),
ResellerImagesV2OptionArgs.builder()
.imageIds()
.regionId(456)
.build())
.build());
}
}
resources:
rimgs:
type: edgecenter:ResellerImagesV2
properties:
entityId: 123456
entityType: reseller
options:
- imageIds:
- b5b4d65d-945f-4b98-ab6f-332319c724ef
- 0052a312-e6d8-4177-8e29-b017a3a6b588
regionId: 123
- imageIds: []
regionId: 456
Create ResellerImagesV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResellerImagesV2(name: string, args: ResellerImagesV2Args, opts?: CustomResourceOptions);
@overload
def ResellerImagesV2(resource_name: str,
args: ResellerImagesV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def ResellerImagesV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
entity_id: Optional[float] = None,
entity_type: Optional[str] = None,
options: Optional[Sequence[ResellerImagesV2OptionArgs]] = None,
reseller_images_v2_id: Optional[str] = None)
func NewResellerImagesV2(ctx *Context, name string, args ResellerImagesV2Args, opts ...ResourceOption) (*ResellerImagesV2, error)
public ResellerImagesV2(string name, ResellerImagesV2Args args, CustomResourceOptions? opts = null)
public ResellerImagesV2(String name, ResellerImagesV2Args args)
public ResellerImagesV2(String name, ResellerImagesV2Args args, CustomResourceOptions options)
type: edgecenter:ResellerImagesV2
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 ResellerImagesV2Args
- 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 ResellerImagesV2Args
- 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 ResellerImagesV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResellerImagesV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResellerImagesV2Args
- 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 resellerImagesV2Resource = new Edgecenter.ResellerImagesV2("resellerImagesV2Resource", new()
{
EntityId = 0,
EntityType = "string",
Options = new[]
{
new Edgecenter.Inputs.ResellerImagesV2OptionArgs
{
RegionId = 0,
CreatedAt = "string",
ImageIds = new[]
{
"string",
},
UpdatedAt = "string",
},
},
ResellerImagesV2Id = "string",
});
example, err := edgecenter.NewResellerImagesV2(ctx, "resellerImagesV2Resource", &edgecenter.ResellerImagesV2Args{
EntityId: pulumi.Float64(0),
EntityType: pulumi.String("string"),
Options: edgecenter.ResellerImagesV2OptionArray{
&edgecenter.ResellerImagesV2OptionArgs{
RegionId: pulumi.Float64(0),
CreatedAt: pulumi.String("string"),
ImageIds: pulumi.StringArray{
pulumi.String("string"),
},
UpdatedAt: pulumi.String("string"),
},
},
ResellerImagesV2Id: pulumi.String("string"),
})
var resellerImagesV2Resource = new ResellerImagesV2("resellerImagesV2Resource", ResellerImagesV2Args.builder()
.entityId(0)
.entityType("string")
.options(ResellerImagesV2OptionArgs.builder()
.regionId(0)
.createdAt("string")
.imageIds("string")
.updatedAt("string")
.build())
.resellerImagesV2Id("string")
.build());
reseller_images_v2_resource = edgecenter.ResellerImagesV2("resellerImagesV2Resource",
entity_id=0,
entity_type="string",
options=[{
"region_id": 0,
"created_at": "string",
"image_ids": ["string"],
"updated_at": "string",
}],
reseller_images_v2_id="string")
const resellerImagesV2Resource = new edgecenter.ResellerImagesV2("resellerImagesV2Resource", {
entityId: 0,
entityType: "string",
options: [{
regionId: 0,
createdAt: "string",
imageIds: ["string"],
updatedAt: "string",
}],
resellerImagesV2Id: "string",
});
type: edgecenter:ResellerImagesV2
properties:
entityId: 0
entityType: string
options:
- createdAt: string
imageIds:
- string
regionId: 0
updatedAt: string
resellerImagesV2Id: string
ResellerImagesV2 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 ResellerImagesV2 resource accepts the following input properties:
- Entity
Id double - The ID of the entity.
- Entity
Type string - The entity type. Available values are 'reseller', 'client', 'project'.
- Options
List<Reseller
Images V2Option> - This set defines image IDs that can be attached to the instances of the entity.
- Reseller
Images stringV2Id - 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'.
- Options
[]Reseller
Images V2Option Args - This set defines image IDs that can be attached to the instances of the entity.
- Reseller
Images stringV2Id - 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'.
- options
List<Reseller
Images V2Option> - This set defines image IDs that can be attached to the instances of the entity.
- reseller
Images StringV2Id - 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'.
- options
Reseller
Images V2Option[] - This set defines image IDs that can be attached to the instances of the entity.
- reseller
Images stringV2Id - 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'.
- options
Sequence[Reseller
Images V2Option Args] - This set defines image IDs that can be attached to the instances of the entity.
- reseller_
images_ strv2_ id - 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'.
- options List<Property Map>
- This set defines image IDs that can be attached to the instances of the entity.
- reseller
Images StringV2Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResellerImagesV2 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 ResellerImagesV2 Resource
Get an existing ResellerImagesV2 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?: ResellerImagesV2State, opts?: CustomResourceOptions): ResellerImagesV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
entity_id: Optional[float] = None,
entity_type: Optional[str] = None,
options: Optional[Sequence[ResellerImagesV2OptionArgs]] = None,
reseller_images_v2_id: Optional[str] = None) -> ResellerImagesV2
func GetResellerImagesV2(ctx *Context, name string, id IDInput, state *ResellerImagesV2State, opts ...ResourceOption) (*ResellerImagesV2, error)
public static ResellerImagesV2 Get(string name, Input<string> id, ResellerImagesV2State? state, CustomResourceOptions? opts = null)
public static ResellerImagesV2 get(String name, Output<String> id, ResellerImagesV2State state, CustomResourceOptions options)
resources: _: type: edgecenter:ResellerImagesV2 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.
- Entity
Id double - The ID of the entity.
- Entity
Type string - The entity type. Available values are 'reseller', 'client', 'project'.
- Options
List<Reseller
Images V2Option> - This set defines image IDs that can be attached to the instances of the entity.
- Reseller
Images stringV2Id - 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'.
- Options
[]Reseller
Images V2Option Args - This set defines image IDs that can be attached to the instances of the entity.
- Reseller
Images stringV2Id - 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'.
- options
List<Reseller
Images V2Option> - This set defines image IDs that can be attached to the instances of the entity.
- reseller
Images StringV2Id - 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'.
- options
Reseller
Images V2Option[] - This set defines image IDs that can be attached to the instances of the entity.
- reseller
Images stringV2Id - 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'.
- options
Sequence[Reseller
Images V2Option Args] - This set defines image IDs that can be attached to the instances of the entity.
- reseller_
images_ strv2_ id - 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'.
- options List<Property Map>
- This set defines image IDs that can be attached to the instances of the entity.
- reseller
Images StringV2Id - The ID of this resource.
Supporting Types
ResellerImagesV2Option, ResellerImagesV2OptionArgs
- 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 entity.
- updated_
at str - Date when list images was last updated.
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenter
Terraform Provider.