> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Find Cloud Resources

- Component: `appmixer.wiz.core.FindCloudResources`
- Kind: Action
- Version: 1.0.7
- Visibility: Public
- Connector: [appmixer.wiz 1.4.5](https://connectors.appmixer.com/connector/appmixer.wiz/1.4.5.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.wiz/1.4.5/component/appmixer.wiz.core.FindCloudResources>

Execute the CloudResourceSearch query to return a list of cloud resources according to different filters, such as project ID or entity type.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Filter (`filter`) | textarea | This object defines query filters to narrow down search results and return specific cloud resources. |
| Limit (`limit`) | number | - |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Id (`id`) | string | - |
| Name (`name`) | string | - |
| Type (`type`) | string | - |
| Subscription Id (`subscriptionId`) | string | - |
| Subscription External Id (`subscriptionExternalId`) | string | - |
| Graph Entity (`graphEntity`) | object | - |

### Port `notFound`

| Field | Type | Description |
| --- | --- | --- |
| Filter (`filter`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.wiz.core.FindCloudResources",
  "author": "Appmixer <info@appmixer.com>",
  "label": "Find Cloud Resources",
  "description": "Execute the CloudResourceSearch query to return a list of cloud resources according to different filters, such as project ID or entity type.",
  "private": false,
  "auth": {
    "service": "appmixer:wiz"
  },
  "quota": {
    "manager": "appmixer:wiz",
    "resources": "requests"
  },
  "version": "1.0.7",
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "filter": {
            "type": "string"
          },
          "limit": {
            "type": "number"
          }
        },
        "required": []
      },
      "inspector": {
        "inputs": {
          "filter": {
            "type": "textarea",
            "label": "Filter",
            "tooltip": "This object defines query filters to narrow down search results and return specific cloud resources.",
            "index": 0
          },
          "limit": {
            "type": "number",
            "label": "Limit",
            "defaultValue": 100,
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Id",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
          }
        },
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "my-cloud-resource"
          }
        },
        {
          "label": "Type",
          "value": "type",
          "schema": {
            "type": "string",
            "example": "VIRTUAL_MACHINE"
          }
        },
        {
          "label": "Subscription Id",
          "value": "subscriptionId",
          "schema": {
            "type": "string",
            "example": "sub-abc123-def456-7890"
          }
        },
        {
          "label": "Subscription External Id",
          "value": "subscriptionExternalId",
          "schema": {
            "type": "string",
            "example": "123456789012"
          }
        },
        {
          "label": "Graph Entity",
          "value": "graphEntity",
          "schema": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "title": "Graph Entity.Id"
              },
              "providerUniqueId": {
                "type": "null",
                "title": "Graph Entity.Provider Unique Id"
              },
              "name": {
                "type": "string",
                "title": "Graph Entity.Name"
              },
              "type": {
                "type": "string",
                "title": "Graph Entity.Type"
              },
              "projects": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "Graph Entity.Projects.Id"
                    }
                  }
                },
                "title": "Graph Entity.Projects"
              },
              "properties": {
                "type": "object",
                "properties": {
                  "_environments": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Environments"
                  },
                  "_productIDs": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Product IDs"
                  },
                  "_vertexID": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Vertex ID"
                  },
                  "allPorts": {
                    "type": "boolean",
                    "title": "Graph Entity.Properties.All Ports"
                  },
                  "cloudPlatform": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Cloud Platform"
                  },
                  "cloudProviderURL": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Cloud Provider URL"
                  },
                  "exposureLevel_description": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Exposure Level Description"
                  },
                  "exposureLevel_name": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Exposure Level Name"
                  },
                  "exposureLevel_value": {
                    "type": "number",
                    "title": "Graph Entity.Properties.Exposure Level Value"
                  },
                  "externalId": {
                    "type": "string",
                    "title": "Graph Entity.Properties.External Id"
                  },
                  "finalHost": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Final Host"
                  },
                  "finalPort": {
                    "type": "number",
                    "title": "Graph Entity.Properties.Final Port"
                  },
                  "fullResourceName": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Full Resource Name"
                  },
                  "hasScreenshot": {
                    "type": "boolean",
                    "title": "Graph Entity.Properties.Has Screenshot"
                  },
                  "host": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Host"
                  },
                  "httpContentType": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Http Content Type"
                  },
                  "httpGETStatus": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Http GET Status"
                  },
                  "httpGETStatusCode": {
                    "type": "number",
                    "title": "Graph Entity.Properties.Http GET Status Code"
                  },
                  "httpTitleSnippet": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Http Title Snippet"
                  },
                  "name": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Name"
                  },
                  "nativeType": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Native Type"
                  },
                  "path": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Path"
                  },
                  "port": {
                    "type": "number",
                    "title": "Graph Entity.Properties.Port"
                  },
                  "portEnd": {
                    "type": "number",
                    "title": "Graph Entity.Properties.Port End"
                  },
                  "portRange": {
                    "type": "boolean",
                    "title": "Graph Entity.Properties.Port Range"
                  },
                  "portStart": {
                    "type": "number",
                    "title": "Graph Entity.Properties.Port Start"
                  },
                  "portValidationResult": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Port Validation Result"
                  },
                  "protocol": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Protocol"
                  },
                  "protocols": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Protocols"
                  },
                  "providerUniqueId": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Provider Unique Id"
                  },
                  "region": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Region"
                  },
                  "resourceGroupExternalId": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Resource Group External Id"
                  },
                  "status": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Status"
                  },
                  "subscriptionExternalId": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Subscription External Id"
                  },
                  "updatedAt": {
                    "type": "string",
                    "title": "Graph Entity.Properties.Updated At"
                  },
                  "zone": {
                    "type": "null",
                    "title": "Graph Entity.Properties.Zone"
                  }
                },
                "title": "Graph Entity.Properties"
              },
              "firstSeen": {
                "type": "string",
                "title": "Graph Entity.First Seen"
              },
              "lastSeen": {
                "type": "string",
                "title": "Graph Entity.Last Seen"
              }
            },
            "example": {
              "id": "graph-entity-abc123",
              "providerUniqueId": null,
              "name": "my-vm-instance",
              "type": "VIRTUAL_MACHINE",
              "projects": [
                {
                  "id": "proj-123"
                }
              ],
              "properties": {
                "cloudPlatform": "AWS",
                "externalId": "i-0abc123def456",
                "name": "my-vm-instance",
                "status": null,
                "region": null
              },
              "firstSeen": "2024-01-01T00:00:00.000Z",
              "lastSeen": "2024-06-15T12:00:00.000Z"
            }
          }
        }
      ]
    },
    {
      "name": "notFound",
      "options": [
        {
          "label": "Filter",
          "value": "filter",
          "schema": {
            "type": "object",
            "example": {
              "projectId": [
                "proj-123"
              ],
              "type": [
                "VIRTUAL_MACHINE"
              ]
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
