sonarqube.AlmAzure
Explore with Pulumi AI
Provides a Sonarqube Azure Devops Alm/Devops Platform Integration resource. This can be used to create and manage a Alm/Devops Platform Integration for Azure Devops.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sonarqube from "@pulumi/sonarqube";
const az1 = new sonarqube.AlmAzure("az1", {
key: "az1",
personalAccessToken: "my_pat",
url: "https://dev.azure.com/my-org",
});
import pulumi
import pulumi_sonarqube as sonarqube
az1 = sonarqube.AlmAzure("az1",
key="az1",
personal_access_token="my_pat",
url="https://dev.azure.com/my-org")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sonarqube/sonarqube"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sonarqube.NewAlmAzure(ctx, "az1", &sonarqube.AlmAzureArgs{
Key: pulumi.String("az1"),
PersonalAccessToken: pulumi.String("my_pat"),
Url: pulumi.String("https://dev.azure.com/my-org"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sonarqube = Pulumi.Sonarqube;
return await Deployment.RunAsync(() =>
{
var az1 = new Sonarqube.AlmAzure("az1", new()
{
Key = "az1",
PersonalAccessToken = "my_pat",
Url = "https://dev.azure.com/my-org",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sonarqube.AlmAzure;
import com.pulumi.sonarqube.AlmAzureArgs;
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 az1 = new AlmAzure("az1", AlmAzureArgs.builder()
.key("az1")
.personalAccessToken("my_pat")
.url("https://dev.azure.com/my-org")
.build());
}
}
resources:
az1:
type: sonarqube:AlmAzure
properties:
key: az1
personalAccessToken: my_pat
url: https://dev.azure.com/my-org
Create AlmAzure Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlmAzure(name: string, args: AlmAzureArgs, opts?: CustomResourceOptions);
@overload
def AlmAzure(resource_name: str,
args: AlmAzureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlmAzure(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
personal_access_token: Optional[str] = None,
url: Optional[str] = None,
alm_azure_id: Optional[str] = None)
func NewAlmAzure(ctx *Context, name string, args AlmAzureArgs, opts ...ResourceOption) (*AlmAzure, error)
public AlmAzure(string name, AlmAzureArgs args, CustomResourceOptions? opts = null)
public AlmAzure(String name, AlmAzureArgs args)
public AlmAzure(String name, AlmAzureArgs args, CustomResourceOptions options)
type: sonarqube:AlmAzure
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AlmAzureArgs
- 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 AlmAzureArgs
- 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 AlmAzureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlmAzureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlmAzureArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var almAzureResource = new Sonarqube.AlmAzure("almAzureResource", new()
{
Key = "string",
PersonalAccessToken = "string",
Url = "string",
AlmAzureId = "string",
});
example, err := sonarqube.NewAlmAzure(ctx, "almAzureResource", &sonarqube.AlmAzureArgs{
Key: pulumi.String("string"),
PersonalAccessToken: pulumi.String("string"),
Url: pulumi.String("string"),
AlmAzureId: pulumi.String("string"),
})
var almAzureResource = new AlmAzure("almAzureResource", AlmAzureArgs.builder()
.key("string")
.personalAccessToken("string")
.url("string")
.almAzureId("string")
.build());
alm_azure_resource = sonarqube.AlmAzure("almAzureResource",
key="string",
personal_access_token="string",
url="string",
alm_azure_id="string")
const almAzureResource = new sonarqube.AlmAzure("almAzureResource", {
key: "string",
personalAccessToken: "string",
url: "string",
almAzureId: "string",
});
type: sonarqube:AlmAzure
properties:
almAzureId: string
key: string
personalAccessToken: string
url: string
AlmAzure Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AlmAzure resource accepts the following input properties:
- Key string
- Unique key of the Azure Devops instance setting
- Personal
Access stringToken - Azure Devops personal access token
- Url string
- Azure API URL
- Alm
Azure stringId - The ID of this resource.
- Key string
- Unique key of the Azure Devops instance setting
- Personal
Access stringToken - Azure Devops personal access token
- Url string
- Azure API URL
- Alm
Azure stringId - The ID of this resource.
- key String
- Unique key of the Azure Devops instance setting
- personal
Access StringToken - Azure Devops personal access token
- url String
- Azure API URL
- alm
Azure StringId - The ID of this resource.
- key string
- Unique key of the Azure Devops instance setting
- personal
Access stringToken - Azure Devops personal access token
- url string
- Azure API URL
- alm
Azure stringId - The ID of this resource.
- key str
- Unique key of the Azure Devops instance setting
- personal_
access_ strtoken - Azure Devops personal access token
- url str
- Azure API URL
- alm_
azure_ strid - The ID of this resource.
- key String
- Unique key of the Azure Devops instance setting
- personal
Access StringToken - Azure Devops personal access token
- url String
- Azure API URL
- alm
Azure StringId - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlmAzure resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AlmAzure Resource
Get an existing AlmAzure 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?: AlmAzureState, opts?: CustomResourceOptions): AlmAzure
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alm_azure_id: Optional[str] = None,
key: Optional[str] = None,
personal_access_token: Optional[str] = None,
url: Optional[str] = None) -> AlmAzure
func GetAlmAzure(ctx *Context, name string, id IDInput, state *AlmAzureState, opts ...ResourceOption) (*AlmAzure, error)
public static AlmAzure Get(string name, Input<string> id, AlmAzureState? state, CustomResourceOptions? opts = null)
public static AlmAzure get(String name, Output<String> id, AlmAzureState state, CustomResourceOptions options)
resources: _: type: sonarqube:AlmAzure get: id: ${id}
- 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.
- Alm
Azure stringId - The ID of this resource.
- Key string
- Unique key of the Azure Devops instance setting
- Personal
Access stringToken - Azure Devops personal access token
- Url string
- Azure API URL
- Alm
Azure stringId - The ID of this resource.
- Key string
- Unique key of the Azure Devops instance setting
- Personal
Access stringToken - Azure Devops personal access token
- Url string
- Azure API URL
- alm
Azure StringId - The ID of this resource.
- key String
- Unique key of the Azure Devops instance setting
- personal
Access StringToken - Azure Devops personal access token
- url String
- Azure API URL
- alm
Azure stringId - The ID of this resource.
- key string
- Unique key of the Azure Devops instance setting
- personal
Access stringToken - Azure Devops personal access token
- url string
- Azure API URL
- alm_
azure_ strid - The ID of this resource.
- key str
- Unique key of the Azure Devops instance setting
- personal_
access_ strtoken - Azure Devops personal access token
- url str
- Azure API URL
- alm
Azure StringId - The ID of this resource.
- key String
- Unique key of the Azure Devops instance setting
- personal
Access StringToken - Azure Devops personal access token
- url String
- Azure API URL
Package Details
- Repository
- sonarqube jdamata/terraform-provider-sonarqube
- License
- Notes
- This Pulumi package is based on the
sonarqube
Terraform Provider.