- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- NamespaceView
- Namespace
- IAMPolicy
- Try it!
List namespaces in a given instance
HTTP request
GET https://datafusion.googleapis.com/v1beta1/{parent=projects/*/locations/*/instances/*}/namespaces
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The instance to list its namespaces. | 
Query parameters
| Parameters | |
|---|---|
| pageSize | 
 The maximum number of items to return. | 
| pageToken | 
 The nextPageToken value to use if there are additional results to retrieve for this list request. | 
| view | 
 By default, only basic information about a namespace is returned (e.g. name). When  | 
Request body
The request body must be empty.
Response body
List namespaces response.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "namespaces": [
    {
      object ( | 
| Fields | |
|---|---|
| namespaces[] | 
 List of namespaces | 
| nextPageToken | 
 Token to retrieve the next page of results or empty if there are no more results in the list. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
NamespaceView
A view for Namespace
| Enums | |
|---|---|
| NAMESPACE_VIEW_UNSPECIFIED | Default/unset value, which will use BASIC view. | 
| NAMESPACE_VIEW_BASIC | Show the most basic metadata of a namespace | 
| NAMESPACE_VIEW_FULL | Returns all metadata of a namespace | 
Namespace
Represents the information of a namespace
| JSON representation | 
|---|
| {
  "name": string,
  "iamPolicy": {
    object ( | 
| Fields | |
|---|---|
| name | 
 Name of the given namespace. | 
| iamPolicy | 
 IAM policy associated with this namespace. | 
IAMPolicy
IAMPolicy encapsulates the IAM policy name, definition and status of policy fetching.
| JSON representation | 
|---|
| { "policy": { object ( | 
| Fields | |
|---|---|
| policy | 
 Policy definition if IAM policy fetching is successful, otherwise empty. | 
| status | 
 Status of iam policy fetching. |