1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. SwrRepository
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.SwrRepository

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    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.
    IsPublic 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.
    SwrRepositoryId string
    ID of the repository. The value is the name of the repository.
    Timeouts SwrRepositoryTimeouts
    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.
    IsPublic 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.
    SwrRepositoryId string
    ID of the repository. The value is the name of the repository.
    Timeouts SwrRepositoryTimeoutsArgs
    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.
    isPublic 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.
    swrRepositoryId String
    ID of the repository. The value is the name of the repository.
    timeouts SwrRepositoryTimeouts
    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.
    isPublic 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.
    swrRepositoryId string
    ID of the repository. The value is the name of the repository.
    timeouts SwrRepositoryTimeouts
    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_id str
    ID of the repository. The value is the name of the repository.
    timeouts SwrRepositoryTimeoutsArgs
    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.
    isPublic 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.
    swrRepositoryId String
    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.
    InternalPath string
    Intra-cluster image address for docker pull.
    NumImages double
    Number of image tags in a repository.
    Path string
    Image address for docker pull.
    RepositoryId double
    Numeric ID of the repository
    Size double
    Repository size.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalPath string
    Intra-cluster image address for docker pull.
    NumImages float64
    Number of image tags in a repository.
    Path string
    Image address for docker pull.
    RepositoryId float64
    Numeric ID of the repository
    Size float64
    Repository size.
    id String
    The provider-assigned unique ID for this managed resource.
    internalPath String
    Intra-cluster image address for docker pull.
    numImages Double
    Number of image tags in a repository.
    path String
    Image address for docker pull.
    repositoryId Double
    Numeric ID of the repository
    size Double
    Repository size.
    id string
    The provider-assigned unique ID for this managed resource.
    internalPath string
    Intra-cluster image address for docker pull.
    numImages number
    Number of image tags in a repository.
    path string
    Image address for docker pull.
    repositoryId 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.
    internalPath String
    Intra-cluster image address for docker pull.
    numImages Number
    Number of image tags in a repository.
    path String
    Image address for docker pull.
    repositoryId 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.
    The following state arguments are supported:
    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.
    InternalPath string
    Intra-cluster image address for docker pull.
    IsPublic bool
    Specifies whether the repository is public. Default is false.
    Name string
    Specifies the name of the repository. Changing this creates a new resource.
    NumImages 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.
    RepositoryId double
    Numeric ID of the repository
    Size double
    Repository size.
    SwrRepositoryId string
    ID of the repository. The value is the name of the repository.
    Timeouts SwrRepositoryTimeouts
    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.
    InternalPath string
    Intra-cluster image address for docker pull.
    IsPublic bool
    Specifies whether the repository is public. Default is false.
    Name string
    Specifies the name of the repository. Changing this creates a new resource.
    NumImages 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.
    RepositoryId float64
    Numeric ID of the repository
    Size float64
    Repository size.
    SwrRepositoryId string
    ID of the repository. The value is the name of the repository.
    Timeouts SwrRepositoryTimeoutsArgs
    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.
    internalPath String
    Intra-cluster image address for docker pull.
    isPublic Boolean
    Specifies whether the repository is public. Default is false.
    name String
    Specifies the name of the repository. Changing this creates a new resource.
    numImages 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.
    repositoryId Double
    Numeric ID of the repository
    size Double
    Repository size.
    swrRepositoryId String
    ID of the repository. The value is the name of the repository.
    timeouts SwrRepositoryTimeouts
    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.
    internalPath string
    Intra-cluster image address for docker pull.
    isPublic boolean
    Specifies whether the repository is public. Default is false.
    name string
    Specifies the name of the repository. Changing this creates a new resource.
    numImages 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.
    repositoryId number
    Numeric ID of the repository
    size number
    Repository size.
    swrRepositoryId string
    ID of the repository. The value is the name of the repository.
    timeouts SwrRepositoryTimeouts
    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_id str
    ID of the repository. The value is the name of the repository.
    timeouts SwrRepositoryTimeoutsArgs
    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.
    internalPath String
    Intra-cluster image address for docker pull.
    isPublic Boolean
    Specifies whether the repository is public. Default is false.
    name String
    Specifies the name of the repository. Changing this creates a new resource.
    numImages 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.
    repositoryId Number
    Numeric ID of the repository
    size Number
    Repository size.
    swrRepositoryId String
    ID of the repository. The value is the name of the repository.
    timeouts Property Map

    Supporting Types

    SwrRepositoryTimeouts, SwrRepositoryTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    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.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud