Access Scopes
Operations for the Access Scopes service collection.
| Language | Last Update |
|---|---|
| Python | v1.6.5 |
| PowerShell | |
| Go | v0.22.0 |
| TypeScript | v0.6.0 |
| Rust | |
| Ruby | v1.4.0 |
Table of Contents
Section titled “Table of Contents”| Operation | Description |
|---|---|
| ListAccessScopesExternal | List Access Scopes By ID |
| QueryAccessScopesExternal | Query Access Scopes and returns IDs |
ListAccessScopesExternal
Section titled “ListAccessScopesExternal”List Access Scopes By ID
Method GET
Route /access-scope-management/entities/access-scopes/v1
Scope Access Scope: READ
Parameters
Section titled “Parameters”ids query · string or list of strings
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
Code Examples
from falconpy import AccessScopes
falcon = AccessScopes(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.list_access_scopes_external(ids=id_list)print(response)from falconpy import AccessScopes
falcon = AccessScopes(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.ListAccessScopesExternal(ids=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("ListAccessScopesExternal", ids=id_list)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/access_scopes")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.AccessScopes.ListAccessScopesExternal( &access_scopes.ListAccessScopesExternalParams{ Ids: []string{"ID1", "ID2", "ID3"}, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.accessScopes.listAccessScopesExternal(["ID1", "ID2", "ID3"]); // ids
console.log(response);Examples coming soon.
require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::AccessScopes.new
response = api.list_access_scopes_external(ids: ['ID1', 'ID2', 'ID3'])
puts responseResponses
[ { "created_at": "string", "created_by": "string", "description": "string", "id": "string", "name": "string", "updated_at": "string" }]{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}QueryAccessScopesExternal
Section titled “QueryAccessScopesExternal”Query Access Scopes and returns IDs
Method GET
Route /access-scope-management/queries/access-scopes/v1
Scope Access Scope: READ
PEP 8
query_access_scopes_externalParameters
Section titled “Parameters”filter query · string
A valid FQL filter. Access Scope fields: name, created_by, created_at.
Available values (3)
name | created_by | created_at |
sort query · string
The sort value.
offset query · integer
The offset value.
limit query · integer
The limit value.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
Code Examples
from falconpy import AccessScopes
falcon = AccessScopes(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.query_access_scopes_external(filter="string", sort="string", offset=integer, limit=integer)print(response)from falconpy import AccessScopes
falcon = AccessScopes(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.QueryAccessScopesExternal(filter="string", sort="string", offset=integer, limit=integer)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("QueryAccessScopesExternal", filter="string", sort="string", offset=integer, limit=integer)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/access_scopes")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
filter := "string" sort := "string"
response, err := client.AccessScopes.QueryAccessScopesExternal( &access_scopes.QueryAccessScopesExternalParams{ Filter: &filter, Sort: &sort, Offset: integer, Limit: integer, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.accessScopes.queryAccessScopesExternal( "string", // filter "string", // sort integer, // offset integer // limit);
console.log(response);Examples coming soon.
require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::AccessScopes.new
response = api.query_access_scopes_external(filter: 'string', sort: 'string', offset: integer, limit: integer)
puts responseResponses
[ "string"]{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": "string", "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string" }, "resources": [ "string" ]}