published on Thursday, Apr 2, 2026 by Byteplus
published on Thursday, Apr 2, 2026 by Byteplus
Account authorization management.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const privateZoneUserVpcAuthorizationDemo = new bytepluscc.privatezone.UserVpcAuthorization("PrivateZoneUserVpcAuthorizationDemo", {
accountId: "21xxxx272",
authType: 0,
verifyCode: "sdw",
});
import pulumi
import pulumi_bytepluscc as bytepluscc
private_zone_user_vpc_authorization_demo = bytepluscc.privatezone.UserVpcAuthorization("PrivateZoneUserVpcAuthorizationDemo",
account_id="21xxxx272",
auth_type=0,
verify_code="sdw")
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/privatezone"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := privatezone.NewUserVpcAuthorization(ctx, "PrivateZoneUserVpcAuthorizationDemo", &privatezone.UserVpcAuthorizationArgs{
AccountId: pulumi.String("21xxxx272"),
AuthType: pulumi.Int(0),
VerifyCode: pulumi.String("sdw"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var privateZoneUserVpcAuthorizationDemo = new Bytepluscc.Privatezone.UserVpcAuthorization("PrivateZoneUserVpcAuthorizationDemo", new()
{
AccountId = "21xxxx272",
AuthType = 0,
VerifyCode = "sdw",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.privatezone.UserVpcAuthorization;
import com.byteplus.bytepluscc.privatezone.UserVpcAuthorizationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var privateZoneUserVpcAuthorizationDemo = new UserVpcAuthorization("privateZoneUserVpcAuthorizationDemo", UserVpcAuthorizationArgs.builder()
.accountId("21xxxx272")
.authType(0)
.verifyCode("sdw")
.build());
}
}
resources:
privateZoneUserVpcAuthorizationDemo:
type: bytepluscc:privatezone:UserVpcAuthorization
name: PrivateZoneUserVpcAuthorizationDemo
properties:
accountId: 21xxxx272
authType: 0
verifyCode: sdw
Create UserVpcAuthorization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserVpcAuthorization(name: string, args?: UserVpcAuthorizationArgs, opts?: CustomResourceOptions);@overload
def UserVpcAuthorization(resource_name: str,
args: Optional[UserVpcAuthorizationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def UserVpcAuthorization(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
auth_type: Optional[int] = None,
verify_code: Optional[str] = None)func NewUserVpcAuthorization(ctx *Context, name string, args *UserVpcAuthorizationArgs, opts ...ResourceOption) (*UserVpcAuthorization, error)public UserVpcAuthorization(string name, UserVpcAuthorizationArgs? args = null, CustomResourceOptions? opts = null)
public UserVpcAuthorization(String name, UserVpcAuthorizationArgs args)
public UserVpcAuthorization(String name, UserVpcAuthorizationArgs args, CustomResourceOptions options)
type: bytepluscc:privatezone:UserVpcAuthorization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UserVpcAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UserVpcAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserVpcAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserVpcAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserVpcAuthorizationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var userVpcAuthorizationResource = new Bytepluscc.Privatezone.UserVpcAuthorization("userVpcAuthorizationResource", new()
{
AccountId = "string",
AuthType = 0,
VerifyCode = "string",
});
example, err := privatezone.NewUserVpcAuthorization(ctx, "userVpcAuthorizationResource", &privatezone.UserVpcAuthorizationArgs{
AccountId: pulumi.String("string"),
AuthType: pulumi.Int(0),
VerifyCode: pulumi.String("string"),
})
var userVpcAuthorizationResource = new UserVpcAuthorization("userVpcAuthorizationResource", UserVpcAuthorizationArgs.builder()
.accountId("string")
.authType(0)
.verifyCode("string")
.build());
user_vpc_authorization_resource = bytepluscc.privatezone.UserVpcAuthorization("userVpcAuthorizationResource",
account_id="string",
auth_type=0,
verify_code="string")
const userVpcAuthorizationResource = new bytepluscc.privatezone.UserVpcAuthorization("userVpcAuthorizationResource", {
accountId: "string",
authType: 0,
verifyCode: "string",
});
type: bytepluscc:privatezone:UserVpcAuthorization
properties:
accountId: string
authType: 0
verifyCode: string
UserVpcAuthorization Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UserVpcAuthorization resource accepts the following input properties:
- Account
Id string - Account.
- Auth
Type int - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- Verify
Code string - Verification code. This parameter is required when AuthType is set to 1.
- Account
Id string - Account.
- Auth
Type int - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- Verify
Code string - Verification code. This parameter is required when AuthType is set to 1.
- account
Id String - Account.
- auth
Type Integer - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- verify
Code String - Verification code. This parameter is required when AuthType is set to 1.
- account
Id string - Account.
- auth
Type number - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- verify
Code string - Verification code. This parameter is required when AuthType is set to 1.
- account_
id str - Account.
- auth_
type int - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- verify_
code str - Verification code. This parameter is required when AuthType is set to 1.
- account
Id String - Account.
- auth
Type Number - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- verify
Code String - Verification code. This parameter is required when AuthType is set to 1.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserVpcAuthorization resource produces the following output properties:
Look up Existing UserVpcAuthorization Resource
Get an existing UserVpcAuthorization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UserVpcAuthorizationState, opts?: CustomResourceOptions): UserVpcAuthorization@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
auth_type: Optional[int] = None,
status: Optional[str] = None,
verify_code: Optional[str] = None) -> UserVpcAuthorizationfunc GetUserVpcAuthorization(ctx *Context, name string, id IDInput, state *UserVpcAuthorizationState, opts ...ResourceOption) (*UserVpcAuthorization, error)public static UserVpcAuthorization Get(string name, Input<string> id, UserVpcAuthorizationState? state, CustomResourceOptions? opts = null)public static UserVpcAuthorization get(String name, Output<String> id, UserVpcAuthorizationState state, CustomResourceOptions options)resources: _: type: bytepluscc:privatezone:UserVpcAuthorization get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Account.
- Auth
Type int - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- Status string
- Account status. Normal: The account is in the enterprise organization. Exited: The account has exited the enterprise organization.
- Verify
Code string - Verification code. This parameter is required when AuthType is set to 1.
- Account
Id string - Account.
- Auth
Type int - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- Status string
- Account status. Normal: The account is in the enterprise organization. Exited: The account has exited the enterprise organization.
- Verify
Code string - Verification code. This parameter is required when AuthType is set to 1.
- account
Id String - Account.
- auth
Type Integer - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- status String
- Account status. Normal: The account is in the enterprise organization. Exited: The account has exited the enterprise organization.
- verify
Code String - Verification code. This parameter is required when AuthType is set to 1.
- account
Id string - Account.
- auth
Type number - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- status string
- Account status. Normal: The account is in the enterprise organization. Exited: The account has exited the enterprise organization.
- verify
Code string - Verification code. This parameter is required when AuthType is set to 1.
- account_
id str - Account.
- auth_
type int - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- status str
- Account status. Normal: The account is in the enterprise organization. Exited: The account has exited the enterprise organization.
- verify_
code str - Verification code. This parameter is required when AuthType is set to 1.
- account
Id String - Account.
- auth
Type Number - Verification method. 0: Use enterprise organization verification. 1: Use verification code.
- status String
- Account status. Normal: The account is in the enterprise organization. Exited: The account has exited the enterprise organization.
- verify
Code String - Verification code. This parameter is required when AuthType is set to 1.
Import
$ pulumi import bytepluscc:privatezone/userVpcAuthorization:UserVpcAuthorization example "account_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Thursday, Apr 2, 2026 by Byteplus
