published on Wednesday, Jul 3, 2024 by Runpod
published on Wednesday, Jul 3, 2024 by Runpod
Create NetworkStorage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkStorage(name: string, args: NetworkStorageArgs, opts?: CustomResourceOptions);@overload
def NetworkStorage(resource_name: str,
args: NetworkStorageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkStorage(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_center_id: Optional[str] = None,
name: Optional[str] = None,
size: Optional[int] = None)func NewNetworkStorage(ctx *Context, name string, args NetworkStorageArgs, opts ...ResourceOption) (*NetworkStorage, error)public NetworkStorage(string name, NetworkStorageArgs args, CustomResourceOptions? opts = null)
public NetworkStorage(String name, NetworkStorageArgs args)
public NetworkStorage(String name, NetworkStorageArgs args, CustomResourceOptions options)
type: runpod:NetworkStorage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "runpod_network_storage" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args NetworkStorageArgs
- 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 NetworkStorageArgs
- 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 NetworkStorageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkStorageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkStorageArgs
- 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 networkStorageResource = new Runpod.NetworkStorage("networkStorageResource", new()
{
DataCenterId = "string",
Name = "string",
Size = 0,
});
example, err := runpod.NewNetworkStorage(ctx, "networkStorageResource", &runpod.NetworkStorageArgs{
DataCenterId: pulumi.String("string"),
Name: pulumi.String("string"),
Size: pulumi.Int(0),
})
resource "runpod_network_storage" "networkStorageResource" {
lifecycle {
create_before_destroy = true
}
data_center_id = "string"
name = "string"
size = 0
}
var networkStorageResource = new NetworkStorage("networkStorageResource", NetworkStorageArgs.builder()
.dataCenterId("string")
.name("string")
.size(0)
.build());
network_storage_resource = runpod.NetworkStorage("networkStorageResource",
data_center_id="string",
name="string",
size=0)
const networkStorageResource = new runpod.NetworkStorage("networkStorageResource", {
dataCenterId: "string",
name: "string",
size: 0,
});
type: runpod:NetworkStorage
properties:
dataCenterId: string
name: string
size: 0
NetworkStorage 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 NetworkStorage resource accepts the following input properties:
- Data
Center stringId - Name string
- Size int
- Data
Center stringId - Name string
- Size int
- data_
center_ stringid - name string
- size number
- data
Center StringId - name String
- size Integer
- data
Center stringId - name string
- size number
- data_
center_ strid - name str
- size int
- data
Center StringId - name String
- size Number
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkStorage resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Storage RunpodInfra. Runpod. Outputs. Network Storage
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Storage NetworkStorage Type
- id string
- The provider-assigned unique ID for this managed resource.
- network_
storage object
- id String
- The provider-assigned unique ID for this managed resource.
- network
Storage NetworkStorage
- id string
- The provider-assigned unique ID for this managed resource.
- network
Storage NetworkStorage
- id str
- The provider-assigned unique ID for this managed resource.
- network_
storage NetworkStorage
- id String
- The provider-assigned unique ID for this managed resource.
- network
Storage Property Map
Look up Existing NetworkStorage Resource
Get an existing NetworkStorage 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>, opts?: CustomResourceOptions): NetworkStorage@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> NetworkStoragefunc GetNetworkStorage(ctx *Context, name string, id IDInput, state *NetworkStorageState, opts ...ResourceOption) (*NetworkStorage, error)public static NetworkStorage Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static NetworkStorage get(String name, Output<String> id, CustomResourceOptions options)resources: existingNetworkStorage: type: runpod:NetworkStorage get: id: ${id}import {
to = runpod_network_storage.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state NetworkStorageState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
DataCenter, DataCenterArgs
- Id string
- Location string
- Name string
- Storage
Support bool
- Id string
- Location string
- Name string
- Storage
Support bool
- id string
- location string
- name string
- storage_
support bool
- id String
- location String
- name String
- storage
Support Boolean
- id string
- location string
- name string
- storage
Support boolean
- id str
- location str
- name str
- storage_
support bool
- id String
- location String
- name String
- storage
Support Boolean
NetworkStorage, NetworkStorageArgs
- Data
Center RunpodInfra. Runpod. Inputs. Data Center - Data
Center stringId - Id string
- Name string
- Size int
- Data
Center DataCenter - Data
Center stringId - Id string
- Name string
- Size int
- data_
center object - data_
center_ stringid - id string
- name string
- size number
- data
Center DataCenter - data
Center StringId - id String
- name String
- size Integer
- data
Center DataCenter - data
Center stringId - id string
- name string
- size number
- data_
center DataCenter - data_
center_ strid - id str
- name str
- size int
- data
Center Property Map - data
Center StringId - id String
- name String
- size Number
Package Details
- Repository
- runpod runpod/pulumi-runpod-native
- License
- Apache-2.0
published on Wednesday, Jul 3, 2024 by Runpod