Account Factory kullanarak yeni bir kaynak hesabı oluşturur veya mevcut bir kaynak hesabını kaydeder.
Operation description
Bu API işlemini kullanarak yeni bir kaynak hesabı oluşturabilir veya mevcut bir kaynak hesabını kaydedebilir ve hesaba bir hesap temeli uygulayabilirsiniz.
Hesap oluşturma işlemi eşzamansız bir işlemdir. Bir kaynak hesabı oluşturulduktan sonra, Account Factory temeli hesap üzerinde uygulanır. Hesap ayrıntılarını sorgulamak ve uygulama sonucunu almak için GetEnrolledAccount işlemini çağırabilirsiniz. GetEnrolledAccount
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
governance:EnrollAccount |
create |
*Tüm kaynaklar.
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccountNamePrefix |
string |
No |
Hesap adının ön eki.
|
test-account |
| DisplayName |
string |
No |
Hesabın görünen adı.
|
test-account |
| FolderId |
string |
No |
Üst klasörün kimliği.
|
fd-5ESoku**** |
| PayerAccountUid |
integer |
No |
Faturalandırma hesabının kimliği.
|
19534534552**** |
| AccountUid |
integer |
No |
Hesap oluşturulacak hesabın kimliği.
|
12868156179**** |
| BaselineItems |
array<object> |
No |
Temel öğe yapılandırmaları. Bu parametre belirtilirse, temel öğe yapılandırmaları belirtilen hesap temeli ile birleştirilir. Aynı temel öğeler için bu parametredeki yapılandırmalar önceliklidir. Bu parametreyi boş bırakın, BaselineId parametresini kullanarak hesap temelini belirtin ve mevcut temeli kullanarak yapılandırmaları hesaba uygulayın. |
|
|
object |
No |
Temel öğe yapılandırması. |
||
| Config |
string |
No |
Temel öğe yapılandırması. |
{\"Notifications\":[{\"GroupKey\":\"account_msg\",\"Contacts\":[{\"Name\":\"aa\"}],\"PmsgStatus\":1,\"EmailStatus\":1,\"SmsStatus\":1}]} |
| Name |
string |
No |
Temel öğenin adı. |
ACS-BP_ACCOUNT_FACTORY_VPC |
| Skip |
boolean |
No |
Temel öğenin atlanıp atlanmayacağını belirtir. Geçerli değerler:
|
false |
| Version |
string |
No |
Temel öğenin sürümü. |
1.0 |
| BaselineId |
string |
No |
Temelin kimliği. Bu parametre boş bırakılırsa, varsayılan olarak sistem varsayılan temeli kullanılır. |
afb-bp1durvn3lgqe28v**** |
| ResellAccountType |
string |
No |
Üyenin kimlik türü. Geçerli değerler:
Not
Bu parametre yalnızca Alibaba Cloud Uluslararası web sitesindeki satıcı müşterileri için desteklenir. |
resell |
| RegionId |
string |
No |
Bölge kimliği. |
cn-hangzhou |
| Tag |
array<object> |
No |
Etiketlerin listesi. En fazla 20 etiket belirtilebilir. |
|
|
object |
No |
Etiketler. |
||
| Key |
string |
No |
Etiket anahtarı. |
tagKey |
| Value |
string |
No |
Etiket değeri. |
tagValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt parametreleri. |
||
| AccountUid |
integer |
Hesap oluşturulacak hesabın kimliği. |
143165363236**** |
| RequestId |
string |
İstek kimliği. |
7071E5FA-515E-5F53-B335-B87D619C6A66 |
Examples
Success response
JSON format
{
"AccountUid": 0,
"RequestId": "7071E5FA-515E-5F53-B335-B87D619C6A66"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter %s is not valid. | İsteğiniz eksik veya geçersiz parametreler içeriyor. |
| 400 | DeployConflict.Blueprint | The %s blueprint is being deployed. Please wait for its deployment to complete and try again. | Bir şablon uygulanıyor. Uygulamanın tamamlanmasını bekleyin ve tekrar deneyin. |
| 400 | DependencyViolation.Blueprint | The %s blueprint has not been deployed. Please deploy the resource structure first. | Bağımlı şablonlar uygulanmamış. Önce bağımlı şablonları uygulayın. |
| 400 | DependencyViolation.BaselineItem | The dependency of %s baseline item has not been configured. Please config %s first. | Bağımlı temel yapılandırma öğeleri yapılandırılmamış. Önce bağımlı temel yapılandırma öğelerini yapılandırın. |
| 400 | IncorrectBlueprintStatus | The current status of the blueprint does not support this operation. | Şablonun mevcut durumu bu işlemi desteklemiyor. Daha sonra tekrar deneyin. |
| 500 | InternalError | A system error occurred. | Bir sistem hatası oluştu. |
| 403 | InvalidUser.NotResourceDirectoryMaster | The specified account is not a master account of resource directory. | Mevcut hesabın kaynak dizininin yönetim hesabı olması gerekir. |
| 404 | InvalidUser.NotFound | The specified user does not exist. | Kullanıcı mevcut değil. |
| 404 | InvalidBlueprint.NotFound | The specified blueprint does not exist. | Şablon örneği mevcut değil. |
| 404 | InvalidBaselineItem.NotFound | The specified baseline item named %s does not exist. | Belirtilen temel yapılandırma öğesi mevcut değil. |
| 404 | InvalidEnterpriseRealName.NotFound | The specified account has not passed enterprise real name verification. Please complete the verification for the account first. | Mevcut hesap kurumsal gerçek ad doğrulamasını tamamlamadı. Önce kurumsal gerçek ad doğrulamasını tamamlayın. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.