Authorization Server Args
data class AuthorizationServerArgs(val apiManagementName: Output<String>? = null, val authorizationEndpoint: Output<String>? = null, val authorizationMethods: Output<List<String>>? = null, val bearerTokenSendingMethods: Output<List<String>>? = null, val clientAuthenticationMethods: Output<List<String>>? = null, val clientId: Output<String>? = null, val clientRegistrationEndpoint: Output<String>? = null, val clientSecret: Output<String>? = null, val defaultScope: Output<String>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val grantTypes: Output<List<String>>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceOwnerPassword: Output<String>? = null, val resourceOwnerUsername: Output<String>? = null, val supportState: Output<Boolean>? = null, val tokenBodyParameters: Output<List<AuthorizationServerTokenBodyParameterArgs>>? = null, val tokenEndpoint: Output<String>? = null) : ConvertibleToJava<AuthorizationServerArgs>
Manages an Authorization Server within an API Management Service.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.apimanagement.ApimanagementFunctions;
import com.pulumi.azure.apimanagement.inputs.GetServiceArgs;
import com.pulumi.azure.apimanagement.AuthorizationServer;
import com.pulumi.azure.apimanagement.AuthorizationServerArgs;
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) {
final var exampleService = ApimanagementFunctions.getService(GetServiceArgs.builder()
.name("search-api")
.resourceGroupName("search-service")
.build());
var exampleAuthorizationServer = new AuthorizationServer("exampleAuthorizationServer", AuthorizationServerArgs.builder()
.apiManagementName(exampleService.applyValue(getServiceResult -> getServiceResult.name()))
.resourceGroupName(exampleService.applyValue(getServiceResult -> getServiceResult.resourceGroupName()))
.displayName("Test Server")
.authorizationEndpoint("https://example.mydomain.com/client/authorize")
.clientId("42424242-4242-4242-4242-424242424242")
.clientRegistrationEndpoint("https://example.mydomain.com/client/register")
.grantTypes("authorizationCode")
.authorizationMethods("GET")
.build());
}
}
Content copied to clipboard
Import
API Management Authorization Servers can be imported using the resource id
, e.g.
$ pulumi import azure:apimanagement/authorizationServer:AuthorizationServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/authorizationServers/server1
Content copied to clipboard
Constructors
Link copied to clipboard
fun AuthorizationServerArgs(apiManagementName: Output<String>? = null, authorizationEndpoint: Output<String>? = null, authorizationMethods: Output<List<String>>? = null, bearerTokenSendingMethods: Output<List<String>>? = null, clientAuthenticationMethods: Output<List<String>>? = null, clientId: Output<String>? = null, clientRegistrationEndpoint: Output<String>? = null, clientSecret: Output<String>? = null, defaultScope: Output<String>? = null, description: Output<String>? = null, displayName: Output<String>? = null, grantTypes: Output<List<String>>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceOwnerPassword: Output<String>? = null, resourceOwnerUsername: Output<String>? = null, supportState: Output<Boolean>? = null, tokenBodyParameters: Output<List<AuthorizationServerTokenBodyParameterArgs>>? = null, tokenEndpoint: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard