flexibleengine.SwrRepository
Explore with Pulumi AI
Manages an SWR repository resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const organizationName = config.requireObject("organizationName");
const test = new flexibleengine.SwrRepository("test", {
organization: organizationName,
description: "Test repository",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
organization_name = config.require_object("organizationName")
test = flexibleengine.SwrRepository("test",
organization=organization_name,
description="Test repository")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
organizationName := cfg.RequireObject("organizationName")
_, err := flexibleengine.NewSwrRepository(ctx, "test", &flexibleengine.SwrRepositoryArgs{
Organization: pulumi.Any(organizationName),
Description: pulumi.String("Test repository"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var organizationName = config.RequireObject<dynamic>("organizationName");
var test = new Flexibleengine.SwrRepository("test", new()
{
Organization = organizationName,
Description = "Test repository",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.SwrRepository;
import com.pulumi.flexibleengine.SwrRepositoryArgs;
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 config = ctx.config();
final var organizationName = config.get("organizationName");
var test = new SwrRepository("test", SwrRepositoryArgs.builder()
.organization(organizationName)
.description("Test repository")
.build());
}
}
configuration:
organizationName:
type: dynamic
resources:
test:
type: flexibleengine:SwrRepository
properties:
organization: ${organizationName}
description: Test repository
Create SwrRepository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwrRepository(name: string, args: SwrRepositoryArgs, opts?: CustomResourceOptions);
@overload
def SwrRepository(resource_name: str,
args: SwrRepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SwrRepository(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
category: Optional[str] = None,
description: Optional[str] = None,
is_public: Optional[bool] = None,
name: Optional[str] = None,
region: Optional[str] = None,
swr_repository_id: Optional[str] = None,
timeouts: Optional[SwrRepositoryTimeoutsArgs] = None)
func NewSwrRepository(ctx *Context, name string, args SwrRepositoryArgs, opts ...ResourceOption) (*SwrRepository, error)
public SwrRepository(string name, SwrRepositoryArgs args, CustomResourceOptions? opts = null)
public SwrRepository(String name, SwrRepositoryArgs args)
public SwrRepository(String name, SwrRepositoryArgs args, CustomResourceOptions options)
type: flexibleengine:SwrRepository
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 SwrRepositoryArgs
- 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 SwrRepositoryArgs
- 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 SwrRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwrRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwrRepositoryArgs
- 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 swrRepositoryResource = new Flexibleengine.SwrRepository("swrRepositoryResource", new()
{
Organization = "string",
Category = "string",
Description = "string",
IsPublic = false,
Name = "string",
Region = "string",
SwrRepositoryId = "string",
Timeouts = new Flexibleengine.Inputs.SwrRepositoryTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := flexibleengine.NewSwrRepository(ctx, "swrRepositoryResource", &flexibleengine.SwrRepositoryArgs{
Organization: pulumi.String("string"),
Category: pulumi.String("string"),
Description: pulumi.String("string"),
IsPublic: pulumi.Bool(false),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SwrRepositoryId: pulumi.String("string"),
Timeouts: &flexibleengine.SwrRepositoryTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var swrRepositoryResource = new SwrRepository("swrRepositoryResource", SwrRepositoryArgs.builder()
.organization("string")
.category("string")
.description("string")
.isPublic(false)
.name("string")
.region("string")
.swrRepositoryId("string")
.timeouts(SwrRepositoryTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
swr_repository_resource = flexibleengine.SwrRepository("swrRepositoryResource",
organization="string",
category="string",
description="string",
is_public=False,
name="string",
region="string",
swr_repository_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const swrRepositoryResource = new flexibleengine.SwrRepository("swrRepositoryResource", {
organization: "string",
category: "string",
description: "string",
isPublic: false,
name: "string",
region: "string",
swrRepositoryId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: flexibleengine:SwrRepository
properties:
category: string
description: string
isPublic: false
name: string
organization: string
region: string
swrRepositoryId: string
timeouts:
create: string
delete: string
update: string
SwrRepository 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 SwrRepository resource accepts the following input properties:
- Organization string
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- Category string
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - Description string
- Specifies the description of the repository.
- Is
Public bool - Specifies whether the repository is public. Default is
false
. - Name string
- Specifies the name of the repository. Changing this creates a new resource.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Swr
Repository stringId - ID of the repository. The value is the name of the repository.
- Timeouts
Swr
Repository Timeouts
- Organization string
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- Category string
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - Description string
- Specifies the description of the repository.
- Is
Public bool - Specifies whether the repository is public. Default is
false
. - Name string
- Specifies the name of the repository. Changing this creates a new resource.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Swr
Repository stringId - ID of the repository. The value is the name of the repository.
- Timeouts
Swr
Repository Timeouts Args
- organization String
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- category String
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description String
- Specifies the description of the repository.
- is
Public Boolean - Specifies whether the repository is public. Default is
false
. - name String
- Specifies the name of the repository. Changing this creates a new resource.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Repository StringId - ID of the repository. The value is the name of the repository.
- timeouts
Swr
Repository Timeouts
- organization string
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- category string
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description string
- Specifies the description of the repository.
- is
Public boolean - Specifies whether the repository is public. Default is
false
. - name string
- Specifies the name of the repository. Changing this creates a new resource.
- region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Repository stringId - ID of the repository. The value is the name of the repository.
- timeouts
Swr
Repository Timeouts
- organization str
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- category str
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description str
- Specifies the description of the repository.
- is_
public bool - Specifies whether the repository is public. Default is
false
. - name str
- Specifies the name of the repository. Changing this creates a new resource.
- region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr_
repository_ strid - ID of the repository. The value is the name of the repository.
- timeouts
Swr
Repository Timeouts Args
- organization String
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- category String
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description String
- Specifies the description of the repository.
- is
Public Boolean - Specifies whether the repository is public. Default is
false
. - name String
- Specifies the name of the repository. Changing this creates a new resource.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- swr
Repository StringId - ID of the repository. The value is the name of the repository.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SwrRepository resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Path string - Intra-cluster image address for docker pull.
- Num
Images double - Number of image tags in a repository.
- Path string
- Image address for docker pull.
- Repository
Id double - Numeric ID of the repository
- Size double
- Repository size.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Path string - Intra-cluster image address for docker pull.
- Num
Images float64 - Number of image tags in a repository.
- Path string
- Image address for docker pull.
- Repository
Id float64 - Numeric ID of the repository
- Size float64
- Repository size.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Path String - Intra-cluster image address for docker pull.
- num
Images Double - Number of image tags in a repository.
- path String
- Image address for docker pull.
- repository
Id Double - Numeric ID of the repository
- size Double
- Repository size.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Path string - Intra-cluster image address for docker pull.
- num
Images number - Number of image tags in a repository.
- path string
- Image address for docker pull.
- repository
Id number - Numeric ID of the repository
- size number
- Repository size.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
path str - Intra-cluster image address for docker pull.
- num_
images float - Number of image tags in a repository.
- path str
- Image address for docker pull.
- repository_
id float - Numeric ID of the repository
- size float
- Repository size.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Path String - Intra-cluster image address for docker pull.
- num
Images Number - Number of image tags in a repository.
- path String
- Image address for docker pull.
- repository
Id Number - Numeric ID of the repository
- size Number
- Repository size.
Look up Existing SwrRepository Resource
Get an existing SwrRepository 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?: SwrRepositoryState, opts?: CustomResourceOptions): SwrRepository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
category: Optional[str] = None,
description: Optional[str] = None,
internal_path: Optional[str] = None,
is_public: Optional[bool] = None,
name: Optional[str] = None,
num_images: Optional[float] = None,
organization: Optional[str] = None,
path: Optional[str] = None,
region: Optional[str] = None,
repository_id: Optional[float] = None,
size: Optional[float] = None,
swr_repository_id: Optional[str] = None,
timeouts: Optional[SwrRepositoryTimeoutsArgs] = None) -> SwrRepository
func GetSwrRepository(ctx *Context, name string, id IDInput, state *SwrRepositoryState, opts ...ResourceOption) (*SwrRepository, error)
public static SwrRepository Get(string name, Input<string> id, SwrRepositoryState? state, CustomResourceOptions? opts = null)
public static SwrRepository get(String name, Output<String> id, SwrRepositoryState state, CustomResourceOptions options)
resources: _: type: flexibleengine:SwrRepository 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.
- Category string
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - Description string
- Specifies the description of the repository.
- Internal
Path string - Intra-cluster image address for docker pull.
- Is
Public bool - Specifies whether the repository is public. Default is
false
. - Name string
- Specifies the name of the repository. Changing this creates a new resource.
- Num
Images double - Number of image tags in a repository.
- Organization string
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- Path string
- Image address for docker pull.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Repository
Id double - Numeric ID of the repository
- Size double
- Repository size.
- Swr
Repository stringId - ID of the repository. The value is the name of the repository.
- Timeouts
Swr
Repository Timeouts
- Category string
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - Description string
- Specifies the description of the repository.
- Internal
Path string - Intra-cluster image address for docker pull.
- Is
Public bool - Specifies whether the repository is public. Default is
false
. - Name string
- Specifies the name of the repository. Changing this creates a new resource.
- Num
Images float64 - Number of image tags in a repository.
- Organization string
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- Path string
- Image address for docker pull.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Repository
Id float64 - Numeric ID of the repository
- Size float64
- Repository size.
- Swr
Repository stringId - ID of the repository. The value is the name of the repository.
- Timeouts
Swr
Repository Timeouts Args
- category String
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description String
- Specifies the description of the repository.
- internal
Path String - Intra-cluster image address for docker pull.
- is
Public Boolean - Specifies whether the repository is public. Default is
false
. - name String
- Specifies the name of the repository. Changing this creates a new resource.
- num
Images Double - Number of image tags in a repository.
- organization String
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- path String
- Image address for docker pull.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- repository
Id Double - Numeric ID of the repository
- size Double
- Repository size.
- swr
Repository StringId - ID of the repository. The value is the name of the repository.
- timeouts
Swr
Repository Timeouts
- category string
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description string
- Specifies the description of the repository.
- internal
Path string - Intra-cluster image address for docker pull.
- is
Public boolean - Specifies whether the repository is public. Default is
false
. - name string
- Specifies the name of the repository. Changing this creates a new resource.
- num
Images number - Number of image tags in a repository.
- organization string
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- path string
- Image address for docker pull.
- region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- repository
Id number - Numeric ID of the repository
- size number
- Repository size.
- swr
Repository stringId - ID of the repository. The value is the name of the repository.
- timeouts
Swr
Repository Timeouts
- category str
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description str
- Specifies the description of the repository.
- internal_
path str - Intra-cluster image address for docker pull.
- is_
public bool - Specifies whether the repository is public. Default is
false
. - name str
- Specifies the name of the repository. Changing this creates a new resource.
- num_
images float - Number of image tags in a repository.
- organization str
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- path str
- Image address for docker pull.
- region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- repository_
id float - Numeric ID of the repository
- size float
- Repository size.
- swr_
repository_ strid - ID of the repository. The value is the name of the repository.
- timeouts
Swr
Repository Timeouts Args
- category String
- Specifies the category of the repository.
The value can be
app_server
,linux
,framework_app
,database
,lang
,other
,windows
,arm
. - description String
- Specifies the description of the repository.
- internal
Path String - Intra-cluster image address for docker pull.
- is
Public Boolean - Specifies whether the repository is public. Default is
false
. - name String
- Specifies the name of the repository. Changing this creates a new resource.
- num
Images Number - Number of image tags in a repository.
- organization String
- Specifies the name of the organization (namespace) the repository belongs. Changing this creates a new resource.
- path String
- Image address for docker pull.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- repository
Id Number - Numeric ID of the repository
- size Number
- Repository size.
- swr
Repository StringId - ID of the repository. The value is the name of the repository.
- timeouts Property Map
Supporting Types
SwrRepositoryTimeouts, SwrRepositoryTimeoutsArgs
Import
Repository can be imported using the organization name and repository name separated by a slash, e.g.:
$ pulumi import flexibleengine:index/swrRepository:SwrRepository test org-name/repo-name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.