Runpod v1.9.99 published on Wednesday, Jul 3, 2024 by Runpod
runpod.Pod
Explore with Pulumi AI
Create Pod Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Pod(name: string, args: PodArgs, opts?: CustomResourceOptions);
@overload
def Pod(resource_name: str,
args: PodArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Pod(resource_name: str,
opts: Optional[ResourceOptions] = None,
gpu_count: Optional[int] = None,
image_name: Optional[str] = None,
gpu_type_id: Optional[str] = None,
min_upload: Optional[int] = None,
docker_args: Optional[str] = None,
min_vcpu_count: Optional[int] = None,
deploy_cost: Optional[float] = None,
name: Optional[str] = None,
env: Optional[Sequence[PodEnvArgs]] = None,
country_code: Optional[str] = None,
container_disk_in_gb: Optional[int] = None,
gpu_type_id_list: Optional[Sequence[str]] = None,
cloud_type: Optional[str] = None,
min_disk: Optional[int] = None,
network_volume_id: Optional[str] = None,
min_memory_in_gb: Optional[int] = None,
ai_api_id: Optional[str] = None,
data_center_id: Optional[str] = None,
cuda_version: Optional[str] = None,
min_download: Optional[int] = None,
port: Optional[int] = None,
ports: Optional[str] = None,
savings_plan: Optional[SavingsPlanInputArgs] = None,
start_jupyter: Optional[bool] = None,
start_ssh: Optional[bool] = None,
stop_after: Optional[str] = None,
support_public_ip: Optional[bool] = None,
template_id: Optional[str] = None,
terminate_after: Optional[str] = None,
volume_in_gb: Optional[int] = None,
volume_key: Optional[str] = None,
volume_mount_path: Optional[str] = None)
func NewPod(ctx *Context, name string, args PodArgs, opts ...ResourceOption) (*Pod, error)
public Pod(string name, PodArgs args, CustomResourceOptions? opts = null)
type: runpod:Pod
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 PodArgs
- 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 PodArgs
- 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 PodArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PodArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PodArgs
- 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 podResource = new Runpod.Pod("podResource", new()
{
GpuCount = 0,
ImageName = "string",
GpuTypeId = "string",
MinUpload = 0,
DockerArgs = "string",
MinVcpuCount = 0,
DeployCost = 0,
Name = "string",
Env = new[]
{
new Runpod.Inputs.PodEnvArgs
{
Key = "string",
Value = "string",
},
},
CountryCode = "string",
ContainerDiskInGb = 0,
GpuTypeIdList = new[]
{
"string",
},
CloudType = "string",
MinDisk = 0,
NetworkVolumeId = "string",
MinMemoryInGb = 0,
AiApiId = "string",
DataCenterId = "string",
CudaVersion = "string",
MinDownload = 0,
Port = 0,
Ports = "string",
SavingsPlan = new Runpod.Inputs.SavingsPlanInputArgs
{
PlanLength = "string",
UpfrontCost = 0,
},
StartJupyter = false,
StartSsh = false,
StopAfter = "string",
SupportPublicIp = false,
TemplateId = "string",
TerminateAfter = "string",
VolumeInGb = 0,
VolumeKey = "string",
VolumeMountPath = "string",
});
example, err := runpod.NewPod(ctx, "podResource", &runpod.PodArgs{
GpuCount: pulumi.Int(0),
ImageName: pulumi.String("string"),
GpuTypeId: pulumi.String("string"),
MinUpload: pulumi.Int(0),
DockerArgs: pulumi.String("string"),
MinVcpuCount: pulumi.Int(0),
DeployCost: pulumi.Float64(0),
Name: pulumi.String("string"),
Env: runpod.PodEnvArray{
&runpod.PodEnvArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
CountryCode: pulumi.String("string"),
ContainerDiskInGb: pulumi.Int(0),
GpuTypeIdList: pulumi.StringArray{
pulumi.String("string"),
},
CloudType: pulumi.String("string"),
MinDisk: pulumi.Int(0),
NetworkVolumeId: pulumi.String("string"),
MinMemoryInGb: pulumi.Int(0),
AiApiId: pulumi.String("string"),
DataCenterId: pulumi.String("string"),
CudaVersion: pulumi.String("string"),
MinDownload: pulumi.Int(0),
Port: pulumi.Int(0),
Ports: pulumi.String("string"),
SavingsPlan: &runpod.SavingsPlanInputArgs{
PlanLength: pulumi.String("string"),
UpfrontCost: pulumi.Float64(0),
},
StartJupyter: pulumi.Bool(false),
StartSsh: pulumi.Bool(false),
StopAfter: pulumi.String("string"),
SupportPublicIp: pulumi.Bool(false),
TemplateId: pulumi.String("string"),
TerminateAfter: pulumi.String("string"),
VolumeInGb: pulumi.Int(0),
VolumeKey: pulumi.String("string"),
VolumeMountPath: pulumi.String("string"),
})
var podResource = new Pod("podResource", PodArgs.builder()
.gpuCount(0)
.imageName("string")
.gpuTypeId("string")
.minUpload(0)
.dockerArgs("string")
.minVcpuCount(0)
.deployCost(0)
.name("string")
.env(PodEnvArgs.builder()
.key("string")
.value("string")
.build())
.countryCode("string")
.containerDiskInGb(0)
.gpuTypeIdList("string")
.cloudType("string")
.minDisk(0)
.networkVolumeId("string")
.minMemoryInGb(0)
.aiApiId("string")
.dataCenterId("string")
.cudaVersion("string")
.minDownload(0)
.port(0)
.ports("string")
.savingsPlan(SavingsPlanInputArgs.builder()
.planLength("string")
.upfrontCost(0)
.build())
.startJupyter(false)
.startSsh(false)
.stopAfter("string")
.supportPublicIp(false)
.templateId("string")
.terminateAfter("string")
.volumeInGb(0)
.volumeKey("string")
.volumeMountPath("string")
.build());
pod_resource = runpod.Pod("podResource",
gpu_count=0,
image_name="string",
gpu_type_id="string",
min_upload=0,
docker_args="string",
min_vcpu_count=0,
deploy_cost=0,
name="string",
env=[{
"key": "string",
"value": "string",
}],
country_code="string",
container_disk_in_gb=0,
gpu_type_id_list=["string"],
cloud_type="string",
min_disk=0,
network_volume_id="string",
min_memory_in_gb=0,
ai_api_id="string",
data_center_id="string",
cuda_version="string",
min_download=0,
port=0,
ports="string",
savings_plan={
"plan_length": "string",
"upfront_cost": 0,
},
start_jupyter=False,
start_ssh=False,
stop_after="string",
support_public_ip=False,
template_id="string",
terminate_after="string",
volume_in_gb=0,
volume_key="string",
volume_mount_path="string")
const podResource = new runpod.Pod("podResource", {
gpuCount: 0,
imageName: "string",
gpuTypeId: "string",
minUpload: 0,
dockerArgs: "string",
minVcpuCount: 0,
deployCost: 0,
name: "string",
env: [{
key: "string",
value: "string",
}],
countryCode: "string",
containerDiskInGb: 0,
gpuTypeIdList: ["string"],
cloudType: "string",
minDisk: 0,
networkVolumeId: "string",
minMemoryInGb: 0,
aiApiId: "string",
dataCenterId: "string",
cudaVersion: "string",
minDownload: 0,
port: 0,
ports: "string",
savingsPlan: {
planLength: "string",
upfrontCost: 0,
},
startJupyter: false,
startSsh: false,
stopAfter: "string",
supportPublicIp: false,
templateId: "string",
terminateAfter: "string",
volumeInGb: 0,
volumeKey: "string",
volumeMountPath: "string",
});
type: runpod:Pod
properties:
aiApiId: string
cloudType: string
containerDiskInGb: 0
countryCode: string
cudaVersion: string
dataCenterId: string
deployCost: 0
dockerArgs: string
env:
- key: string
value: string
gpuCount: 0
gpuTypeId: string
gpuTypeIdList:
- string
imageName: string
minDisk: 0
minDownload: 0
minMemoryInGb: 0
minUpload: 0
minVcpuCount: 0
name: string
networkVolumeId: string
port: 0
ports: string
savingsPlan:
planLength: string
upfrontCost: 0
startJupyter: false
startSsh: false
stopAfter: string
supportPublicIp: false
templateId: string
terminateAfter: string
volumeInGb: 0
volumeKey: string
volumeMountPath: string
Pod 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 Pod resource accepts the following input properties:
- Gpu
Count int - Gpu
Type stringId - Image
Name string - Ai
Api stringId - Cloud
Type string - Container
Disk intIn Gb - Country
Code string - Cuda
Version string - Data
Center stringId - Deploy
Cost double - Docker
Args string - Env
List<Runpod
Infra. Runpod. Inputs. Pod Env> - Gpu
Type List<string>Id List - Min
Disk int - Min
Download int - Min
Memory intIn Gb - Min
Upload int - Min
Vcpu intCount - Name string
- Network
Volume stringId - Port int
- Ports string
- Savings
Plan RunpodInfra. Runpod. Inputs. Savings Plan Input - Start
Jupyter bool - Start
Ssh bool - Stop
After string - Support
Public boolIp - Template
Id string - Terminate
After string - Volume
In intGb - Volume
Key string - Volume
Mount stringPath
- Gpu
Count int - Gpu
Type stringId - Image
Name string - Ai
Api stringId - Cloud
Type string - Container
Disk intIn Gb - Country
Code string - Cuda
Version string - Data
Center stringId - Deploy
Cost float64 - Docker
Args string - Env
[]Pod
Env Args - Gpu
Type []stringId List - Min
Disk int - Min
Download int - Min
Memory intIn Gb - Min
Upload int - Min
Vcpu intCount - Name string
- Network
Volume stringId - Port int
- Ports string
- Savings
Plan SavingsPlan Input Args - Start
Jupyter bool - Start
Ssh bool - Stop
After string - Support
Public boolIp - Template
Id string - Terminate
After string - Volume
In intGb - Volume
Key string - Volume
Mount stringPath
- gpu
Count Integer - gpu
Type StringId - image
Name String - ai
Api StringId - cloud
Type String - container
Disk IntegerIn Gb - country
Code String - cuda
Version String - data
Center StringId - deploy
Cost Double - docker
Args String - env
List<Pod
Env> - gpu
Type List<String>Id List - min
Disk Integer - min
Download Integer - min
Memory IntegerIn Gb - min
Upload Integer - min
Vcpu IntegerCount - name String
- network
Volume StringId - port Integer
- ports String
- savings
Plan SavingsPlan Input - start
Jupyter Boolean - start
Ssh Boolean - stop
After String - support
Public BooleanIp - template
Id String - terminate
After String - volume
In IntegerGb - volume
Key String - volume
Mount StringPath
- gpu
Count number - gpu
Type stringId - image
Name string - ai
Api stringId - cloud
Type string - container
Disk numberIn Gb - country
Code string - cuda
Version string - data
Center stringId - deploy
Cost number - docker
Args string - env
Pod
Env[] - gpu
Type string[]Id List - min
Disk number - min
Download number - min
Memory numberIn Gb - min
Upload number - min
Vcpu numberCount - name string
- network
Volume stringId - port number
- ports string
- savings
Plan SavingsPlan Input - start
Jupyter boolean - start
Ssh boolean - stop
After string - support
Public booleanIp - template
Id string - terminate
After string - volume
In numberGb - volume
Key string - volume
Mount stringPath
- gpu_
count int - gpu_
type_ strid - image_
name str - ai_
api_ strid - cloud_
type str - container_
disk_ intin_ gb - country_
code str - cuda_
version str - data_
center_ strid - deploy_
cost float - docker_
args str - env
Sequence[Pod
Env Args] - gpu_
type_ Sequence[str]id_ list - min_
disk int - min_
download int - min_
memory_ intin_ gb - min_
upload int - min_
vcpu_ intcount - name str
- network_
volume_ strid - port int
- ports str
- savings_
plan SavingsPlan Input Args - start_
jupyter bool - start_
ssh bool - stop_
after str - support_
public_ boolip - template_
id str - terminate_
after str - volume_
in_ intgb - volume_
key str - volume_
mount_ strpath
- gpu
Count Number - gpu
Type StringId - image
Name String - ai
Api StringId - cloud
Type String - container
Disk NumberIn Gb - country
Code String - cuda
Version String - data
Center StringId - deploy
Cost Number - docker
Args String - env List<Property Map>
- gpu
Type List<String>Id List - min
Disk Number - min
Download Number - min
Memory NumberIn Gb - min
Upload Number - min
Vcpu NumberCount - name String
- network
Volume StringId - port Number
- ports String
- savings
Plan Property Map - start
Jupyter Boolean - start
Ssh Boolean - stop
After String - support
Public BooleanIp - template
Id String - terminate
After String - volume
In NumberGb - volume
Key String - volume
Mount StringPath
Outputs
All input properties are implicitly available as output properties. Additionally, the Pod resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Pod
Runpod
Infra. Runpod. Outputs. Pod
- id String
- The provider-assigned unique ID for this managed resource.
- pod Property Map
Supporting Types
Gpu, GpuArgs
Pod, PodArgs
- Adjusted
Cost doublePer Hr - Ai
Api stringId - Api
Key string - Consumer
User stringId - Container
Disk intIn Gb - Container
Registry stringAuth Id - Cost
Multiplier double - Cost
Per doubleHr - Created
At string - Desired
Status string - Docker
Args string - Docker
Id string - Gpu
Count int - Gpu
Power intLimit Percent - Id string
- Image
Name string - Last
Started stringAt - Last
Status stringChange - Locked bool
- Machine
Id string - Memory
In doubleGb - Name string
- Pod
Type string - Port int
- Ports string
- Registry
Runpod
Infra. Runpod. Inputs. Pod Registry - Template
Id string - Uptime
Seconds int - Vcpu
Count double - Version int
- Volume
Encrypted bool - Volume
In doubleGb - Volume
Key string - Volume
Mount stringPath - Env List<string>
- Gpus
List<Runpod
Infra. Runpod. Inputs. Gpu>
- Adjusted
Cost float64Per Hr - Ai
Api stringId - Api
Key string - Consumer
User stringId - Container
Disk intIn Gb - Container
Registry stringAuth Id - Cost
Multiplier float64 - Cost
Per float64Hr - Created
At string - Desired
Status string - Docker
Args string - Docker
Id string - Gpu
Count int - Gpu
Power intLimit Percent - Id string
- Image
Name string - Last
Started stringAt - Last
Status stringChange - Locked bool
- Machine
Id string - Memory
In float64Gb - Name string
- Pod
Type string - Port int
- Ports string
- Registry
Pod
Registry - Template
Id string - Uptime
Seconds int - Vcpu
Count float64 - Version int
- Volume
Encrypted bool - Volume
In float64Gb - Volume
Key string - Volume
Mount stringPath - Env []string
- Gpus []Gpu
- adjusted
Cost DoublePer Hr - ai
Api StringId - api
Key String - consumer
User StringId - container
Disk IntegerIn Gb - container
Registry StringAuth Id - cost
Multiplier Double - cost
Per DoubleHr - created
At String - desired
Status String - docker
Args String - docker
Id String - gpu
Count Integer - gpu
Power IntegerLimit Percent - id String
- image
Name String - last
Started StringAt - last
Status StringChange - locked Boolean
- machine
Id String - memory
In DoubleGb - name String
- pod
Type String - port Integer
- ports String
- registry
Pod
Registry - template
Id String - uptime
Seconds Integer - vcpu
Count Double - version Integer
- volume
Encrypted Boolean - volume
In DoubleGb - volume
Key String - volume
Mount StringPath - env List<String>
- gpus List<Gpu>
- adjusted
Cost numberPer Hr - ai
Api stringId - api
Key string - consumer
User stringId - container
Disk numberIn Gb - container
Registry stringAuth Id - cost
Multiplier number - cost
Per numberHr - created
At string - desired
Status string - docker
Args string - docker
Id string - gpu
Count number - gpu
Power numberLimit Percent - id string
- image
Name string - last
Started stringAt - last
Status stringChange - locked boolean
- machine
Id string - memory
In numberGb - name string
- pod
Type string - port number
- ports string
- registry
Pod
Registry - template
Id string - uptime
Seconds number - vcpu
Count number - version number
- volume
Encrypted boolean - volume
In numberGb - volume
Key string - volume
Mount stringPath - env string[]
- gpus Gpu[]
- adjusted_
cost_ floatper_ hr - ai_
api_ strid - api_
key str - consumer_
user_ strid - container_
disk_ intin_ gb - container_
registry_ strauth_ id - cost_
multiplier float - cost_
per_ floathr - created_
at str - desired_
status str - docker_
args str - docker_
id str - gpu_
count int - gpu_
power_ intlimit_ percent - id str
- image_
name str - last_
started_ strat - last_
status_ strchange - locked bool
- machine_
id str - memory_
in_ floatgb - name str
- pod_
type str - port int
- ports str
- registry
Pod
Registry - template_
id str - uptime_
seconds int - vcpu_
count float - version int
- volume_
encrypted bool - volume_
in_ floatgb - volume_
key str - volume_
mount_ strpath - env Sequence[str]
- gpus Sequence[Gpu]
- adjusted
Cost NumberPer Hr - ai
Api StringId - api
Key String - consumer
User StringId - container
Disk NumberIn Gb - container
Registry StringAuth Id - cost
Multiplier Number - cost
Per NumberHr - created
At String - desired
Status String - docker
Args String - docker
Id String - gpu
Count Number - gpu
Power NumberLimit Percent - id String
- image
Name String - last
Started StringAt - last
Status StringChange - locked Boolean
- machine
Id String - memory
In NumberGb - name String
- pod
Type String - port Number
- ports String
- registry Property Map
- template
Id String - uptime
Seconds Number - vcpu
Count Number - version Number
- volume
Encrypted Boolean - volume
In NumberGb - volume
Key String - volume
Mount StringPath - env List<String>
- gpus List<Property Map>
PodEnv, PodEnvArgs
PodRegistry, PodRegistryArgs
SavingsPlanInput, SavingsPlanInputArgs
- Plan
Length string - Upfront
Cost double
- Plan
Length string - Upfront
Cost float64
- plan
Length String - upfront
Cost Double
- plan
Length string - upfront
Cost number
- plan_
length str - upfront_
cost float
- plan
Length String - upfront
Cost Number
Package Details
- Repository
- runpod runpod/pulumi-runpod-native
- License
- Apache-2.0