tencent cloud

APIs

ListAccountFactoryBaselineItems

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-26 19:24:53

1. API Description

Domain name for API request: controlcenter.intl.tencentcloudapi.com.

This API is used to obtain Account Factory system baseline items.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ListAccountFactoryBaselineItems.
Version Yes String Common Params. The value used for this API: 2023-01-10.
Region No String Common Params. This parameter is not required.
Limit Yes Integer Maximum number of returned records. Value range: 0-200.
Offset Yes Integer Offset. Value range: greater than or equal to 0.

3. Output Parameters

Parameter Name Type Description
BaselineItems Array of AccountFactoryItem

Account Factory baseline list.
1. TCC-AF_ACCOUNT_CONTACT Account contact
This baseline item is used to create message recipients (contacts) under a member account.
Field Type Required Default value Valid values and description
AccountContacts Object array Yes None Contact list, up to 50 entries, cannot be empty
AccountContacts[].Name String Yes None Contact name, must be an existing name in the account; cannot be duplicated within the same list; no fixed format restrictions
AccountContacts[].CountryCode String Yes None Phone country code, such as 86; no fixed enumeration
AccountContacts[].PhoneNum String Yes None Phone number, must be verified before this baseline item can be applied; format is determined by the verification process, with no local format restrictions
AccountContacts[].Email String Yes None Email address, must be verified before this baseline item can be applied; format is determined by the verification process, with no local format restrictions
AccountContacts[].Remark String No None Remarks, no length limit specified

{  "AccountContacts": [    {      "Name": "ops-admin",      "CountryCode": "86",      "PhoneNum": "13800000",      "Email": "ops@exle.com",      "Remark": "Ops contact"    }  ]}
2. TCC-AF_ACCOUNT_NOTIFICATION Message recipient
China site:
Field Type Required Default value Valid values and description
Subscriptions Object array Yes None Subscription list, recommended not to exceed 50 entries; if exceeded, process in batches, will not be rejected due to the number of entries
Subscriptions[].Name String Yes None Single sub-user name; enter an existing sub-user name, otherwise the subscription does not take effect
Subscriptions[].ProductId Integer Yes None Product ID, no fixed enumeration, query through DescribeProductIds
Subscriptions[].MsgType Integer Yes None Message type ID, no fixed enumeration, query through DescribeFirstSiteMsgType and DescribeSecondMsgType
Subscriptions[].Channel Integer Yes None Message delivery channel, bitmask, see the table below for values
Subscriptions[].Status String Yes None Only Open or Close; only Open creates a subscription, Close or other values do not take effect

Channel bitmask:
Channel Value
Inbox message 1
Email 2
SMS 4
WeChat 8 (not available on the international site)
Voice 16
WeCom 32 (not available on the international site)

Channel combination Value
Inbox message + Email 3
Inbox message + SMS 5
Email + SMS 6
Inbox message + Email + SMS 7

International site fields:
Field Type Required Default value Valid values and description
Subscriptions Object array Yes None Subscription list, recommended not to exceed 50 entries; if exceeded, process in batches, will not be rejected due to the number of entries
Subscriptions[].Name String array Yes None Sub-user name list; enter existing sub-user names, names will be deduplicated
Subscriptions[].MsgType Integer Yes None Message type ID, no fixed enumeration, query through DescribeFirstSiteMsgType and DescribeSecondMsgType
Subscriptions[].Channel Integer Yes None Message delivery channel, bitmask, values same as the table above

China site example:

