Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type GetNamespacesArgs
- type GetNamespacesNamespace
- type GetNamespacesNamespaceArgs
- type GetNamespacesNamespaceArray
- func (GetNamespacesNamespaceArray) ElementType() reflect.Type
- func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
- func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
- type GetNamespacesNamespaceArrayInput
- type GetNamespacesNamespaceArrayOutput
- func (GetNamespacesNamespaceArrayOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
- func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
- type GetNamespacesNamespaceInput
- type GetNamespacesNamespaceNetwork
- type GetNamespacesNamespaceNetworkArgs
- func (GetNamespacesNamespaceNetworkArgs) ElementType() reflect.Type
- func (i GetNamespacesNamespaceNetworkArgs) ToGetNamespacesNamespaceNetworkOutput() GetNamespacesNamespaceNetworkOutput
- func (i GetNamespacesNamespaceNetworkArgs) ToGetNamespacesNamespaceNetworkOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkOutput
- type GetNamespacesNamespaceNetworkArray
- func (GetNamespacesNamespaceNetworkArray) ElementType() reflect.Type
- func (i GetNamespacesNamespaceNetworkArray) ToGetNamespacesNamespaceNetworkArrayOutput() GetNamespacesNamespaceNetworkArrayOutput
- func (i GetNamespacesNamespaceNetworkArray) ToGetNamespacesNamespaceNetworkArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkArrayOutput
- type GetNamespacesNamespaceNetworkArrayInput
- type GetNamespacesNamespaceNetworkArrayOutput
- func (GetNamespacesNamespaceNetworkArrayOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceNetworkArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceNetworkOutput
- func (o GetNamespacesNamespaceNetworkArrayOutput) ToGetNamespacesNamespaceNetworkArrayOutput() GetNamespacesNamespaceNetworkArrayOutput
- func (o GetNamespacesNamespaceNetworkArrayOutput) ToGetNamespacesNamespaceNetworkArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkArrayOutput
- type GetNamespacesNamespaceNetworkInput
- type GetNamespacesNamespaceNetworkOutput
- func (GetNamespacesNamespaceNetworkOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceNetworkOutput) Name() pulumi.StringOutput
- func (o GetNamespacesNamespaceNetworkOutput) SecurityGroupId() pulumi.StringOutput
- func (o GetNamespacesNamespaceNetworkOutput) ToGetNamespacesNamespaceNetworkOutput() GetNamespacesNamespaceNetworkOutput
- func (o GetNamespacesNamespaceNetworkOutput) ToGetNamespacesNamespaceNetworkOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkOutput
- func (o GetNamespacesNamespaceNetworkOutput) Vpcs() GetNamespacesNamespaceNetworkVpcArrayOutput
- type GetNamespacesNamespaceNetworkVpc
- type GetNamespacesNamespaceNetworkVpcArgs
- func (GetNamespacesNamespaceNetworkVpcArgs) ElementType() reflect.Type
- func (i GetNamespacesNamespaceNetworkVpcArgs) ToGetNamespacesNamespaceNetworkVpcOutput() GetNamespacesNamespaceNetworkVpcOutput
- func (i GetNamespacesNamespaceNetworkVpcArgs) ToGetNamespacesNamespaceNetworkVpcOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkVpcOutput
- type GetNamespacesNamespaceNetworkVpcArray
- func (GetNamespacesNamespaceNetworkVpcArray) ElementType() reflect.Type
- func (i GetNamespacesNamespaceNetworkVpcArray) ToGetNamespacesNamespaceNetworkVpcArrayOutput() GetNamespacesNamespaceNetworkVpcArrayOutput
- func (i GetNamespacesNamespaceNetworkVpcArray) ToGetNamespacesNamespaceNetworkVpcArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkVpcArrayOutput
- type GetNamespacesNamespaceNetworkVpcArrayInput
- type GetNamespacesNamespaceNetworkVpcArrayOutput
- func (GetNamespacesNamespaceNetworkVpcArrayOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceNetworkVpcArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceNetworkVpcOutput
- func (o GetNamespacesNamespaceNetworkVpcArrayOutput) ToGetNamespacesNamespaceNetworkVpcArrayOutput() GetNamespacesNamespaceNetworkVpcArrayOutput
- func (o GetNamespacesNamespaceNetworkVpcArrayOutput) ToGetNamespacesNamespaceNetworkVpcArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkVpcArrayOutput
- type GetNamespacesNamespaceNetworkVpcInput
- type GetNamespacesNamespaceNetworkVpcOutput
- func (GetNamespacesNamespaceNetworkVpcOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceNetworkVpcOutput) Id() pulumi.StringOutput
- func (o GetNamespacesNamespaceNetworkVpcOutput) NetworkId() pulumi.StringOutput
- func (o GetNamespacesNamespaceNetworkVpcOutput) SubnetCidr() pulumi.StringOutput
- func (o GetNamespacesNamespaceNetworkVpcOutput) SubnetId() pulumi.StringOutput
- func (o GetNamespacesNamespaceNetworkVpcOutput) ToGetNamespacesNamespaceNetworkVpcOutput() GetNamespacesNamespaceNetworkVpcOutput
- func (o GetNamespacesNamespaceNetworkVpcOutput) ToGetNamespacesNamespaceNetworkVpcOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkVpcOutput
- type GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) AutoExpendEnabled() pulumi.BoolOutput
- func (o GetNamespacesNamespaceOutput) ContainerNetworkEnabled() pulumi.BoolOutput
- func (o GetNamespacesNamespaceOutput) CreatedAt() pulumi.StringOutput
- func (GetNamespacesNamespaceOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) Id() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) Name() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) Networks() GetNamespacesNamespaceNetworkArrayOutput
- func (o GetNamespacesNamespaceOutput) RbacEnabled() pulumi.BoolOutput
- func (o GetNamespacesNamespaceOutput) RecyclingInterval() pulumi.IntOutput
- func (o GetNamespacesNamespaceOutput) Status() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) Type() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) WarmupPoolSize() pulumi.IntOutput
- type GetNamespacesOutputArgs
- type GetNamespacesResult
- type GetNamespacesResultOutput
- func (GetNamespacesResultOutput) ElementType() reflect.Type
- func (o GetNamespacesResultOutput) EnterpriseProjectId() pulumi.StringPtrOutput
- func (o GetNamespacesResultOutput) Id() pulumi.StringOutput
- func (o GetNamespacesResultOutput) Name() pulumi.StringPtrOutput
- func (o GetNamespacesResultOutput) Namespaces() GetNamespacesNamespaceArrayOutput
- func (o GetNamespacesResultOutput) Region() pulumi.StringOutput
- func (o GetNamespacesResultOutput) ToGetNamespacesResultOutput() GetNamespacesResultOutput
- func (o GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext(ctx context.Context) GetNamespacesResultOutput
- func (o GetNamespacesResultOutput) Type() pulumi.StringPtrOutput
- type Namespace
- type NamespaceArgs
- type NamespaceArray
- type NamespaceArrayInput
- type NamespaceArrayOutput
- func (NamespaceArrayOutput) ElementType() reflect.Type
- func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
- type NamespaceInput
- type NamespaceMap
- type NamespaceMapInput
- type NamespaceMapOutput
- type NamespaceOutput
- func (o NamespaceOutput) AutoExpendEnabled() pulumi.BoolOutput
- func (o NamespaceOutput) ContainerNetworkEnabled() pulumi.BoolOutput
- func (o NamespaceOutput) CreatedAt() pulumi.StringOutput
- func (NamespaceOutput) ElementType() reflect.Type
- func (o NamespaceOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o NamespaceOutput) Name() pulumi.StringOutput
- func (o NamespaceOutput) RbacEnabled() pulumi.BoolPtrOutput
- func (o NamespaceOutput) RecyclingInterval() pulumi.IntOutput
- func (o NamespaceOutput) Region() pulumi.StringOutput
- func (o NamespaceOutput) Status() pulumi.StringOutput
- func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
- func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
- func (o NamespaceOutput) Type() pulumi.StringOutput
- func (o NamespaceOutput) WarmupPoolSize() pulumi.IntOutput
- type NamespaceState
- type Network
- type NetworkArgs
- type NetworkArray
- type NetworkArrayInput
- type NetworkArrayOutput
- type NetworkInput
- type NetworkMap
- type NetworkMapInput
- type NetworkMapOutput
- type NetworkOutput
- func (o NetworkOutput) AvailabilityZone() pulumi.StringOutput
- func (o NetworkOutput) Cidr() pulumi.StringOutput
- func (NetworkOutput) ElementType() reflect.Type
- func (o NetworkOutput) Name() pulumi.StringOutput
- func (o NetworkOutput) Namespace() pulumi.StringOutput
- func (o NetworkOutput) NetworkId() pulumi.StringOutput
- func (o NetworkOutput) Region() pulumi.StringOutput
- func (o NetworkOutput) SecurityGroupId() pulumi.StringOutput
- func (o NetworkOutput) Status() pulumi.StringOutput
- func (o NetworkOutput) SubnetId() pulumi.StringOutput
- func (o NetworkOutput) ToNetworkOutput() NetworkOutput
- func (o NetworkOutput) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
- func (o NetworkOutput) VpcId() pulumi.StringOutput
- type NetworkState
- type Pvc
- type PvcArgs
- type PvcArray
- type PvcArrayInput
- type PvcArrayOutput
- type PvcInput
- type PvcMap
- type PvcMapInput
- type PvcMapOutput
- type PvcOutput
- func (o PvcOutput) AccessModes() pulumi.StringArrayOutput
- func (o PvcOutput) CreationTimestamp() pulumi.StringOutput
- func (o PvcOutput) DeviceMountPath() pulumi.StringOutput
- func (PvcOutput) ElementType() reflect.Type
- func (o PvcOutput) Enable() pulumi.BoolOutput
- func (o PvcOutput) Name() pulumi.StringOutput
- func (o PvcOutput) Namespace() pulumi.StringOutput
- func (o PvcOutput) Region() pulumi.StringOutput
- func (o PvcOutput) Status() pulumi.StringOutput
- func (o PvcOutput) ToPvcOutput() PvcOutput
- func (o PvcOutput) ToPvcOutputWithContext(ctx context.Context) PvcOutput
- func (o PvcOutput) VolumeId() pulumi.StringOutput
- func (o PvcOutput) VolumeType() pulumi.StringPtrOutput
- type PvcState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type GetNamespacesArgs ¶
type GetNamespacesArgs struct { // Specifies the enterprise project ID in UUID format. EnterpriseProjectId *string `pulumi:"enterpriseProjectId"` // Specifies th name of the specified CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. Name *string `pulumi:"name"` // Specifies the region in which to obtain the CCI namespace list. // If omitted, the provider-level region will be used. Region *string `pulumi:"region"` // Specifies the CCI namespace type. // The valid values are **general-computing** and **gpu-accelerated**. Type *string `pulumi:"type"` }
A collection of arguments for invoking getNamespaces.
type GetNamespacesNamespace ¶
type GetNamespacesNamespace struct { // Whether elastic scheduling is enabled. AutoExpendEnabled bool `pulumi:"autoExpendEnabled"` // Whether container network is enabled. ContainerNetworkEnabled bool `pulumi:"containerNetworkEnabled"` // The time when the namespace was created in UTC format, such as **2021-09-27T01:30:39Z**. CreatedAt string `pulumi:"createdAt"` // Specifies the enterprise project ID in UUID format. EnterpriseProjectId string `pulumi:"enterpriseProjectId"` // The VPC ID in UUID format. Id string `pulumi:"id"` // Specifies th name of the specified CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. Name string `pulumi:"name"` // The network information of the CCI namespace. The structure is documented below. Networks []GetNamespacesNamespaceNetwork `pulumi:"networks"` // Whether Role-based access control is enabled. // After the RBAC permission is enabled, the user's use of resources under the namespace will be controlled by the RBAC // permission. RbacEnabled bool `pulumi:"rbacEnabled"` // The IP address recycling interval in hour. // The idle IP resources from the elastic expansion of the IP resource pool can be recycled within this time. RecyclingInterval int `pulumi:"recyclingInterval"` // The CCI namespace status. Status string `pulumi:"status"` // Specifies the CCI namespace type. // The valid values are **general-computing** and **gpu-accelerated**. Type string `pulumi:"type"` // The size of IP pool to warm-up. WarmupPoolSize int `pulumi:"warmupPoolSize"` }
type GetNamespacesNamespaceArgs ¶
type GetNamespacesNamespaceArgs struct { // Whether elastic scheduling is enabled. AutoExpendEnabled pulumi.BoolInput `pulumi:"autoExpendEnabled"` // Whether container network is enabled. ContainerNetworkEnabled pulumi.BoolInput `pulumi:"containerNetworkEnabled"` // The time when the namespace was created in UTC format, such as **2021-09-27T01:30:39Z**. CreatedAt pulumi.StringInput `pulumi:"createdAt"` // Specifies the enterprise project ID in UUID format. EnterpriseProjectId pulumi.StringInput `pulumi:"enterpriseProjectId"` // The VPC ID in UUID format. Id pulumi.StringInput `pulumi:"id"` // Specifies th name of the specified CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. Name pulumi.StringInput `pulumi:"name"` // The network information of the CCI namespace. The structure is documented below. Networks GetNamespacesNamespaceNetworkArrayInput `pulumi:"networks"` // Whether Role-based access control is enabled. // After the RBAC permission is enabled, the user's use of resources under the namespace will be controlled by the RBAC // permission. RbacEnabled pulumi.BoolInput `pulumi:"rbacEnabled"` // The IP address recycling interval in hour. // The idle IP resources from the elastic expansion of the IP resource pool can be recycled within this time. RecyclingInterval pulumi.IntInput `pulumi:"recyclingInterval"` // The CCI namespace status. Status pulumi.StringInput `pulumi:"status"` // Specifies the CCI namespace type. // The valid values are **general-computing** and **gpu-accelerated**. Type pulumi.StringInput `pulumi:"type"` // The size of IP pool to warm-up. WarmupPoolSize pulumi.IntInput `pulumi:"warmupPoolSize"` }
func (GetNamespacesNamespaceArgs) ElementType ¶
func (GetNamespacesNamespaceArgs) ElementType() reflect.Type
func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput ¶
func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext ¶
func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
type GetNamespacesNamespaceArray ¶
type GetNamespacesNamespaceArray []GetNamespacesNamespaceInput
func (GetNamespacesNamespaceArray) ElementType ¶
func (GetNamespacesNamespaceArray) ElementType() reflect.Type
func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput ¶
func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext ¶
func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
type GetNamespacesNamespaceArrayInput ¶
type GetNamespacesNamespaceArrayInput interface { pulumi.Input ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput ToGetNamespacesNamespaceArrayOutputWithContext(context.Context) GetNamespacesNamespaceArrayOutput }
GetNamespacesNamespaceArrayInput is an input type that accepts GetNamespacesNamespaceArray and GetNamespacesNamespaceArrayOutput values. You can construct a concrete instance of `GetNamespacesNamespaceArrayInput` via:
GetNamespacesNamespaceArray{ GetNamespacesNamespaceArgs{...} }
type GetNamespacesNamespaceArrayOutput ¶
type GetNamespacesNamespaceArrayOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceArrayOutput) ElementType ¶
func (GetNamespacesNamespaceArrayOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceArrayOutput) Index ¶
func (o GetNamespacesNamespaceArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput ¶
func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext ¶
func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
type GetNamespacesNamespaceInput ¶
type GetNamespacesNamespaceInput interface { pulumi.Input ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput ToGetNamespacesNamespaceOutputWithContext(context.Context) GetNamespacesNamespaceOutput }
GetNamespacesNamespaceInput is an input type that accepts GetNamespacesNamespaceArgs and GetNamespacesNamespaceOutput values. You can construct a concrete instance of `GetNamespacesNamespaceInput` via:
GetNamespacesNamespaceArgs{...}
type GetNamespacesNamespaceNetwork ¶
type GetNamespacesNamespaceNetwork struct { // Specifies th name of the specified CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. Name string `pulumi:"name"` // The default security group ID in UUID format. SecurityGroupId string `pulumi:"securityGroupId"` // The network information of the VPC under the CCI network. The structure is documented below. Vpcs []GetNamespacesNamespaceNetworkVpc `pulumi:"vpcs"` }
type GetNamespacesNamespaceNetworkArgs ¶
type GetNamespacesNamespaceNetworkArgs struct { // Specifies th name of the specified CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. Name pulumi.StringInput `pulumi:"name"` // The default security group ID in UUID format. SecurityGroupId pulumi.StringInput `pulumi:"securityGroupId"` // The network information of the VPC under the CCI network. The structure is documented below. Vpcs GetNamespacesNamespaceNetworkVpcArrayInput `pulumi:"vpcs"` }
func (GetNamespacesNamespaceNetworkArgs) ElementType ¶
func (GetNamespacesNamespaceNetworkArgs) ElementType() reflect.Type
func (GetNamespacesNamespaceNetworkArgs) ToGetNamespacesNamespaceNetworkOutput ¶
func (i GetNamespacesNamespaceNetworkArgs) ToGetNamespacesNamespaceNetworkOutput() GetNamespacesNamespaceNetworkOutput
func (GetNamespacesNamespaceNetworkArgs) ToGetNamespacesNamespaceNetworkOutputWithContext ¶
func (i GetNamespacesNamespaceNetworkArgs) ToGetNamespacesNamespaceNetworkOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkOutput
type GetNamespacesNamespaceNetworkArray ¶
type GetNamespacesNamespaceNetworkArray []GetNamespacesNamespaceNetworkInput
func (GetNamespacesNamespaceNetworkArray) ElementType ¶
func (GetNamespacesNamespaceNetworkArray) ElementType() reflect.Type
func (GetNamespacesNamespaceNetworkArray) ToGetNamespacesNamespaceNetworkArrayOutput ¶
func (i GetNamespacesNamespaceNetworkArray) ToGetNamespacesNamespaceNetworkArrayOutput() GetNamespacesNamespaceNetworkArrayOutput
func (GetNamespacesNamespaceNetworkArray) ToGetNamespacesNamespaceNetworkArrayOutputWithContext ¶
func (i GetNamespacesNamespaceNetworkArray) ToGetNamespacesNamespaceNetworkArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkArrayOutput
type GetNamespacesNamespaceNetworkArrayInput ¶
type GetNamespacesNamespaceNetworkArrayInput interface { pulumi.Input ToGetNamespacesNamespaceNetworkArrayOutput() GetNamespacesNamespaceNetworkArrayOutput ToGetNamespacesNamespaceNetworkArrayOutputWithContext(context.Context) GetNamespacesNamespaceNetworkArrayOutput }
GetNamespacesNamespaceNetworkArrayInput is an input type that accepts GetNamespacesNamespaceNetworkArray and GetNamespacesNamespaceNetworkArrayOutput values. You can construct a concrete instance of `GetNamespacesNamespaceNetworkArrayInput` via:
GetNamespacesNamespaceNetworkArray{ GetNamespacesNamespaceNetworkArgs{...} }
type GetNamespacesNamespaceNetworkArrayOutput ¶
type GetNamespacesNamespaceNetworkArrayOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceNetworkArrayOutput) ElementType ¶
func (GetNamespacesNamespaceNetworkArrayOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceNetworkArrayOutput) ToGetNamespacesNamespaceNetworkArrayOutput ¶
func (o GetNamespacesNamespaceNetworkArrayOutput) ToGetNamespacesNamespaceNetworkArrayOutput() GetNamespacesNamespaceNetworkArrayOutput
func (GetNamespacesNamespaceNetworkArrayOutput) ToGetNamespacesNamespaceNetworkArrayOutputWithContext ¶
func (o GetNamespacesNamespaceNetworkArrayOutput) ToGetNamespacesNamespaceNetworkArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkArrayOutput
type GetNamespacesNamespaceNetworkInput ¶
type GetNamespacesNamespaceNetworkInput interface { pulumi.Input ToGetNamespacesNamespaceNetworkOutput() GetNamespacesNamespaceNetworkOutput ToGetNamespacesNamespaceNetworkOutputWithContext(context.Context) GetNamespacesNamespaceNetworkOutput }
GetNamespacesNamespaceNetworkInput is an input type that accepts GetNamespacesNamespaceNetworkArgs and GetNamespacesNamespaceNetworkOutput values. You can construct a concrete instance of `GetNamespacesNamespaceNetworkInput` via:
GetNamespacesNamespaceNetworkArgs{...}
type GetNamespacesNamespaceNetworkOutput ¶
type GetNamespacesNamespaceNetworkOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceNetworkOutput) ElementType ¶
func (GetNamespacesNamespaceNetworkOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceNetworkOutput) Name ¶
func (o GetNamespacesNamespaceNetworkOutput) Name() pulumi.StringOutput
Specifies th name of the specified CCI namespace. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, and must start and end with lowercase letters and digits.
func (GetNamespacesNamespaceNetworkOutput) SecurityGroupId ¶
func (o GetNamespacesNamespaceNetworkOutput) SecurityGroupId() pulumi.StringOutput
The default security group ID in UUID format.
func (GetNamespacesNamespaceNetworkOutput) ToGetNamespacesNamespaceNetworkOutput ¶
func (o GetNamespacesNamespaceNetworkOutput) ToGetNamespacesNamespaceNetworkOutput() GetNamespacesNamespaceNetworkOutput
func (GetNamespacesNamespaceNetworkOutput) ToGetNamespacesNamespaceNetworkOutputWithContext ¶
func (o GetNamespacesNamespaceNetworkOutput) ToGetNamespacesNamespaceNetworkOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkOutput
type GetNamespacesNamespaceNetworkVpc ¶
type GetNamespacesNamespaceNetworkVpc struct { // The VPC ID in UUID format. Id string `pulumi:"id"` // The network ID of the VPC subnet in UUID format. NetworkId string `pulumi:"networkId"` // The subnet CIDR block. SubnetCidr string `pulumi:"subnetCidr"` // The VPC subnet ID in UUID format. SubnetId string `pulumi:"subnetId"` }
type GetNamespacesNamespaceNetworkVpcArgs ¶
type GetNamespacesNamespaceNetworkVpcArgs struct { // The VPC ID in UUID format. Id pulumi.StringInput `pulumi:"id"` // The network ID of the VPC subnet in UUID format. NetworkId pulumi.StringInput `pulumi:"networkId"` // The subnet CIDR block. SubnetCidr pulumi.StringInput `pulumi:"subnetCidr"` // The VPC subnet ID in UUID format. SubnetId pulumi.StringInput `pulumi:"subnetId"` }
func (GetNamespacesNamespaceNetworkVpcArgs) ElementType ¶
func (GetNamespacesNamespaceNetworkVpcArgs) ElementType() reflect.Type
func (GetNamespacesNamespaceNetworkVpcArgs) ToGetNamespacesNamespaceNetworkVpcOutput ¶
func (i GetNamespacesNamespaceNetworkVpcArgs) ToGetNamespacesNamespaceNetworkVpcOutput() GetNamespacesNamespaceNetworkVpcOutput
func (GetNamespacesNamespaceNetworkVpcArgs) ToGetNamespacesNamespaceNetworkVpcOutputWithContext ¶
func (i GetNamespacesNamespaceNetworkVpcArgs) ToGetNamespacesNamespaceNetworkVpcOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkVpcOutput
type GetNamespacesNamespaceNetworkVpcArray ¶
type GetNamespacesNamespaceNetworkVpcArray []GetNamespacesNamespaceNetworkVpcInput
func (GetNamespacesNamespaceNetworkVpcArray) ElementType ¶
func (GetNamespacesNamespaceNetworkVpcArray) ElementType() reflect.Type
func (GetNamespacesNamespaceNetworkVpcArray) ToGetNamespacesNamespaceNetworkVpcArrayOutput ¶
func (i GetNamespacesNamespaceNetworkVpcArray) ToGetNamespacesNamespaceNetworkVpcArrayOutput() GetNamespacesNamespaceNetworkVpcArrayOutput
func (GetNamespacesNamespaceNetworkVpcArray) ToGetNamespacesNamespaceNetworkVpcArrayOutputWithContext ¶
func (i GetNamespacesNamespaceNetworkVpcArray) ToGetNamespacesNamespaceNetworkVpcArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkVpcArrayOutput
type GetNamespacesNamespaceNetworkVpcArrayInput ¶
type GetNamespacesNamespaceNetworkVpcArrayInput interface { pulumi.Input ToGetNamespacesNamespaceNetworkVpcArrayOutput() GetNamespacesNamespaceNetworkVpcArrayOutput ToGetNamespacesNamespaceNetworkVpcArrayOutputWithContext(context.Context) GetNamespacesNamespaceNetworkVpcArrayOutput }
GetNamespacesNamespaceNetworkVpcArrayInput is an input type that accepts GetNamespacesNamespaceNetworkVpcArray and GetNamespacesNamespaceNetworkVpcArrayOutput values. You can construct a concrete instance of `GetNamespacesNamespaceNetworkVpcArrayInput` via:
GetNamespacesNamespaceNetworkVpcArray{ GetNamespacesNamespaceNetworkVpcArgs{...} }
type GetNamespacesNamespaceNetworkVpcArrayOutput ¶
type GetNamespacesNamespaceNetworkVpcArrayOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceNetworkVpcArrayOutput) ElementType ¶
func (GetNamespacesNamespaceNetworkVpcArrayOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceNetworkVpcArrayOutput) ToGetNamespacesNamespaceNetworkVpcArrayOutput ¶
func (o GetNamespacesNamespaceNetworkVpcArrayOutput) ToGetNamespacesNamespaceNetworkVpcArrayOutput() GetNamespacesNamespaceNetworkVpcArrayOutput
func (GetNamespacesNamespaceNetworkVpcArrayOutput) ToGetNamespacesNamespaceNetworkVpcArrayOutputWithContext ¶
func (o GetNamespacesNamespaceNetworkVpcArrayOutput) ToGetNamespacesNamespaceNetworkVpcArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkVpcArrayOutput
type GetNamespacesNamespaceNetworkVpcInput ¶
type GetNamespacesNamespaceNetworkVpcInput interface { pulumi.Input ToGetNamespacesNamespaceNetworkVpcOutput() GetNamespacesNamespaceNetworkVpcOutput ToGetNamespacesNamespaceNetworkVpcOutputWithContext(context.Context) GetNamespacesNamespaceNetworkVpcOutput }
GetNamespacesNamespaceNetworkVpcInput is an input type that accepts GetNamespacesNamespaceNetworkVpcArgs and GetNamespacesNamespaceNetworkVpcOutput values. You can construct a concrete instance of `GetNamespacesNamespaceNetworkVpcInput` via:
GetNamespacesNamespaceNetworkVpcArgs{...}
type GetNamespacesNamespaceNetworkVpcOutput ¶
type GetNamespacesNamespaceNetworkVpcOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceNetworkVpcOutput) ElementType ¶
func (GetNamespacesNamespaceNetworkVpcOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceNetworkVpcOutput) Id ¶
func (o GetNamespacesNamespaceNetworkVpcOutput) Id() pulumi.StringOutput
The VPC ID in UUID format.
func (GetNamespacesNamespaceNetworkVpcOutput) NetworkId ¶
func (o GetNamespacesNamespaceNetworkVpcOutput) NetworkId() pulumi.StringOutput
The network ID of the VPC subnet in UUID format.
func (GetNamespacesNamespaceNetworkVpcOutput) SubnetCidr ¶
func (o GetNamespacesNamespaceNetworkVpcOutput) SubnetCidr() pulumi.StringOutput
The subnet CIDR block.
func (GetNamespacesNamespaceNetworkVpcOutput) SubnetId ¶
func (o GetNamespacesNamespaceNetworkVpcOutput) SubnetId() pulumi.StringOutput
The VPC subnet ID in UUID format.
func (GetNamespacesNamespaceNetworkVpcOutput) ToGetNamespacesNamespaceNetworkVpcOutput ¶
func (o GetNamespacesNamespaceNetworkVpcOutput) ToGetNamespacesNamespaceNetworkVpcOutput() GetNamespacesNamespaceNetworkVpcOutput
func (GetNamespacesNamespaceNetworkVpcOutput) ToGetNamespacesNamespaceNetworkVpcOutputWithContext ¶
func (o GetNamespacesNamespaceNetworkVpcOutput) ToGetNamespacesNamespaceNetworkVpcOutputWithContext(ctx context.Context) GetNamespacesNamespaceNetworkVpcOutput
type GetNamespacesNamespaceOutput ¶
type GetNamespacesNamespaceOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceOutput) AutoExpendEnabled ¶
func (o GetNamespacesNamespaceOutput) AutoExpendEnabled() pulumi.BoolOutput
Whether elastic scheduling is enabled.
func (GetNamespacesNamespaceOutput) ContainerNetworkEnabled ¶
func (o GetNamespacesNamespaceOutput) ContainerNetworkEnabled() pulumi.BoolOutput
Whether container network is enabled.
func (GetNamespacesNamespaceOutput) CreatedAt ¶
func (o GetNamespacesNamespaceOutput) CreatedAt() pulumi.StringOutput
The time when the namespace was created in UTC format, such as **2021-09-27T01:30:39Z**.
func (GetNamespacesNamespaceOutput) ElementType ¶
func (GetNamespacesNamespaceOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceOutput) EnterpriseProjectId ¶
func (o GetNamespacesNamespaceOutput) EnterpriseProjectId() pulumi.StringOutput
Specifies the enterprise project ID in UUID format.
func (GetNamespacesNamespaceOutput) Id ¶
func (o GetNamespacesNamespaceOutput) Id() pulumi.StringOutput
The VPC ID in UUID format.
func (GetNamespacesNamespaceOutput) Name ¶
func (o GetNamespacesNamespaceOutput) Name() pulumi.StringOutput
Specifies th name of the specified CCI namespace. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, and must start and end with lowercase letters and digits.
func (GetNamespacesNamespaceOutput) Networks ¶
func (o GetNamespacesNamespaceOutput) Networks() GetNamespacesNamespaceNetworkArrayOutput
The network information of the CCI namespace. The structure is documented below.
func (GetNamespacesNamespaceOutput) RbacEnabled ¶
func (o GetNamespacesNamespaceOutput) RbacEnabled() pulumi.BoolOutput
Whether Role-based access control is enabled. After the RBAC permission is enabled, the user's use of resources under the namespace will be controlled by the RBAC permission.
func (GetNamespacesNamespaceOutput) RecyclingInterval ¶
func (o GetNamespacesNamespaceOutput) RecyclingInterval() pulumi.IntOutput
The IP address recycling interval in hour. The idle IP resources from the elastic expansion of the IP resource pool can be recycled within this time.
func (GetNamespacesNamespaceOutput) Status ¶
func (o GetNamespacesNamespaceOutput) Status() pulumi.StringOutput
The CCI namespace status.
func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput ¶
func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext ¶
func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceOutput) Type ¶
func (o GetNamespacesNamespaceOutput) Type() pulumi.StringOutput
Specifies the CCI namespace type. The valid values are **general-computing** and **gpu-accelerated**.
func (GetNamespacesNamespaceOutput) WarmupPoolSize ¶
func (o GetNamespacesNamespaceOutput) WarmupPoolSize() pulumi.IntOutput
The size of IP pool to warm-up.
type GetNamespacesOutputArgs ¶
type GetNamespacesOutputArgs struct { // Specifies the enterprise project ID in UUID format. EnterpriseProjectId pulumi.StringPtrInput `pulumi:"enterpriseProjectId"` // Specifies th name of the specified CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. Name pulumi.StringPtrInput `pulumi:"name"` // Specifies the region in which to obtain the CCI namespace list. // If omitted, the provider-level region will be used. Region pulumi.StringPtrInput `pulumi:"region"` // Specifies the CCI namespace type. // The valid values are **general-computing** and **gpu-accelerated**. Type pulumi.StringPtrInput `pulumi:"type"` }
A collection of arguments for invoking getNamespaces.
func (GetNamespacesOutputArgs) ElementType ¶
func (GetNamespacesOutputArgs) ElementType() reflect.Type
type GetNamespacesResult ¶
type GetNamespacesResult struct { // The enterprise project ID in UUID format. EnterpriseProjectId *string `pulumi:"enterpriseProjectId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The CCI network name. Name *string `pulumi:"name"` // All CCI namespaces that meet the query parameters. Namespaces []GetNamespacesNamespace `pulumi:"namespaces"` Region string `pulumi:"region"` // The CCI namespace type. Type *string `pulumi:"type"` }
A collection of values returned by getNamespaces.
func GetNamespaces ¶
func GetNamespaces(ctx *pulumi.Context, args *GetNamespacesArgs, opts ...pulumi.InvokeOption) (*GetNamespacesResult, error)
Use this data source to obtain CCI namespaces within HuaweiCloud.
## Example Usage ### Get the specified namespace details
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cci" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Cci" "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, "") namespaceName := cfg.RequireObject("namespaceName") _, err := Cci.GetNamespaces(ctx, &cci.GetNamespacesArgs{ Name: pulumi.StringRef(namespaceName), }, nil) if err != nil { return err } return nil }) }
```
type GetNamespacesResultOutput ¶
type GetNamespacesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getNamespaces.
func GetNamespacesOutput ¶
func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput
func (GetNamespacesResultOutput) ElementType ¶
func (GetNamespacesResultOutput) ElementType() reflect.Type
func (GetNamespacesResultOutput) EnterpriseProjectId ¶
func (o GetNamespacesResultOutput) EnterpriseProjectId() pulumi.StringPtrOutput
The enterprise project ID in UUID format.
func (GetNamespacesResultOutput) Id ¶
func (o GetNamespacesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetNamespacesResultOutput) Name ¶
func (o GetNamespacesResultOutput) Name() pulumi.StringPtrOutput
The CCI network name.
func (GetNamespacesResultOutput) Namespaces ¶
func (o GetNamespacesResultOutput) Namespaces() GetNamespacesNamespaceArrayOutput
All CCI namespaces that meet the query parameters.
func (GetNamespacesResultOutput) Region ¶
func (o GetNamespacesResultOutput) Region() pulumi.StringOutput
func (GetNamespacesResultOutput) ToGetNamespacesResultOutput ¶
func (o GetNamespacesResultOutput) ToGetNamespacesResultOutput() GetNamespacesResultOutput
func (GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext ¶
func (o GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext(ctx context.Context) GetNamespacesResultOutput
func (GetNamespacesResultOutput) Type ¶
func (o GetNamespacesResultOutput) Type() pulumi.StringPtrOutput
The CCI namespace type.
type Namespace ¶
type Namespace struct { pulumi.CustomResourceState // Specifies whether elastic scheduling is enabled. // Changing this will create a new CCI namespace resource. AutoExpendEnabled pulumi.BoolOutput `pulumi:"autoExpendEnabled"` // Specifies whether container network is enabled. // Enable this option if you want CCI to start the container network in advance so that containers can connect to the // network as soon as they are started. Default to **false**. // Changing this will create a new CCI namespace resource. ContainerNetworkEnabled pulumi.BoolOutput `pulumi:"containerNetworkEnabled"` // The time when the namespace was created, in UTC format, e.g., **2021-09-27T01:30:39Z**. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // Specifies a unique ID in UUID format of enterprise project. // Changing this will create a new CCI namespace resource. EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"` // Specifies the unique name of the CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. // Changing this will create a new CCI namespace resource. Name pulumi.StringOutput `pulumi:"name"` // Specifies whether Role-based access control is enabled. // After the RBAC permission is enabled, the user's use of resources under the namespace will be controlled by the RBAC // permission. Changing this will create a new CCI namespace resource. RbacEnabled pulumi.BoolPtrOutput `pulumi:"rbacEnabled"` // Specifies the IP address recycling interval, in hour. // The idle IP resources from the elastic expansion of the IP resource pool can be recycled within this time. // Changing this will create a new CCI namespace resource. RecyclingInterval pulumi.IntOutput `pulumi:"recyclingInterval"` // Specifies the region in which to create the CCI namespace resource. // If omitted, the provider-level region will be used. Changing this will create a new CCI namespace resource. Region pulumi.StringOutput `pulumi:"region"` // Namespace status. Status pulumi.StringOutput `pulumi:"status"` // Specifies the CCI namespace type. // The valid values are **general-computing** and **gpu-accelerated**. // Changing this will create a new CCI namespace resource. Type pulumi.StringOutput `pulumi:"type"` // Specifies the size of IP pool to warm-up. // Changing this will create a new CCI namespace resource. WarmupPoolSize pulumi.IntOutput `pulumi:"warmupPoolSize"` }
Manages a CCI namespace resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cci" "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, "") namespaceName := cfg.RequireObject("namespaceName") _, err := Cci.NewNamespace(ctx, "test", &Cci.NamespaceArgs{ Type: pulumi.String("gpu-accelerated"), RbacEnabled: pulumi.Bool(true), }) if err != nil { return err } return nil }) }
```
## Import
CCI Namespaces can be imported using their `name`, e.g.,
```sh
$ pulumi import huaweicloud:Cci/namespace:Namespace test terraform-test
```
func GetNamespace ¶
func GetNamespace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error)
GetNamespace gets an existing Namespace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewNamespace ¶
func NewNamespace(ctx *pulumi.Context, name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, error)
NewNamespace registers a new resource with the given unique name, arguments, and options.
func (*Namespace) ElementType ¶
func (*Namespace) ToNamespaceOutput ¶
func (i *Namespace) ToNamespaceOutput() NamespaceOutput
func (*Namespace) ToNamespaceOutputWithContext ¶
func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
type NamespaceArgs ¶
type NamespaceArgs struct { // Specifies whether elastic scheduling is enabled. // Changing this will create a new CCI namespace resource. AutoExpendEnabled pulumi.BoolPtrInput // Specifies whether container network is enabled. // Enable this option if you want CCI to start the container network in advance so that containers can connect to the // network as soon as they are started. Default to **false**. // Changing this will create a new CCI namespace resource. ContainerNetworkEnabled pulumi.BoolPtrInput // Specifies a unique ID in UUID format of enterprise project. // Changing this will create a new CCI namespace resource. EnterpriseProjectId pulumi.StringPtrInput // Specifies the unique name of the CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. // Changing this will create a new CCI namespace resource. Name pulumi.StringPtrInput // Specifies whether Role-based access control is enabled. // After the RBAC permission is enabled, the user's use of resources under the namespace will be controlled by the RBAC // permission. Changing this will create a new CCI namespace resource. RbacEnabled pulumi.BoolPtrInput // Specifies the IP address recycling interval, in hour. // The idle IP resources from the elastic expansion of the IP resource pool can be recycled within this time. // Changing this will create a new CCI namespace resource. RecyclingInterval pulumi.IntPtrInput // Specifies the region in which to create the CCI namespace resource. // If omitted, the provider-level region will be used. Changing this will create a new CCI namespace resource. Region pulumi.StringPtrInput // Specifies the CCI namespace type. // The valid values are **general-computing** and **gpu-accelerated**. // Changing this will create a new CCI namespace resource. Type pulumi.StringInput // Specifies the size of IP pool to warm-up. // Changing this will create a new CCI namespace resource. WarmupPoolSize pulumi.IntPtrInput }
The set of arguments for constructing a Namespace resource.
func (NamespaceArgs) ElementType ¶
func (NamespaceArgs) ElementType() reflect.Type
type NamespaceArray ¶
type NamespaceArray []NamespaceInput
func (NamespaceArray) ElementType ¶
func (NamespaceArray) ElementType() reflect.Type
func (NamespaceArray) ToNamespaceArrayOutput ¶
func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArray) ToNamespaceArrayOutputWithContext ¶
func (i NamespaceArray) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceArrayInput ¶
type NamespaceArrayInput interface { pulumi.Input ToNamespaceArrayOutput() NamespaceArrayOutput ToNamespaceArrayOutputWithContext(context.Context) NamespaceArrayOutput }
NamespaceArrayInput is an input type that accepts NamespaceArray and NamespaceArrayOutput values. You can construct a concrete instance of `NamespaceArrayInput` via:
NamespaceArray{ NamespaceArgs{...} }
type NamespaceArrayOutput ¶
type NamespaceArrayOutput struct{ *pulumi.OutputState }
func (NamespaceArrayOutput) ElementType ¶
func (NamespaceArrayOutput) ElementType() reflect.Type
func (NamespaceArrayOutput) Index ¶
func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutput ¶
func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutputWithContext ¶
func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceInput ¶
type NamespaceInput interface { pulumi.Input ToNamespaceOutput() NamespaceOutput ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput }
type NamespaceMap ¶
type NamespaceMap map[string]NamespaceInput
func (NamespaceMap) ElementType ¶
func (NamespaceMap) ElementType() reflect.Type
func (NamespaceMap) ToNamespaceMapOutput ¶
func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMap) ToNamespaceMapOutputWithContext ¶
func (i NamespaceMap) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceMapInput ¶
type NamespaceMapInput interface { pulumi.Input ToNamespaceMapOutput() NamespaceMapOutput ToNamespaceMapOutputWithContext(context.Context) NamespaceMapOutput }
NamespaceMapInput is an input type that accepts NamespaceMap and NamespaceMapOutput values. You can construct a concrete instance of `NamespaceMapInput` via:
NamespaceMap{ "key": NamespaceArgs{...} }
type NamespaceMapOutput ¶
type NamespaceMapOutput struct{ *pulumi.OutputState }
func (NamespaceMapOutput) ElementType ¶
func (NamespaceMapOutput) ElementType() reflect.Type
func (NamespaceMapOutput) MapIndex ¶
func (o NamespaceMapOutput) MapIndex(k pulumi.StringInput) NamespaceOutput
func (NamespaceMapOutput) ToNamespaceMapOutput ¶
func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMapOutput) ToNamespaceMapOutputWithContext ¶
func (o NamespaceMapOutput) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceOutput ¶
type NamespaceOutput struct{ *pulumi.OutputState }
func (NamespaceOutput) AutoExpendEnabled ¶
func (o NamespaceOutput) AutoExpendEnabled() pulumi.BoolOutput
Specifies whether elastic scheduling is enabled. Changing this will create a new CCI namespace resource.
func (NamespaceOutput) ContainerNetworkEnabled ¶
func (o NamespaceOutput) ContainerNetworkEnabled() pulumi.BoolOutput
Specifies whether container network is enabled. Enable this option if you want CCI to start the container network in advance so that containers can connect to the network as soon as they are started. Default to **false**. Changing this will create a new CCI namespace resource.
func (NamespaceOutput) CreatedAt ¶
func (o NamespaceOutput) CreatedAt() pulumi.StringOutput
The time when the namespace was created, in UTC format, e.g., **2021-09-27T01:30:39Z**.
func (NamespaceOutput) ElementType ¶
func (NamespaceOutput) ElementType() reflect.Type
func (NamespaceOutput) EnterpriseProjectId ¶
func (o NamespaceOutput) EnterpriseProjectId() pulumi.StringOutput
Specifies a unique ID in UUID format of enterprise project. Changing this will create a new CCI namespace resource.
func (NamespaceOutput) Name ¶
func (o NamespaceOutput) Name() pulumi.StringOutput
Specifies the unique name of the CCI namespace. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, and must start and end with lowercase letters and digits. Changing this will create a new CCI namespace resource.
func (NamespaceOutput) RbacEnabled ¶
func (o NamespaceOutput) RbacEnabled() pulumi.BoolPtrOutput
Specifies whether Role-based access control is enabled. After the RBAC permission is enabled, the user's use of resources under the namespace will be controlled by the RBAC permission. Changing this will create a new CCI namespace resource.
func (NamespaceOutput) RecyclingInterval ¶
func (o NamespaceOutput) RecyclingInterval() pulumi.IntOutput
Specifies the IP address recycling interval, in hour. The idle IP resources from the elastic expansion of the IP resource pool can be recycled within this time. Changing this will create a new CCI namespace resource.
func (NamespaceOutput) Region ¶
func (o NamespaceOutput) Region() pulumi.StringOutput
Specifies the region in which to create the CCI namespace resource. If omitted, the provider-level region will be used. Changing this will create a new CCI namespace resource.
func (NamespaceOutput) Status ¶
func (o NamespaceOutput) Status() pulumi.StringOutput
Namespace status.
func (NamespaceOutput) ToNamespaceOutput ¶
func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
func (NamespaceOutput) ToNamespaceOutputWithContext ¶
func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
func (NamespaceOutput) Type ¶
func (o NamespaceOutput) Type() pulumi.StringOutput
Specifies the CCI namespace type. The valid values are **general-computing** and **gpu-accelerated**. Changing this will create a new CCI namespace resource.
func (NamespaceOutput) WarmupPoolSize ¶
func (o NamespaceOutput) WarmupPoolSize() pulumi.IntOutput
Specifies the size of IP pool to warm-up. Changing this will create a new CCI namespace resource.
type NamespaceState ¶
type NamespaceState struct { // Specifies whether elastic scheduling is enabled. // Changing this will create a new CCI namespace resource. AutoExpendEnabled pulumi.BoolPtrInput // Specifies whether container network is enabled. // Enable this option if you want CCI to start the container network in advance so that containers can connect to the // network as soon as they are started. Default to **false**. // Changing this will create a new CCI namespace resource. ContainerNetworkEnabled pulumi.BoolPtrInput // The time when the namespace was created, in UTC format, e.g., **2021-09-27T01:30:39Z**. CreatedAt pulumi.StringPtrInput // Specifies a unique ID in UUID format of enterprise project. // Changing this will create a new CCI namespace resource. EnterpriseProjectId pulumi.StringPtrInput // Specifies the unique name of the CCI namespace. // This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, // and must start and end with lowercase letters and digits. // Changing this will create a new CCI namespace resource. Name pulumi.StringPtrInput // Specifies whether Role-based access control is enabled. // After the RBAC permission is enabled, the user's use of resources under the namespace will be controlled by the RBAC // permission. Changing this will create a new CCI namespace resource. RbacEnabled pulumi.BoolPtrInput // Specifies the IP address recycling interval, in hour. // The idle IP resources from the elastic expansion of the IP resource pool can be recycled within this time. // Changing this will create a new CCI namespace resource. RecyclingInterval pulumi.IntPtrInput // Specifies the region in which to create the CCI namespace resource. // If omitted, the provider-level region will be used. Changing this will create a new CCI namespace resource. Region pulumi.StringPtrInput // Namespace status. Status pulumi.StringPtrInput // Specifies the CCI namespace type. // The valid values are **general-computing** and **gpu-accelerated**. // Changing this will create a new CCI namespace resource. Type pulumi.StringPtrInput // Specifies the size of IP pool to warm-up. // Changing this will create a new CCI namespace resource. WarmupPoolSize pulumi.IntPtrInput }
func (NamespaceState) ElementType ¶
func (NamespaceState) ElementType() reflect.Type
type Network ¶
type Network struct { pulumi.CustomResourceState // Specifies the availability zone (AZ) to which the CCI network // belongs. Changing this will create a new CCI network resource. AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"` // The network segment on which the subnet resides. Cidr pulumi.StringOutput `pulumi:"cidr"` // Specifies an unique name of the CCI network resource. // The name can contain a maximum of 200 characters, which may consist of lowercase letters, digits and hyphens (-). // The name must start and end with a lowercase letter or digit. Changing this will create a new CCI network resource. Name pulumi.StringOutput `pulumi:"name"` // Specifies the namespace to logically divide your cloud container instances // into different group. Changing this will create a new CCI network resource. Namespace pulumi.StringOutput `pulumi:"namespace"` // Specifies a network ID of the VPC subnet which the CCI network belongs to. // Changing this will create a new CCI network resource. NetworkId pulumi.StringOutput `pulumi:"networkId"` // Specifies the region in which to create the CCI network. // If omitted, the provider-level region will be used. Changing this will create a new CCI network resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies a security group ID to which the CCI network belongs to. // Changing this will create a new CCI network resource. SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"` // The CCI network status, including **Initializing**, **Pending** and **Active**. Status pulumi.StringOutput `pulumi:"status"` // IPv4 subnet ID. SubnetId pulumi.StringOutput `pulumi:"subnetId"` // VPC ID which the subnet and CCI network belongs to. VpcId pulumi.StringOutput `pulumi:"vpcId"` }
Manages a CCI Network resource within HuaweiCloud.
## Example Usage
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud" "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cci" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud" "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, "") namespaceName := cfg.RequireObject("namespaceName") networkName := cfg.RequireObject("networkName") vpcNetworkId := cfg.RequireObject("vpcNetworkId") securityGroupId := cfg.RequireObject("securityGroupId") testAvailabilityZones, err := huaweicloud.GetAvailabilityZones(ctx, nil, nil) if err != nil { return err } _, err = Cci.NewNetwork(ctx, "testNetwork", &Cci.NetworkArgs{ AvailabilityZone: pulumi.String(testAvailabilityZones.Names[0]), Namespace: pulumi.Any(namespaceName), NetworkId: pulumi.Any(vpcNetworkId), SecurityGroupId: pulumi.Any(securityGroupId), }) if err != nil { return err } return nil }) }
```
## Import
Networks can be imported using their `namespace` and `id`, separated by a slash, e.g.
```sh
$ pulumi import huaweicloud:Cci/network:Network test <namespace>/<id>
```
func GetNetwork ¶
func GetNetwork(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NetworkState, opts ...pulumi.ResourceOption) (*Network, error)
GetNetwork gets an existing Network resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewNetwork ¶
func NewNetwork(ctx *pulumi.Context, name string, args *NetworkArgs, opts ...pulumi.ResourceOption) (*Network, error)
NewNetwork registers a new resource with the given unique name, arguments, and options.
func (*Network) ElementType ¶
func (*Network) ToNetworkOutput ¶
func (i *Network) ToNetworkOutput() NetworkOutput
func (*Network) ToNetworkOutputWithContext ¶
func (i *Network) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
type NetworkArgs ¶
type NetworkArgs struct { // Specifies the availability zone (AZ) to which the CCI network // belongs. Changing this will create a new CCI network resource. AvailabilityZone pulumi.StringInput // Specifies an unique name of the CCI network resource. // The name can contain a maximum of 200 characters, which may consist of lowercase letters, digits and hyphens (-). // The name must start and end with a lowercase letter or digit. Changing this will create a new CCI network resource. Name pulumi.StringPtrInput // Specifies the namespace to logically divide your cloud container instances // into different group. Changing this will create a new CCI network resource. Namespace pulumi.StringInput // Specifies a network ID of the VPC subnet which the CCI network belongs to. // Changing this will create a new CCI network resource. NetworkId pulumi.StringInput // Specifies the region in which to create the CCI network. // If omitted, the provider-level region will be used. Changing this will create a new CCI network resource. Region pulumi.StringPtrInput // Specifies a security group ID to which the CCI network belongs to. // Changing this will create a new CCI network resource. SecurityGroupId pulumi.StringInput }
The set of arguments for constructing a Network resource.
func (NetworkArgs) ElementType ¶
func (NetworkArgs) ElementType() reflect.Type
type NetworkArray ¶
type NetworkArray []NetworkInput
func (NetworkArray) ElementType ¶
func (NetworkArray) ElementType() reflect.Type
func (NetworkArray) ToNetworkArrayOutput ¶
func (i NetworkArray) ToNetworkArrayOutput() NetworkArrayOutput
func (NetworkArray) ToNetworkArrayOutputWithContext ¶
func (i NetworkArray) ToNetworkArrayOutputWithContext(ctx context.Context) NetworkArrayOutput
type NetworkArrayInput ¶
type NetworkArrayInput interface { pulumi.Input ToNetworkArrayOutput() NetworkArrayOutput ToNetworkArrayOutputWithContext(context.Context) NetworkArrayOutput }
NetworkArrayInput is an input type that accepts NetworkArray and NetworkArrayOutput values. You can construct a concrete instance of `NetworkArrayInput` via:
NetworkArray{ NetworkArgs{...} }
type NetworkArrayOutput ¶
type NetworkArrayOutput struct{ *pulumi.OutputState }
func (NetworkArrayOutput) ElementType ¶
func (NetworkArrayOutput) ElementType() reflect.Type
func (NetworkArrayOutput) Index ¶
func (o NetworkArrayOutput) Index(i pulumi.IntInput) NetworkOutput
func (NetworkArrayOutput) ToNetworkArrayOutput ¶
func (o NetworkArrayOutput) ToNetworkArrayOutput() NetworkArrayOutput
func (NetworkArrayOutput) ToNetworkArrayOutputWithContext ¶
func (o NetworkArrayOutput) ToNetworkArrayOutputWithContext(ctx context.Context) NetworkArrayOutput
type NetworkInput ¶
type NetworkInput interface { pulumi.Input ToNetworkOutput() NetworkOutput ToNetworkOutputWithContext(ctx context.Context) NetworkOutput }
type NetworkMap ¶
type NetworkMap map[string]NetworkInput
func (NetworkMap) ElementType ¶
func (NetworkMap) ElementType() reflect.Type
func (NetworkMap) ToNetworkMapOutput ¶
func (i NetworkMap) ToNetworkMapOutput() NetworkMapOutput
func (NetworkMap) ToNetworkMapOutputWithContext ¶
func (i NetworkMap) ToNetworkMapOutputWithContext(ctx context.Context) NetworkMapOutput
type NetworkMapInput ¶
type NetworkMapInput interface { pulumi.Input ToNetworkMapOutput() NetworkMapOutput ToNetworkMapOutputWithContext(context.Context) NetworkMapOutput }
NetworkMapInput is an input type that accepts NetworkMap and NetworkMapOutput values. You can construct a concrete instance of `NetworkMapInput` via:
NetworkMap{ "key": NetworkArgs{...} }
type NetworkMapOutput ¶
type NetworkMapOutput struct{ *pulumi.OutputState }
func (NetworkMapOutput) ElementType ¶
func (NetworkMapOutput) ElementType() reflect.Type
func (NetworkMapOutput) MapIndex ¶
func (o NetworkMapOutput) MapIndex(k pulumi.StringInput) NetworkOutput
func (NetworkMapOutput) ToNetworkMapOutput ¶
func (o NetworkMapOutput) ToNetworkMapOutput() NetworkMapOutput
func (NetworkMapOutput) ToNetworkMapOutputWithContext ¶
func (o NetworkMapOutput) ToNetworkMapOutputWithContext(ctx context.Context) NetworkMapOutput
type NetworkOutput ¶
type NetworkOutput struct{ *pulumi.OutputState }
func (NetworkOutput) AvailabilityZone ¶
func (o NetworkOutput) AvailabilityZone() pulumi.StringOutput
Specifies the availability zone (AZ) to which the CCI network belongs. Changing this will create a new CCI network resource.
func (NetworkOutput) Cidr ¶
func (o NetworkOutput) Cidr() pulumi.StringOutput
The network segment on which the subnet resides.
func (NetworkOutput) ElementType ¶
func (NetworkOutput) ElementType() reflect.Type
func (NetworkOutput) Name ¶
func (o NetworkOutput) Name() pulumi.StringOutput
Specifies an unique name of the CCI network resource. The name can contain a maximum of 200 characters, which may consist of lowercase letters, digits and hyphens (-). The name must start and end with a lowercase letter or digit. Changing this will create a new CCI network resource.
func (NetworkOutput) Namespace ¶
func (o NetworkOutput) Namespace() pulumi.StringOutput
Specifies the namespace to logically divide your cloud container instances into different group. Changing this will create a new CCI network resource.
func (NetworkOutput) NetworkId ¶
func (o NetworkOutput) NetworkId() pulumi.StringOutput
Specifies a network ID of the VPC subnet which the CCI network belongs to. Changing this will create a new CCI network resource.
func (NetworkOutput) Region ¶
func (o NetworkOutput) Region() pulumi.StringOutput
Specifies the region in which to create the CCI network. If omitted, the provider-level region will be used. Changing this will create a new CCI network resource.
func (NetworkOutput) SecurityGroupId ¶
func (o NetworkOutput) SecurityGroupId() pulumi.StringOutput
Specifies a security group ID to which the CCI network belongs to. Changing this will create a new CCI network resource.
func (NetworkOutput) Status ¶
func (o NetworkOutput) Status() pulumi.StringOutput
The CCI network status, including **Initializing**, **Pending** and **Active**.
func (NetworkOutput) SubnetId ¶
func (o NetworkOutput) SubnetId() pulumi.StringOutput
IPv4 subnet ID.
func (NetworkOutput) ToNetworkOutput ¶
func (o NetworkOutput) ToNetworkOutput() NetworkOutput
func (NetworkOutput) ToNetworkOutputWithContext ¶
func (o NetworkOutput) ToNetworkOutputWithContext(ctx context.Context) NetworkOutput
func (NetworkOutput) VpcId ¶
func (o NetworkOutput) VpcId() pulumi.StringOutput
VPC ID which the subnet and CCI network belongs to.
type NetworkState ¶
type NetworkState struct { // Specifies the availability zone (AZ) to which the CCI network // belongs. Changing this will create a new CCI network resource. AvailabilityZone pulumi.StringPtrInput // The network segment on which the subnet resides. Cidr pulumi.StringPtrInput // Specifies an unique name of the CCI network resource. // The name can contain a maximum of 200 characters, which may consist of lowercase letters, digits and hyphens (-). // The name must start and end with a lowercase letter or digit. Changing this will create a new CCI network resource. Name pulumi.StringPtrInput // Specifies the namespace to logically divide your cloud container instances // into different group. Changing this will create a new CCI network resource. Namespace pulumi.StringPtrInput // Specifies a network ID of the VPC subnet which the CCI network belongs to. // Changing this will create a new CCI network resource. NetworkId pulumi.StringPtrInput // Specifies the region in which to create the CCI network. // If omitted, the provider-level region will be used. Changing this will create a new CCI network resource. Region pulumi.StringPtrInput // Specifies a security group ID to which the CCI network belongs to. // Changing this will create a new CCI network resource. SecurityGroupId pulumi.StringPtrInput // The CCI network status, including **Initializing**, **Pending** and **Active**. Status pulumi.StringPtrInput // IPv4 subnet ID. SubnetId pulumi.StringPtrInput // VPC ID which the subnet and CCI network belongs to. VpcId pulumi.StringPtrInput }
func (NetworkState) ElementType ¶
func (NetworkState) ElementType() reflect.Type
type Pvc ¶
type Pvc struct { pulumi.CustomResourceState // The access mode the volume should have. AccessModes pulumi.StringArrayOutput `pulumi:"accessModes"` // The server time when PVC was created. CreationTimestamp pulumi.StringOutput `pulumi:"creationTimestamp"` // Specifies the share path of the SFS storage bound to the CCI // Namespace. Required if `volumeType` is *nfs-rw*, *efs-standard* or *efs-performance*. Changing this will create a new // PVC resource. DeviceMountPath pulumi.StringOutput `pulumi:"deviceMountPath"` // Whether the PVC is available. Enable pulumi.BoolOutput `pulumi:"enable"` // Specifies the unique name of the PVC resource. This parameter can contain a // maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, and must start and end with // lowercase letters and digits. Changing this will create a new PVC resource. Name pulumi.StringOutput `pulumi:"name"` // Specifies the namespace to logically divide your cloud container instances // into different group. Changing this will create a new PVC resource. Namespace pulumi.StringOutput `pulumi:"namespace"` // Specifies the region in which to create the PVC resource. If omitted, the // provider-level region will be used. Changing this will create a new PVC resource. Region pulumi.StringOutput `pulumi:"region"` // The current phase of the PVC. Status pulumi.StringOutput `pulumi:"status"` // Specifies the ID of the storage bound to the CCI Namespace. Changing this // will create a new PVC resource. VolumeId pulumi.StringOutput `pulumi:"volumeId"` // Specifies the type of the storage bound to the CCI Namespace. The valid // values are *sas*, *ssd*, *sata*, *obs*, *nfs-rw*, *efs-standard* and *efs-performance*, Defalut to *sas*. Changing // this will create a new PVC resource. VolumeType pulumi.StringPtrOutput `pulumi:"volumeType"` }
Manages a CCI Persistent Volume Claim resource within HuaweiCloud.
## Example Usage ### Import an EVS volume
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cci" "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, "") volumeId := cfg.RequireObject("volumeId") namespace := cfg.RequireObject("namespace") pvcName := cfg.RequireObject("pvcName") _, err := Cci.NewPvc(ctx, "test", &Cci.PvcArgs{ Namespace: pulumi.Any(namespace), VolumeType: pulumi.String("ssd"), VolumeId: pulumi.Any(volumeId), }) if err != nil { return err } return nil }) }
``` ### Import an OBS bucket
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cci" "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, "") obsBucketName := cfg.RequireObject("obsBucketName") namespace := cfg.RequireObject("namespace") pvcName := cfg.RequireObject("pvcName") _, err := Cci.NewPvc(ctx, "test", &Cci.PvcArgs{ Namespace: pulumi.Any(namespace), VolumeType: pulumi.String("obs"), VolumeId: pulumi.Any(obsBucketName), }) if err != nil { return err } return nil }) }
``` ### Import an SFS
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cci" "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, "") sfsId := cfg.RequireObject("sfsId") namespace := cfg.RequireObject("namespace") pvcName := cfg.RequireObject("pvcName") exportLocation := cfg.RequireObject("exportLocation") _, err := Cci.NewPvc(ctx, "test", &Cci.PvcArgs{ Namespace: pulumi.Any(namespace), VolumeType: pulumi.String("nfs-rw"), VolumeId: pulumi.Any(sfsId), DeviceMountPath: pulumi.Any(exportLocation), }) if err != nil { return err } return nil }) }
``` ### Import an SFS Turbo
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Cci" "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, "") sfsTurboId := cfg.RequireObject("sfsTurboId") namespace := cfg.RequireObject("namespace") pvcName := cfg.RequireObject("pvcName") exportLocation := cfg.RequireObject("exportLocation") _, err := Cci.NewPvc(ctx, "test", &Cci.PvcArgs{ Namespace: pulumi.Any(namespace), VolumeType: pulumi.String("efs-standard"), VolumeId: pulumi.Any(sfsTurboId), DeviceMountPath: pulumi.Any(exportLocation), }) if err != nil { return err } return nil }) }
```
## Import
PVCs can be imported using the `namespace`, `volume_type` and `id`, e.g.
```sh
$ pulumi import huaweicloud:Cci/pvc:Pvc test <namespace>/<volume_type>/<id>
```
func GetPvc ¶
func GetPvc(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PvcState, opts ...pulumi.ResourceOption) (*Pvc, error)
GetPvc gets an existing Pvc resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPvc ¶
func NewPvc(ctx *pulumi.Context, name string, args *PvcArgs, opts ...pulumi.ResourceOption) (*Pvc, error)
NewPvc registers a new resource with the given unique name, arguments, and options.
func (*Pvc) ElementType ¶
func (*Pvc) ToPvcOutput ¶
type PvcArgs ¶
type PvcArgs struct { // Specifies the share path of the SFS storage bound to the CCI // Namespace. Required if `volumeType` is *nfs-rw*, *efs-standard* or *efs-performance*. Changing this will create a new // PVC resource. DeviceMountPath pulumi.StringPtrInput // Specifies the unique name of the PVC resource. This parameter can contain a // maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, and must start and end with // lowercase letters and digits. Changing this will create a new PVC resource. Name pulumi.StringPtrInput // Specifies the namespace to logically divide your cloud container instances // into different group. Changing this will create a new PVC resource. Namespace pulumi.StringInput // Specifies the region in which to create the PVC resource. If omitted, the // provider-level region will be used. Changing this will create a new PVC resource. Region pulumi.StringPtrInput // Specifies the ID of the storage bound to the CCI Namespace. Changing this // will create a new PVC resource. VolumeId pulumi.StringInput // Specifies the type of the storage bound to the CCI Namespace. The valid // values are *sas*, *ssd*, *sata*, *obs*, *nfs-rw*, *efs-standard* and *efs-performance*, Defalut to *sas*. Changing // this will create a new PVC resource. VolumeType pulumi.StringPtrInput }
The set of arguments for constructing a Pvc resource.
func (PvcArgs) ElementType ¶
type PvcArray ¶
type PvcArray []PvcInput
func (PvcArray) ElementType ¶
func (PvcArray) ToPvcArrayOutput ¶
func (i PvcArray) ToPvcArrayOutput() PvcArrayOutput
func (PvcArray) ToPvcArrayOutputWithContext ¶
func (i PvcArray) ToPvcArrayOutputWithContext(ctx context.Context) PvcArrayOutput
type PvcArrayInput ¶
type PvcArrayInput interface { pulumi.Input ToPvcArrayOutput() PvcArrayOutput ToPvcArrayOutputWithContext(context.Context) PvcArrayOutput }
PvcArrayInput is an input type that accepts PvcArray and PvcArrayOutput values. You can construct a concrete instance of `PvcArrayInput` via:
PvcArray{ PvcArgs{...} }
type PvcArrayOutput ¶
type PvcArrayOutput struct{ *pulumi.OutputState }
func (PvcArrayOutput) ElementType ¶
func (PvcArrayOutput) ElementType() reflect.Type
func (PvcArrayOutput) ToPvcArrayOutput ¶
func (o PvcArrayOutput) ToPvcArrayOutput() PvcArrayOutput
func (PvcArrayOutput) ToPvcArrayOutputWithContext ¶
func (o PvcArrayOutput) ToPvcArrayOutputWithContext(ctx context.Context) PvcArrayOutput
type PvcMap ¶
func (PvcMap) ElementType ¶
func (PvcMap) ToPvcMapOutput ¶
func (i PvcMap) ToPvcMapOutput() PvcMapOutput
func (PvcMap) ToPvcMapOutputWithContext ¶
func (i PvcMap) ToPvcMapOutputWithContext(ctx context.Context) PvcMapOutput
type PvcMapInput ¶
type PvcMapInput interface { pulumi.Input ToPvcMapOutput() PvcMapOutput ToPvcMapOutputWithContext(context.Context) PvcMapOutput }
PvcMapInput is an input type that accepts PvcMap and PvcMapOutput values. You can construct a concrete instance of `PvcMapInput` via:
PvcMap{ "key": PvcArgs{...} }
type PvcMapOutput ¶
type PvcMapOutput struct{ *pulumi.OutputState }
func (PvcMapOutput) ElementType ¶
func (PvcMapOutput) ElementType() reflect.Type
func (PvcMapOutput) MapIndex ¶
func (o PvcMapOutput) MapIndex(k pulumi.StringInput) PvcOutput
func (PvcMapOutput) ToPvcMapOutput ¶
func (o PvcMapOutput) ToPvcMapOutput() PvcMapOutput
func (PvcMapOutput) ToPvcMapOutputWithContext ¶
func (o PvcMapOutput) ToPvcMapOutputWithContext(ctx context.Context) PvcMapOutput
type PvcOutput ¶
type PvcOutput struct{ *pulumi.OutputState }
func (PvcOutput) AccessModes ¶
func (o PvcOutput) AccessModes() pulumi.StringArrayOutput
The access mode the volume should have.
func (PvcOutput) CreationTimestamp ¶
func (o PvcOutput) CreationTimestamp() pulumi.StringOutput
The server time when PVC was created.
func (PvcOutput) DeviceMountPath ¶
func (o PvcOutput) DeviceMountPath() pulumi.StringOutput
Specifies the share path of the SFS storage bound to the CCI Namespace. Required if `volumeType` is *nfs-rw*, *efs-standard* or *efs-performance*. Changing this will create a new PVC resource.
func (PvcOutput) ElementType ¶
func (PvcOutput) Enable ¶
func (o PvcOutput) Enable() pulumi.BoolOutput
Whether the PVC is available.
func (PvcOutput) Name ¶
func (o PvcOutput) Name() pulumi.StringOutput
Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
func (PvcOutput) Namespace ¶
func (o PvcOutput) Namespace() pulumi.StringOutput
Specifies the namespace to logically divide your cloud container instances into different group. Changing this will create a new PVC resource.
func (PvcOutput) Region ¶
func (o PvcOutput) Region() pulumi.StringOutput
Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
func (PvcOutput) Status ¶
func (o PvcOutput) Status() pulumi.StringOutput
The current phase of the PVC.
func (PvcOutput) ToPvcOutput ¶
func (PvcOutput) ToPvcOutputWithContext ¶
func (PvcOutput) VolumeId ¶
func (o PvcOutput) VolumeId() pulumi.StringOutput
Specifies the ID of the storage bound to the CCI Namespace. Changing this will create a new PVC resource.
func (PvcOutput) VolumeType ¶
func (o PvcOutput) VolumeType() pulumi.StringPtrOutput
Specifies the type of the storage bound to the CCI Namespace. The valid values are *sas*, *ssd*, *sata*, *obs*, *nfs-rw*, *efs-standard* and *efs-performance*, Defalut to *sas*. Changing this will create a new PVC resource.
type PvcState ¶
type PvcState struct { // The access mode the volume should have. AccessModes pulumi.StringArrayInput // The server time when PVC was created. CreationTimestamp pulumi.StringPtrInput // Specifies the share path of the SFS storage bound to the CCI // Namespace. Required if `volumeType` is *nfs-rw*, *efs-standard* or *efs-performance*. Changing this will create a new // PVC resource. DeviceMountPath pulumi.StringPtrInput // Whether the PVC is available. Enable pulumi.BoolPtrInput // Specifies the unique name of the PVC resource. This parameter can contain a // maximum of 63 characters, which may consist of lowercase letters, digits and hyphens, and must start and end with // lowercase letters and digits. Changing this will create a new PVC resource. Name pulumi.StringPtrInput // Specifies the namespace to logically divide your cloud container instances // into different group. Changing this will create a new PVC resource. Namespace pulumi.StringPtrInput // Specifies the region in which to create the PVC resource. If omitted, the // provider-level region will be used. Changing this will create a new PVC resource. Region pulumi.StringPtrInput // The current phase of the PVC. Status pulumi.StringPtrInput // Specifies the ID of the storage bound to the CCI Namespace. Changing this // will create a new PVC resource. VolumeId pulumi.StringPtrInput // Specifies the type of the storage bound to the CCI Namespace. The valid // values are *sas*, *ssd*, *sata*, *obs*, *nfs-rw*, *efs-standard* and *efs-performance*, Defalut to *sas*. Changing // this will create a new PVC resource. VolumeType pulumi.StringPtrInput }