oci logo
Oracle Cloud Infrastructure v0.20.0, May 31 23

oci.IdentityDataPlane.GeneratedScopedAccessToken

Explore with Pulumi AI

This resource provides the Generate Scoped Access Token resource in Oracle Cloud Infrastructure Identity Data Plane service.

Based on the calling principal and the input payload, derive the claims and create a security token.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testGenerateScopedAccessToken = new Oci.IdentityDataPlane.GeneratedScopedAccessToken("testGenerateScopedAccessToken", new()
    {
        PublicKey = @var.Generate_scoped_access_token_public_key,
        Scope = @var.Generate_scoped_access_token_scope,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/IdentityDataPlane"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := IdentityDataPlane.NewGeneratedScopedAccessToken(ctx, "testGenerateScopedAccessToken", &IdentityDataPlane.GeneratedScopedAccessTokenArgs{
			PublicKey: pulumi.Any(_var.Generate_scoped_access_token_public_key),
			Scope:     pulumi.Any(_var.Generate_scoped_access_token_scope),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.IdentityDataPlane.GeneratedScopedAccessToken;
import com.pulumi.oci.IdentityDataPlane.GeneratedScopedAccessTokenArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testGenerateScopedAccessToken = new GeneratedScopedAccessToken("testGenerateScopedAccessToken", GeneratedScopedAccessTokenArgs.builder()        
            .publicKey(var_.generate_scoped_access_token_public_key())
            .scope(var_.generate_scoped_access_token_scope())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_generate_scoped_access_token = oci.identity_data_plane.GeneratedScopedAccessToken("testGenerateScopedAccessToken",
    public_key=var["generate_scoped_access_token_public_key"],
    scope=var["generate_scoped_access_token_scope"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testGenerateScopedAccessToken = new oci.identitydataplane.GeneratedScopedAccessToken("testGenerateScopedAccessToken", {
    publicKey: _var.generate_scoped_access_token_public_key,
    scope: _var.generate_scoped_access_token_scope,
});
resources:
  testGenerateScopedAccessToken:
    type: oci:IdentityDataPlane:GeneratedScopedAccessToken
    properties:
      #Required
      publicKey: ${var.generate_scoped_access_token_public_key}
      scope: ${var.generate_scoped_access_token_scope}

Create GeneratedScopedAccessToken Resource

new GeneratedScopedAccessToken(name: string, args: GeneratedScopedAccessTokenArgs, opts?: CustomResourceOptions);
@overload
def GeneratedScopedAccessToken(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               public_key: Optional[str] = None,
                               scope: Optional[str] = None)
@overload
def GeneratedScopedAccessToken(resource_name: str,
                               args: GeneratedScopedAccessTokenArgs,
                               opts: Optional[ResourceOptions] = None)
func NewGeneratedScopedAccessToken(ctx *Context, name string, args GeneratedScopedAccessTokenArgs, opts ...ResourceOption) (*GeneratedScopedAccessToken, error)
public GeneratedScopedAccessToken(string name, GeneratedScopedAccessTokenArgs args, CustomResourceOptions? opts = null)
public GeneratedScopedAccessToken(String name, GeneratedScopedAccessTokenArgs args)
public GeneratedScopedAccessToken(String name, GeneratedScopedAccessTokenArgs args, CustomResourceOptions options)
type: oci:IdentityDataPlane:GeneratedScopedAccessToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GeneratedScopedAccessTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args GeneratedScopedAccessTokenArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GeneratedScopedAccessTokenArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GeneratedScopedAccessTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GeneratedScopedAccessTokenArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

GeneratedScopedAccessToken Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The GeneratedScopedAccessToken resource accepts the following input properties:

PublicKey string

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

Scope string

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

PublicKey string

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

Scope string

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

publicKey String

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

scope String

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

publicKey string

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

scope string

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

public_key str

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

scope str

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

publicKey String

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

scope String

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Outputs

All input properties are implicitly available as output properties. Additionally, the GeneratedScopedAccessToken resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Token string

The security token, signed by auth service

Id string

The provider-assigned unique ID for this managed resource.

Token string

The security token, signed by auth service

id String

The provider-assigned unique ID for this managed resource.

token String

The security token, signed by auth service

id string

The provider-assigned unique ID for this managed resource.

token string

The security token, signed by auth service

id str

The provider-assigned unique ID for this managed resource.

token str

The security token, signed by auth service

id String

The provider-assigned unique ID for this managed resource.

token String

The security token, signed by auth service

Look up Existing GeneratedScopedAccessToken Resource

Get an existing GeneratedScopedAccessToken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GeneratedScopedAccessTokenState, opts?: CustomResourceOptions): GeneratedScopedAccessToken
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        public_key: Optional[str] = None,
        scope: Optional[str] = None,
        token: Optional[str] = None) -> GeneratedScopedAccessToken
func GetGeneratedScopedAccessToken(ctx *Context, name string, id IDInput, state *GeneratedScopedAccessTokenState, opts ...ResourceOption) (*GeneratedScopedAccessToken, error)
public static GeneratedScopedAccessToken Get(string name, Input<string> id, GeneratedScopedAccessTokenState? state, CustomResourceOptions? opts = null)
public static GeneratedScopedAccessToken get(String name, Output<String> id, GeneratedScopedAccessTokenState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
PublicKey string

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

Scope string

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Token string

The security token, signed by auth service

PublicKey string

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

Scope string

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Token string

The security token, signed by auth service

publicKey String

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

scope String

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

token String

The security token, signed by auth service

publicKey string

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

scope string

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

token string

The security token, signed by auth service

public_key str

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

scope str

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

token str

The security token, signed by auth service

publicKey String

A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.

scope String

Scope definition for the scoped access token

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

token String

The security token, signed by auth service

Import

GenerateScopedAccessToken can be imported using the id, e.g.

 $ pulumi import oci:IdentityDataPlane/generatedScopedAccessToken:GeneratedScopedAccessToken test_generate_scoped_access_token "id"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.