ise.system.Repository
Explore with Pulumi AI
This resource can manage a Repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ise from "@pulumi/ise";
const example = new ise.system.Repository("example", {
    name: "repo1",
    protocol: "SFTP",
    path: "/dir",
    serverName: "server1",
    userName: "user9",
    password: "cisco123",
    enablePki: false,
});
import pulumi
import pulumi_ise as ise
example = ise.system.Repository("example",
    name="repo1",
    protocol="SFTP",
    path="/dir",
    server_name="server1",
    user_name="user9",
    password="cisco123",
    enable_pki=False)
package main
import (
	"github.com/pulumi/pulumi-ise/sdk/go/ise/system"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := system.NewRepository(ctx, "example", &system.RepositoryArgs{
			Name:       pulumi.String("repo1"),
			Protocol:   pulumi.String("SFTP"),
			Path:       pulumi.String("/dir"),
			ServerName: pulumi.String("server1"),
			UserName:   pulumi.String("user9"),
			Password:   pulumi.String("cisco123"),
			EnablePki:  pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ise = Pulumi.Ise;
return await Deployment.RunAsync(() => 
{
    var example = new Ise.System.Repository("example", new()
    {
        Name = "repo1",
        Protocol = "SFTP",
        Path = "/dir",
        ServerName = "server1",
        UserName = "user9",
        Password = "cisco123",
        EnablePki = false,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ise.system.Repository;
import com.pulumi.ise.system.RepositoryArgs;
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 example = new Repository("example", RepositoryArgs.builder()
            .name("repo1")
            .protocol("SFTP")
            .path("/dir")
            .serverName("server1")
            .userName("user9")
            .password("cisco123")
            .enablePki(false)
            .build());
    }
}
resources:
  example:
    type: ise:system:Repository
    properties:
      name: repo1
      protocol: SFTP
      path: /dir
      serverName: server1
      userName: user9
      password: cisco123
      enablePki: false
Create Repository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);@overload
def Repository(resource_name: str,
               args: RepositoryArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def Repository(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               path: Optional[str] = None,
               protocol: Optional[str] = None,
               enable_pki: Optional[bool] = None,
               name: Optional[str] = None,
               password: Optional[str] = None,
               server_name: Optional[str] = None,
               user_name: Optional[str] = None)func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: ise:system:Repository
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 RepositoryArgs
- 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 RepositoryArgs
- 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 RepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryArgs
- 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 repositoryResource = new Ise.System.Repository("repositoryResource", new()
{
    Path = "string",
    Protocol = "string",
    EnablePki = false,
    Name = "string",
    Password = "string",
    ServerName = "string",
    UserName = "string",
});
example, err := system.NewRepository(ctx, "repositoryResource", &system.RepositoryArgs{
	Path:       pulumi.String("string"),
	Protocol:   pulumi.String("string"),
	EnablePki:  pulumi.Bool(false),
	Name:       pulumi.String("string"),
	Password:   pulumi.String("string"),
	ServerName: pulumi.String("string"),
	UserName:   pulumi.String("string"),
})
var repositoryResource = new Repository("repositoryResource", RepositoryArgs.builder()
    .path("string")
    .protocol("string")
    .enablePki(false)
    .name("string")
    .password("string")
    .serverName("string")
    .userName("string")
    .build());
repository_resource = ise.system.Repository("repositoryResource",
    path="string",
    protocol="string",
    enable_pki=False,
    name="string",
    password="string",
    server_name="string",
    user_name="string")
const repositoryResource = new ise.system.Repository("repositoryResource", {
    path: "string",
    protocol: "string",
    enablePki: false,
    name: "string",
    password: "string",
    serverName: "string",
    userName: "string",
});
type: ise:system:Repository
properties:
    enablePki: false
    name: string
    password: string
    path: string
    protocol: string
    serverName: string
    userName: string
Repository 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 Repository resource accepts the following input properties:
- Path string
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- Protocol string
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- EnablePki bool
- Enable PKI
- Name string
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- Password string
- Password can contain alphanumeric and/or special characters.
- ServerName string
- Name of the server
- UserName string
- User name
- Path string
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- Protocol string
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- EnablePki bool
- Enable PKI
- Name string
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- Password string
- Password can contain alphanumeric and/or special characters.
- ServerName string
- Name of the server
- UserName string
- User name
- path String
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- protocol String
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- enablePki Boolean
- Enable PKI
- name String
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- password String
- Password can contain alphanumeric and/or special characters.
- serverName String
- Name of the server
- userName String
- User name
- path string
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- protocol string
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- enablePki boolean
- Enable PKI
- name string
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- password string
- Password can contain alphanumeric and/or special characters.
- serverName string
- Name of the server
- userName string
- User name
- path str
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- protocol str
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- enable_pki bool
- Enable PKI
- name str
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- password str
- Password can contain alphanumeric and/or special characters.
- server_name str
- Name of the server
- user_name str
- User name
- path String
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- protocol String
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- enablePki Boolean
- Enable PKI
- name String
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- password String
- Password can contain alphanumeric and/or special characters.
- serverName String
- Name of the server
- userName String
- User name
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository 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 Repository Resource
Get an existing Repository 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?: RepositoryState, opts?: CustomResourceOptions): Repository@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enable_pki: Optional[bool] = None,
        name: Optional[str] = None,
        password: Optional[str] = None,
        path: Optional[str] = None,
        protocol: Optional[str] = None,
        server_name: Optional[str] = None,
        user_name: Optional[str] = None) -> Repositoryfunc GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)resources:  _:    type: ise:system:Repository    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.
- EnablePki bool
- Enable PKI
- Name string
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- Password string
- Password can contain alphanumeric and/or special characters.
- Path string
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- Protocol string
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- ServerName string
- Name of the server
- UserName string
- User name
- EnablePki bool
- Enable PKI
- Name string
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- Password string
- Password can contain alphanumeric and/or special characters.
- Path string
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- Protocol string
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- ServerName string
- Name of the server
- UserName string
- User name
- enablePki Boolean
- Enable PKI
- name String
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- password String
- Password can contain alphanumeric and/or special characters.
- path String
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- protocol String
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- serverName String
- Name of the server
- userName String
- User name
- enablePki boolean
- Enable PKI
- name string
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- password string
- Password can contain alphanumeric and/or special characters.
- path string
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- protocol string
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- serverName string
- Name of the server
- userName string
- User name
- enable_pki bool
- Enable PKI
- name str
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- password str
- Password can contain alphanumeric and/or special characters.
- path str
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- protocol str
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- server_name str
- Name of the server
- user_name str
- User name
- enablePki Boolean
- Enable PKI
- name String
- Repository name should be less than 80 characters and can contain alphanumeric, underscore, hyphen and dot characters.
- password String
- Password can contain alphanumeric and/or special characters.
- path String
- Path should always start with "/" and can contain alphanumeric, underscore, hyphen and dot characters.
- protocol String
- Protocol - Choices: CDROM,DISK,FTP,HTTP,HTTPS,NFS,SFTP,TFTP
- serverName String
- Name of the server
- userName String
- User name
Import
$ pulumi import ise:system/repository:Repository example "repo1"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ise pulumi/pulumi-ise
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the iseTerraform Provider.
