cci

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

func PkgVersion() (semver.Version, error)

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) 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) Index

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) 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) 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) Index

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) Name

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

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

func (GetNamespacesNamespaceNetworkOutput) Vpcs

The network information of the VPC under the CCI network. The structure is documented below.

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) 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) 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) Index

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) Id

The VPC ID in UUID format.

func (GetNamespacesNamespaceNetworkVpcOutput) NetworkId

The network ID of the VPC subnet in UUID format.

func (GetNamespacesNamespaceNetworkVpcOutput) SubnetCidr

The subnet CIDR block.

func (GetNamespacesNamespaceNetworkVpcOutput) SubnetId

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

The time when the namespace was created in UTC format, such as **2021-09-27T01:30:39Z**.

func (GetNamespacesNamespaceOutput) ElementType

func (GetNamespacesNamespaceOutput) EnterpriseProjectId

func (o GetNamespacesNamespaceOutput) EnterpriseProjectId() pulumi.StringOutput

Specifies the enterprise project ID in UUID format.

func (GetNamespacesNamespaceOutput) Id

The VPC ID in UUID format.

func (GetNamespacesNamespaceOutput) Name

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

The network information of the CCI namespace. The structure is documented below.

func (GetNamespacesNamespaceOutput) RbacEnabled

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

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

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 (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

The provider-assigned unique ID for this managed resource.

func (GetNamespacesResultOutput) Name

The CCI network name.

func (GetNamespacesResultOutput) Namespaces

All CCI namespaces that meet the query parameters.

func (GetNamespacesResultOutput) Region

func (GetNamespacesResultOutput) ToGetNamespacesResultOutput

func (o GetNamespacesResultOutput) ToGetNamespacesResultOutput() GetNamespacesResultOutput

func (GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext

func (o GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext(ctx context.Context) GetNamespacesResultOutput

func (GetNamespacesResultOutput) Type

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) ElementType() reflect.Type

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 (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 (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

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

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) ElementType() reflect.Type

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 (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 (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

The network segment on which the subnet resides.

func (NetworkOutput) ElementType

func (NetworkOutput) ElementType() reflect.Type

func (NetworkOutput) Name

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) ElementType() reflect.Type

func (*Pvc) ToPvcOutput

func (i *Pvc) ToPvcOutput() PvcOutput

func (*Pvc) ToPvcOutputWithContext

func (i *Pvc) ToPvcOutputWithContext(ctx context.Context) PvcOutput

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

func (PvcArgs) ElementType() reflect.Type

type PvcArray

type PvcArray []PvcInput

func (PvcArray) ElementType

func (PvcArray) ElementType() reflect.Type

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) Index

func (PvcArrayOutput) ToPvcArrayOutput

func (o PvcArrayOutput) ToPvcArrayOutput() PvcArrayOutput

func (PvcArrayOutput) ToPvcArrayOutputWithContext

func (o PvcArrayOutput) ToPvcArrayOutputWithContext(ctx context.Context) PvcArrayOutput

type PvcInput

type PvcInput interface {
	pulumi.Input

	ToPvcOutput() PvcOutput
	ToPvcOutputWithContext(ctx context.Context) PvcOutput
}

type PvcMap

type PvcMap map[string]PvcInput

func (PvcMap) ElementType

func (PvcMap) ElementType() reflect.Type

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) ElementType() reflect.Type

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 (o PvcOutput) ToPvcOutput() PvcOutput

func (PvcOutput) ToPvcOutputWithContext

func (o PvcOutput) ToPvcOutputWithContext(ctx context.Context) PvcOutput

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
}

func (PvcState) ElementType

func (PvcState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL