Using the Cloud Azure Registration service collection
Table of Contents
| Operation ID | Description | ||||
|---|---|---|---|---|---|
| Retrieve script to create resources | ||||
cloud_registration_azure_download_script
Retrieve script to create resources
PEP8 method name
download_script
Endpoint
| Method | Route |
|---|---|
/cloud-security-registration-azure/entities/scripts/v1 |
Required Scope
Content-Type
- Consumes: application/json
- Produces: application/json
Keyword Arguments
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Full body payload in JSON format. | ||
| tenant_id | body | string | Azure tenant ID. |
Usage
Service class example (PEP8 syntax)
from falconpy import CloudAzureRegistration
falcon = CloudAzureRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.download_script(tenant_id="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import CloudAzureRegistration
falcon = CloudAzureRegistration(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.cloud_registration_azure_download_script(tenant_id="string")
print(response)
Uber class example
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = {
"resources": [
{
"tenantId": "string"
}
]
}
response = falcon.command("cloud_registration_azure_download_script", body=body_payload)
print(response)