All Products
Search
Document Center

Bastionhost:GetProject

Last Updated:Aug 14, 2026

Queries the details of a specified project.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID of the bastion host.

Note

You can invoke the DescribeInstances operation to obtain this parameter.

bastionhost-cn-st220aw****

RegionId

string

No

The region ID of the bastion host.

Note

For the mapping between region IDs and region names, see Regions and zones.

cn-hangzhou

ProjectId

integer

Yes

The ID of the project to query.

Note

You can call the ListProjects operation to obtain this parameter.

2

Response elements

Element

Type

Description

Example

object

Schema of Response

Project

object

A short description of struct

ProjectId

integer

The project ID.

2

Name

string

The project name.

projectname

Description

string

The project description.

comment

IsDefault

boolean

Indicates whether the project is the default project.

false

MemberIds

array

The list of member accounts UIDs associated with the project.

string

The UID of a member accounts associated with the project.

160****1423

NotifyReceivers

array<object>

The list of notification recipients configured for the project.

object

The information about a notification recipient configured for the project.

ReceiverId

string

1

Name

string

admin

Phone

string

131****5643

Email

string

1099**@qq.com

CreatedAt

integer

The time when the project was created, in seconds (UNIX timestamp format).

1669630029

UpdatedAt

integer

The time when the project was last updated, in seconds (UNIX timestamp format).

1672502400

DatabaseCount

integer

The number of database instances in the project.

3

HostCount

integer

The number of hosts in the project.

21

AppCount

integer

The number of application assets in the project.

1

RequestId

string

The unique request ID generated by Alibaba Cloud for this request.

EC9BF0F4-8983-491A-BC8C-1B4DD94976DE

Examples

Success response

JSON format

{
  "Project": {
    "ProjectId": 2,
    "Name": "projectname",
    "Description": "comment",
    "IsDefault": false,
    "MemberIds": [
      "160****1423"
    ],
    "NotifyReceivers": [
      {
        "ReceiverId": "1",
        "Name": "admin",
        "Phone": "131****5643",
        "Email": "1099**@qq.com"
      }
    ],
    "CreatedAt": 1669630029,
    "UpdatedAt": 1672502400,
    "DatabaseCount": 3,
    "HostCount": 21,
    "AppCount": 1
  },
  "RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.