All Products
Search
Document Center

Cloud Governance Center:GetAccountFactoryBaseline

Last Updated:Oct 25, 2024

Obtains the details of an account factory baseline.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
governance:GetAccountFactoryBaselineget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
BaselineIdstringNo

The baseline ID.

afb-bp1nf0enuzb89az*****
RegionIdstringNo

The region ID.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The baseline configuration.

RequestIdstring

The request ID.

60D54503-F1F6-51B6-B6FA-A70CBDA2A68C
BaselineIdstring

The baseline ID.

afb-bp16ae2k8a3yo3d*****
BaselineNamestring

The name of the baseline.

Default
BaselineItemsarray<object>

The baseline items.

BaselineItemobject
Namestring

The name of the baseline item.

1097526274671790
Versionstring

The version of the baseline item.

1.0
Configstring

The configuration of the baseline item.

The value is a JSON string.

{\"Notifications\":[{\"GroupKey\":\"account_msg\",\"Contacts\":[{\"Name\":\"aa\"}],\"PmsgStatus\":1,\"EmailStatus\":1,\"SmsStatus\":1}]}
CreateTimestring

The time when the baseline was created.

2022-11-28T00:46:34Z
UpdateTimestring

The time when the baseline was updated.

2022-11-02T01:00:07Z
Descriptionstring

The description of the baseline.

Default baseline
Typestring

The type of the baseline. Valid values:

  • System: default baseline.
  • Custom: custom baseline.
Custom

Examples

Sample success responses

JSONformat

{
  "RequestId": "60D54503-F1F6-51B6-B6FA-A70CBDA2A68C",
  "BaselineId": "afb-bp16ae2k8a3yo3d*****",
  "BaselineName": "Default",
  "BaselineItems": [
    {
      "Name": "1097526274671790",
      "Version": "1.0",
      "Config": "{\\\"Notifications\\\":[{\\\"GroupKey\\\":\\\"account_msg\\\",\\\"Contacts\\\":[{\\\"Name\\\":\\\"aa\\\"}],\\\"PmsgStatus\\\":1,\\\"EmailStatus\\\":1,\\\"SmsStatus\\\":1}]}"
    }
  ],
  "CreateTime": "2022-11-28T00:46:34Z",
  "UpdateTime": "2022-11-02T01:00:07Z",
  "Description": "Default baseline",
  "Type": "Custom"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter %s is not valid.The specified parameter %s is invalid.
404InvalidUser.NotFoundThe specified user does not exist.The user does not exist.
404InvalidBaseline.NotFoundThe specified baseline does not exist.The specified account baseline does not exist.
404InvalidEnterpriseRealName.NotFoundThe specified account has not passed enterprise real name verification. Please complete the verification for the account first.The specified account has not passed enterprise real-name verification. Please complete the verification for the account first.
500InternalErrorA system error occurred.A system error occurred.

For a list of error codes, visit the Service error codes.