{  "Subscriptions": [    {      "Name": "ops-admin",      "ProductId": 1001,      "MsgType": 2001,      "Channel": 3,      "Status": "Open"    }  ]}
International site example:
{  "Subscriptions": [    {      "Name": ["ops-admin", "audit"],      "MsgType": 2001,      "Channel": 6    }  ]}
3. TCC-AF_CAM_USER_PASSWORD_POLICY CAM password policy
Field Type Required Default value Valid values and description
MinimumLength Integer Yes None Minimum password length, no fixed enumeration or upper/lower limit specified; whether the value is valid is determined by the CAM password policy
MustContain String Yes None Characters that the password must contain, no fixed enumeration or valid character set specified; whether the value is valid is determined by the CAM password policy
ForcePasswordChange Integer Yes None Forced password change period, no fixed enumeration or unit specified; whether the value is valid is determined by the CAM password policy
ReusePasswordLimit Integer Yes None Password reuse limit, no fixed enumeration or upper/lower limit specified; whether the value is valid is determined by the CAM password policy
RetryPasswordLimit Integer Yes None Password retry limit, no fixed enumeration or upper/lower limit specified; whether the value is valid is determined by the CAM password policy
OnlyAdminCanResetPassword Integer Yes None Whether only administrators can reset passwords, no fixed enumeration specified; whether the value is valid is determined by the CAM password policy
{  "MinimumLength": 19,  "MustContain": "A",  "ForcePasswordChange": 0,  "ReusePasswordLimit": 2,  "RetryPasswordLimit": 1,  "OnlyAdminCanResetPassword": 0}
4. TCC-AF_CAM_USER_SECURITY CAM user security settings
Field Type Required Default value Valid values and description
DefaultMFASettings Object Yes None Login and operation protection settings
DefaultMFASettings.LoginStrategy Integer Yes None 1: enforce verification for all users; 2: depend on individual user settings
DefaultMFASettings.ActionStrategy Integer Yes None 1: enforce verification for all users; 2: depend on individual user settings; this baseline item must be set to 2
DefaultMFASettings.LoginDetail String array Yes None Valid options: Stoken, Phone, Wechat, U2FToken, Mail; must include Stoken
LoginStatusSettings Object Yes None Session duration settings
LoginStatusSettings.SessionTimeout Integer No None Session timeout in seconds; no fixed upper/lower limit specified; whether the value is valid is determined by CAM
LoginStatusSettings.IdleSessionTimeout Integer No None Idle session timeout in seconds; no fixed upper/lower limit specified; whether the value is valid is determined by CAM
{  "DefaultMFASettings": {    "LoginStrategy": 1,    "ActionStrategy": 2,    "LoginDetail": ["Stoken", "Phone"]  },  "LoginStatusSettings": {    "SessionTimeout": 7200,    "IdleSessionTimeout": 900  }}
5. TCC-AF_VPC_SUBNET VPC and subnet
Field Type Required Default value Valid values and description
VpcName String Yes None VPC name, up to 60 bytes
CidrBlock String Yes None VPC CIDR block, only addresses within the three private network segments 10.0.0.0/12, 172.16.0.0/12, and 192.168.0.0/16 are supported
RegionName String Yes None Region, fill in according to "How to fill in regions, AZs, and dynamic values"; the region of this baseline item is specified by this field
Subnets Object array No None Subnet list; if not specified or empty, only the VPC is created, and no subnets are created
Subnets[].CidrBlock String Yes None Subnet CIDR block, must be within the range of CidrBlock, and subnet CIDR blocks within the same VPC cannot overlap
Subnets[].SubnetName String Yes None Subnet name, up to 60 bytes
Subnets[].Zone String Yes None AZ, in the format of ap-guangzhou-2; no fixed enumeration, query through DescribeZones
{  "VpcName": "af-vpc",  "CidrBlock": "10.0.0.0/16",  "RegionName": "ap-guangzhou",  "Subnets": [    {      "CidrBlock": "10.0.1.0/24",      "SubnetName": "af-subnet-1",      "Zone": "ap-guangzhou-2"    }  ]}
6. TCC-AF_SECURITY_GROUP Security group
Field Type Required Default value Valid values and description
GroupName String Yes None Security group name, up to 60 characters
GroupDescription String No None Security group description, up to 100 characters
Region String Yes None Region, fill in according to "How to fill in regions, AZs, and dynamic values"
SecurityGroupPolicySet Object Yes None Security group rule set
SecurityGroupPolicySet.Ingress Object array No None Inbound rule list
SecurityGroupPolicySet.Egress Object array No None Outbound rule list
Ingress[].Protocol, Egress[].Protocol String Yes None TCP, UDP, ICMP, ICMPv6, ALL
Ingress[].Port, Egress[].Port String Yes None all, a single port, or a port range (such as 80 or 80-90); must be set to all when Protocol is ALL
Ingress[].Action, Egress[].Action String Yes None ACCEPT: allow traffic; DROP: drop traffic
Ingress[].CidrBlock, Egress[].CidrBlock String No None IPv4 CIDR block or IP, such as 10.0.0.0/16 or 0.0.0.0/0; mutually exclusive with Ipv6CidrBlock
Ingress[].Ipv6CidrBlock, Egress[].Ipv6CidrBlock String No None Not supported yet, do not fill in
Ingress[].SecurityGroupId, Egress[].SecurityGroupId String No None Referenced security group ID, in the format of sg-ohuuioma; no fixed enumeration, query through the resource list
Ingress[].AddressTemplate.AddressId String No None IP address template ID, in the format of ipm-2uw6ujo6; when using an address template, this field and AddressGroupId must be filled in together
Ingress[].AddressTemplate.AddressGroupId String No None IP address group ID, in the format of ipmg-2uw6ujo6; when using an address template, this field and AddressId must be filled in together
Ingress[].PolicyDescription, Egress[].PolicyDescription String No None Rule description, no length limit specified; whether the value is valid is determined by the cloud product
{  "GroupName": "af-sg",  "GroupDescription": "account factory baseline",  "Region": "ap-guangzhou",  "SecurityGroupPolicySet": {    "Ingress": [      {        "Protocol": "TCP",        "Port": "22",        "CidrBlock": "10.0.0.0/16",        "Action": "ACCEPT",        "PolicyDescription": "ssh"      },      {        "Protocol": "TCP",        "Port": "443",        "AddressTemplate": {          "AddressId": "ipm-2uw6ujo6",          "AddressGroupId": "ipmg-2uw6ujo6"        },        "Action": "ACCEPT"      }    ],    "Egress": [      {        "Protocol": "ALL",        "Port": "all",        "CidrBlock": "0.0.0.0/0",        "Action": "ACCEPT",        "PolicyDescription": "allow all"      }    ]  }}
7. TCC-AF_PRESET_TAG Preset tag
Field Type Required Default value Valid values and description
TagValuePairs Object array Yes None Tag key-value pair list
TagValuePairs[].Key String Yes None Tag key, no fixed length or character restrictions specified; whether the value is valid is determined by the tag service
TagValuePairs[].Values String array Yes None List of tag values corresponding to the key; no fixed length or character restrictions specified; whether the value is valid is determined by the tag service
Constraint: the total number of entries in the array cannot exceed 30
{  "TagValuePairs": [    { "Key": "env", "Values": ["prod", "dev"] },    { "Key": "owner", "Values": ["ops"] }  ]}
8. TCC-AF_SHARE_IMAGE Shared image
Field Type Required Default value Valid values and description
Images Object array Yes None List of images to be shared, no upper limit specified
Images[].Region String Yes None Region where the image resides, fill in according to "How to fill in regions, AZs, and dynamic values"
Images[].ImageId String Yes None Image ID, in the format of img-gvbnzy6f; no fixed enumeration, query through DescribeImages or the console, the image must be in the available state
{  "Images": [    {      "Region": "ap-guangzhou",      "ImageId": "img-gvbnzy6f"    }  ]}

