All Products
Search
Document Center

Resource Management:GetMessageContact

Last Updated:Jan 16, 2025

Queries the information about a contact.

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
resourcemanager:GetMessageContactget
*MessageContact
acs:resourcemanager:*:{#accountId}:messagecontact/{#MessageContactId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ContactIdstringYes

The ID of the contact.

c-qL4HqKONzOM7****

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID.

9B34724D-54B0-4A51-B34D-4512372FE1BE
Contactobject

The information about the contact.

ContactIdstring

The ID of the contact.

c-qL4HqKONzOM7****
MessageTypesarray

The types of messages received by the contact.

messageTypesstring

The type of the message received by the contact.

AccountExpenses
CreateDatestring

The time when the contact was created.

2023-03-27 17:19:21
Namestring

The name of the contact.

tom
EmailAddressstring

The email address of the contact.

someone***@example.com
PhoneNumberstring

The mobile phone number of the contact.

86-139****1234
Titlestring

The job title of the contact.

TechnicalDirector
Membersarray

The IDs of objects to which the contact is bound.

Memberstring

The ID of the object to which the contact is bound.

fd-ZDNPiT****
Statusstring

The status of the contact. Valid values:

  • Verifying
  • Active
  • Deleting
Active

Examples

Sample success responses

JSONformat

{
  "RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE",
  "Contact": {
    "ContactId": "c-qL4HqKONzOM7****",
    "MessageTypes": [
      "AccountExpenses"
    ],
    "CreateDate": "2023-03-27 17:19:21",
    "Name": "tom",
    "EmailAddress": "someone***@example.com",
    "PhoneNumber": "86-139****1234",
    "Title": "TechnicalDirector",
    "Members": [
      "fd-ZDNPiT****"
    ],
    "Status": "Active"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.ContactIdThe ContactId is invalid.The value of the ContactId parameter is invalid.
400MissingParameter.ContactIdYou must specify ContactId.The ContactId parameter is not configured.
404EntityNotExists.ContactThis Contact does not exist.The specified contact does not exist.

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

Change history

Change timeSummary of changesOperation
2023-07-25The Error code has changedView Change Details
2023-05-18The Error code has changedView Change Details