This page documents the language specification for the azuredevops package. If you're looking for help working with the inputs, outputs, or functions of azuredevops resources in a Pulumi program, please see the resource documentation for examples and API reference.
security¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azuredevops repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azuredevops repo.
- class
pulumi_azuredevops.security.ResourceAuthorization(resource_name, opts=None, authorized=None, project_id=None, resource_id=None, type=None, __props__=None, __name__=None, __opts__=None)¶ Manages authorization of resources, e.g. for access in build pipelines.
Currently supported resources: service endpoint (aka service connection, endpoint).
import pulumi import pulumi_azuredevops as azuredevops project = azuredevops.core.Project("project", project_name="Test Project") bitbucket_account = azuredevops.service_endpoint.BitBucket("bitbucketAccount", project_id=project.id, username="xxxx", password="xxxx", service_endpoint_name="test-bitbucket", description="test") auth = azuredevops.security.ResourceAuthorization("auth", project_id=project.id, resource_id=bitbucket_account.id, authorized=True)
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
authorized (pulumi.Input[bool]) – Set to true to allow public access in the project. Type: boolean.
project_id (pulumi.Input[str]) – The project ID or project name. Type: string.
resource_id (pulumi.Input[str]) – The ID of the resource to authorize. Type: string.
type (pulumi.Input[str]) – The type of the resource to authorize. Type: string. Valid values:
endpoint,queue. Default value:endpoint.
Set to true to allow public access in the project. Type: boolean.
project_id: pulumi.Output[str] = None¶The project ID or project name. Type: string.
resource_id: pulumi.Output[str] = None¶The ID of the resource to authorize. Type: string.
type: pulumi.Output[str] = None¶The type of the resource to authorize. Type: string. Valid values:
endpoint,queue. Default value:endpoint.
- static
get(resource_name, id, opts=None, authorized=None, project_id=None, resource_id=None, type=None)¶ Get an existing ResourceAuthorization resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
authorized (pulumi.Input[bool]) – Set to true to allow public access in the project. Type: boolean.
project_id (pulumi.Input[str]) – The project ID or project name. Type: string.
resource_id (pulumi.Input[str]) – The ID of the resource to authorize. Type: string.
type (pulumi.Input[str]) – The type of the resource to authorize. Type: string. Valid values:
endpoint,queue. Default value:endpoint.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str