Total Integer

Total number.

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Example

This example shows you how to obtain the account baseline list in the console.

Input Example

POST / HTTP/1.1
Host: controlcenter.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ListAccountFactoryBaselineItems
<Common request parameters>

{
    "Limit": 10,
    "Offset": 0
}

Output Example

{
    "Response": {
        "BaselineItems": [
            {
                "Classify": "Message",
                "ClassifyEn": "Message",
                "DependsOn": [
                    {
                        "Identifier": "TCC-AF_ACCOUNT_CONTACT",
                        "Type": "AccountFactorySetUp"
                    }
                ],
                "Description": "You can set recipients for each message category. For important messages such as account, product, and fault messages, we recommend that you set recipients to avoid missing messages and causing losses.",
                "DescriptionEn": "Specify recipients for the notifications of different products. To avoid unexpected losses, we recommend you subscribe to important messages related to accounts, products, and errors.",
                "Identifier": "TCC-AF_ACCOUNT_NOTIFICATION",
                "Name": "Message Subscription",
                "NameEn": "Message subscriptions",
                "Required": 0,
                "Weight": 8
            }
        ],
        "RequestId": "885a87d0-af7d-414a-b128-fd13653387b7",
        "Total": 1
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.ControlCenterNotOpen Control Center service is not enabled.
FailedOperation.DBOperationError Database operation exception.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック