InfluxDB v1.2.0 published on Tuesday, Apr 16, 2024 by komminarlabs
influxdb.getAuthorization
Explore with Pulumi AI
Retrieves an authorization. Use this data source to retrieve information about an API token, including the token’s permissions and the user that the token is scoped to.
Using getAuthorization
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAuthorization(args: GetAuthorizationArgs, opts?: InvokeOptions): Promise<GetAuthorizationResult>
function getAuthorizationOutput(args: GetAuthorizationOutputArgs, opts?: InvokeOptions): Output<GetAuthorizationResult>
def get_authorization(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAuthorizationResult
def get_authorization_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthorizationResult]
func LookupAuthorization(ctx *Context, args *LookupAuthorizationArgs, opts ...InvokeOption) (*LookupAuthorizationResult, error)
func LookupAuthorizationOutput(ctx *Context, args *LookupAuthorizationOutputArgs, opts ...InvokeOption) LookupAuthorizationResultOutput
> Note: This function is named LookupAuthorization
in the Go SDK.
public static class GetAuthorization
{
public static Task<GetAuthorizationResult> InvokeAsync(GetAuthorizationArgs args, InvokeOptions? opts = null)
public static Output<GetAuthorizationResult> Invoke(GetAuthorizationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuthorizationResult> getAuthorization(GetAuthorizationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: influxdb:index/getAuthorization:getAuthorization
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- A resource ID. Identifies a specific resource.
- Id string
- A resource ID. Identifies a specific resource.
- id String
- A resource ID. Identifies a specific resource.
- id string
- A resource ID. Identifies a specific resource.
- id str
- A resource ID. Identifies a specific resource.
- id String
- A resource ID. Identifies a specific resource.
getAuthorization Result
The following output properties are available:
- Created
At string - Authorization creation date.
- Description string
- A description of the token.
- Id string
- The authorization ID.
- Org string
- Organization name. Specifies the organization that owns the authorization.
- Org
Id string - An organization ID. Specifies the organization that owns the authorization.
- Permissions
List<Komminar
Labs. Influx DB. Outputs. Get Authorization Permission> - A list of permissions for an authorization.
- Status string
- Status of the token.
- Token string
- The API token.
- Updated
At string - Last Authorization update date.
- User string
- A user name. Specifies the user that the authorization is scoped to.
- User
Id string - A user ID. Specifies the user that the authorization is scoped to.
- Created
At string - Authorization creation date.
- Description string
- A description of the token.
- Id string
- The authorization ID.
- Org string
- Organization name. Specifies the organization that owns the authorization.
- Org
Id string - An organization ID. Specifies the organization that owns the authorization.
- Permissions
[]Get
Authorization Permission - A list of permissions for an authorization.
- Status string
- Status of the token.
- Token string
- The API token.
- Updated
At string - Last Authorization update date.
- User string
- A user name. Specifies the user that the authorization is scoped to.
- User
Id string - A user ID. Specifies the user that the authorization is scoped to.
- created
At String - Authorization creation date.
- description String
- A description of the token.
- id String
- The authorization ID.
- org String
- Organization name. Specifies the organization that owns the authorization.
- org
Id String - An organization ID. Specifies the organization that owns the authorization.
- permissions
List<Get
Authorization Permission> - A list of permissions for an authorization.
- status String
- Status of the token.
- token String
- The API token.
- updated
At String - Last Authorization update date.
- user String
- A user name. Specifies the user that the authorization is scoped to.
- user
Id String - A user ID. Specifies the user that the authorization is scoped to.
- created
At string - Authorization creation date.
- description string
- A description of the token.
- id string
- The authorization ID.
- org string
- Organization name. Specifies the organization that owns the authorization.
- org
Id string - An organization ID. Specifies the organization that owns the authorization.
- permissions
Get
Authorization Permission[] - A list of permissions for an authorization.
- status string
- Status of the token.
- token string
- The API token.
- updated
At string - Last Authorization update date.
- user string
- A user name. Specifies the user that the authorization is scoped to.
- user
Id string - A user ID. Specifies the user that the authorization is scoped to.
- created_
at str - Authorization creation date.
- description str
- A description of the token.
- id str
- The authorization ID.
- org str
- Organization name. Specifies the organization that owns the authorization.
- org_
id str - An organization ID. Specifies the organization that owns the authorization.
- permissions
Sequence[Get
Authorization Permission] - A list of permissions for an authorization.
- status str
- Status of the token.
- token str
- The API token.
- updated_
at str - Last Authorization update date.
- user str
- A user name. Specifies the user that the authorization is scoped to.
- user_
id str - A user ID. Specifies the user that the authorization is scoped to.
- created
At String - Authorization creation date.
- description String
- A description of the token.
- id String
- The authorization ID.
- org String
- Organization name. Specifies the organization that owns the authorization.
- org
Id String - An organization ID. Specifies the organization that owns the authorization.
- permissions List<Property Map>
- A list of permissions for an authorization.
- status String
- Status of the token.
- token String
- The API token.
- updated
At String - Last Authorization update date.
- user String
- A user name. Specifies the user that the authorization is scoped to.
- user
Id String - A user ID. Specifies the user that the authorization is scoped to.
Supporting Types
GetAuthorizationPermission
- Action string
- Permission action.
- Resource
Komminar
Labs. Influx DB. Inputs. Get Authorization Permission Resource
- Action string
- Permission action.
- Resource
Get
Authorization Permission Resource
- action String
- Permission action.
- resource
Get
Authorization Permission Resource
- action string
- Permission action.
- resource
Get
Authorization Permission Resource
- action str
- Permission action.
- resource
Get
Authorization Permission Resource
- action String
- Permission action.
- resource Property Map
GetAuthorizationPermissionResource
- Id string
- A resource ID. Identifies a specific resource.
- Name string
- The name of the resource. Note: not all resource types have a name property.
- Org string
- An organization name. The organization that owns the resource.
- Org
Id string - An organization ID. Identifies the organization that owns the resource.
- Type string
- A resource type. Identifies the API resource's type (or kind).
- Id string
- A resource ID. Identifies a specific resource.
- Name string
- The name of the resource. Note: not all resource types have a name property.
- Org string
- An organization name. The organization that owns the resource.
- Org
Id string - An organization ID. Identifies the organization that owns the resource.
- Type string
- A resource type. Identifies the API resource's type (or kind).
- id String
- A resource ID. Identifies a specific resource.
- name String
- The name of the resource. Note: not all resource types have a name property.
- org String
- An organization name. The organization that owns the resource.
- org
Id String - An organization ID. Identifies the organization that owns the resource.
- type String
- A resource type. Identifies the API resource's type (or kind).
- id string
- A resource ID. Identifies a specific resource.
- name string
- The name of the resource. Note: not all resource types have a name property.
- org string
- An organization name. The organization that owns the resource.
- org
Id string - An organization ID. Identifies the organization that owns the resource.
- type string
- A resource type. Identifies the API resource's type (or kind).
- id str
- A resource ID. Identifies a specific resource.
- name str
- The name of the resource. Note: not all resource types have a name property.
- org str
- An organization name. The organization that owns the resource.
- org_
id str - An organization ID. Identifies the organization that owns the resource.
- type str
- A resource type. Identifies the API resource's type (or kind).
- id String
- A resource ID. Identifies a specific resource.
- name String
- The name of the resource. Note: not all resource types have a name property.
- org String
- An organization name. The organization that owns the resource.
- org
Id String - An organization ID. Identifies the organization that owns the resource.
- type String
- A resource type. Identifies the API resource's type (or kind).
Package Details
- Repository
- influxdb komminarlabs/pulumi-influxdb
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
influxdb
Terraform Provider.