List resources
List resources associated with this workspace.
Org is the organisation identifier.
j8pProject is the project identifier.
8qhWorkspace identifier.
toLimit is the number of records to return for a page. When omitted, all records are returned.
30Page is the page number to return relative to the page 'limit'. When omitted, all records are returned.
1Resource types to filter by.
["aws_instance","google_compute_instance"]Account is the internal customer account ID.
1uiOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{identifier}/resources HTTP/1.1
Host: localhost:80
Harness-Account: 1ui
Accept: */*
{
"data_sources": [
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.9995936961087005,
"monthly_saving": 0.27447037863630724,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 1522403799392944600,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.9995936961087005,
"monthly_saving": 0.27447037863630724,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 1522403799392944600,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.9995936961087005,
"monthly_saving": 0.27447037863630724,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 1522403799392944600,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
}
],
"outputs": [
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Et eos error."
},
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Et eos error."
},
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Et eos error."
}
],
"resources": [
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.9995936961087005,
"monthly_saving": 0.27447037863630724,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 1522403799392944600,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.9995936961087005,
"monthly_saving": 0.27447037863630724,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 1522403799392944600,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.9995936961087005,
"monthly_saving": 0.27447037863630724,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 1522403799392944600,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
}
],
"stack_outputs": {
"IaCM/TGOverride/environments/dev/ec2": [
{
"name": "instance_id",
"sensitive": false,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "i-1234567890abcdef0"
}
]
},
"total_resources": 42
}Last updated
Was this helpful?