gcp.apigee.Developer
Explore with Pulumi AI
A Developer
is an API consumer that can have apps registered in Apigee.
To get more information about Developer, see:
- API documentation
- How-to Guides
Example Usage
Apigee Developer Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const current = gcp.organizations.getClientConfig({});
const apigeeNetwork = new gcp.compute.Network("apigee_network", {name: "apigee-network"});
const apigeeRange = new gcp.compute.GlobalAddress("apigee_range", {
name: "apigee-range",
purpose: "VPC_PEERING",
addressType: "INTERNAL",
prefixLength: 16,
network: apigeeNetwork.id,
});
const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigee_vpc_connection", {
network: apigeeNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [apigeeRange.name],
});
const apigeeOrg = new gcp.apigee.Organization("apigee_org", {
analyticsRegion: "us-central1",
projectId: current.then(current => current.project),
authorizedNetwork: apigeeNetwork.id,
}, {
dependsOn: [apigeeVpcConnection],
});
const apigeeInstance = new gcp.apigee.Instance("apigee_instance", {
name: "my-instance",
location: "us-central1",
orgId: apigeeOrg.id,
peeringCidrRange: "SLASH_22",
});
const apigeeDeveloper = new gcp.apigee.Developer("apigee_developer", {
email: "john.doe@acme.com",
firstName: "John",
lastName: "Doe",
userName: "john.doe",
orgId: apigeeOrg.id,
}, {
dependsOn: [apigeeInstance],
});
import pulumi
import pulumi_gcp as gcp
current = gcp.organizations.get_client_config()
apigee_network = gcp.compute.Network("apigee_network", name="apigee-network")
apigee_range = gcp.compute.GlobalAddress("apigee_range",
name="apigee-range",
purpose="VPC_PEERING",
address_type="INTERNAL",
prefix_length=16,
network=apigee_network.id)
apigee_vpc_connection = gcp.servicenetworking.Connection("apigee_vpc_connection",
network=apigee_network.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[apigee_range.name])
apigee_org = gcp.apigee.Organization("apigee_org",
analytics_region="us-central1",
project_id=current.project,
authorized_network=apigee_network.id,
opts = pulumi.ResourceOptions(depends_on=[apigee_vpc_connection]))
apigee_instance = gcp.apigee.Instance("apigee_instance",
name="my-instance",
location="us-central1",
org_id=apigee_org.id,
peering_cidr_range="SLASH_22")
apigee_developer = gcp.apigee.Developer("apigee_developer",
email="john.doe@acme.com",
first_name="John",
last_name="Doe",
user_name="john.doe",
org_id=apigee_org.id,
opts = pulumi.ResourceOptions(depends_on=[apigee_instance]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/apigee"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := organizations.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
apigeeNetwork, err := compute.NewNetwork(ctx, "apigee_network", &compute.NetworkArgs{
Name: pulumi.String("apigee-network"),
})
if err != nil {
return err
}
apigeeRange, err := compute.NewGlobalAddress(ctx, "apigee_range", &compute.GlobalAddressArgs{
Name: pulumi.String("apigee-range"),
Purpose: pulumi.String("VPC_PEERING"),
AddressType: pulumi.String("INTERNAL"),
PrefixLength: pulumi.Int(16),
Network: apigeeNetwork.ID(),
})
if err != nil {
return err
}
apigeeVpcConnection, err := servicenetworking.NewConnection(ctx, "apigee_vpc_connection", &servicenetworking.ConnectionArgs{
Network: apigeeNetwork.ID(),
Service: pulumi.String("servicenetworking.googleapis.com"),
ReservedPeeringRanges: pulumi.StringArray{
apigeeRange.Name,
},
})
if err != nil {
return err
}
apigeeOrg, err := apigee.NewOrganization(ctx, "apigee_org", &apigee.OrganizationArgs{
AnalyticsRegion: pulumi.String("us-central1"),
ProjectId: pulumi.String(current.Project),
AuthorizedNetwork: apigeeNetwork.ID(),
}, pulumi.DependsOn([]pulumi.Resource{
apigeeVpcConnection,
}))
if err != nil {
return err
}
apigeeInstance, err := apigee.NewInstance(ctx, "apigee_instance", &apigee.InstanceArgs{
Name: pulumi.String("my-instance"),
Location: pulumi.String("us-central1"),
OrgId: apigeeOrg.ID(),
PeeringCidrRange: pulumi.String("SLASH_22"),
})
if err != nil {
return err
}
_, err = apigee.NewDeveloper(ctx, "apigee_developer", &apigee.DeveloperArgs{
Email: pulumi.String("john.doe@acme.com"),
FirstName: pulumi.String("John"),
LastName: pulumi.String("Doe"),
UserName: pulumi.String("john.doe"),
OrgId: apigeeOrg.ID(),
}, pulumi.DependsOn([]pulumi.Resource{
apigeeInstance,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var current = Gcp.Organizations.GetClientConfig.Invoke();
var apigeeNetwork = new Gcp.Compute.Network("apigee_network", new()
{
Name = "apigee-network",
});
var apigeeRange = new Gcp.Compute.GlobalAddress("apigee_range", new()
{
Name = "apigee-range",
Purpose = "VPC_PEERING",
AddressType = "INTERNAL",
PrefixLength = 16,
Network = apigeeNetwork.Id,
});
var apigeeVpcConnection = new Gcp.ServiceNetworking.Connection("apigee_vpc_connection", new()
{
Network = apigeeNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
apigeeRange.Name,
},
});
var apigeeOrg = new Gcp.Apigee.Organization("apigee_org", new()
{
AnalyticsRegion = "us-central1",
ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
AuthorizedNetwork = apigeeNetwork.Id,
}, new CustomResourceOptions
{
DependsOn =
{
apigeeVpcConnection,
},
});
var apigeeInstance = new Gcp.Apigee.Instance("apigee_instance", new()
{
Name = "my-instance",
Location = "us-central1",
OrgId = apigeeOrg.Id,
PeeringCidrRange = "SLASH_22",
});
var apigeeDeveloper = new Gcp.Apigee.Developer("apigee_developer", new()
{
Email = "john.doe@acme.com",
FirstName = "John",
LastName = "Doe",
UserName = "john.doe",
OrgId = apigeeOrg.Id,
}, new CustomResourceOptions
{
DependsOn =
{
apigeeInstance,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.apigee.Organization;
import com.pulumi.gcp.apigee.OrganizationArgs;
import com.pulumi.gcp.apigee.Instance;
import com.pulumi.gcp.apigee.InstanceArgs;
import com.pulumi.gcp.apigee.Developer;
import com.pulumi.gcp.apigee.DeveloperArgs;
import com.pulumi.resources.CustomResourceOptions;
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 current = OrganizationsFunctions.getClientConfig();
var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
.name("apigee-network")
.build());
var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
.name("apigee-range")
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(apigeeNetwork.id())
.build());
var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
.network(apigeeNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(apigeeRange.name())
.build());
var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
.analyticsRegion("us-central1")
.projectId(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
.authorizedNetwork(apigeeNetwork.id())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeVpcConnection)
.build());
var apigeeInstance = new Instance("apigeeInstance", InstanceArgs.builder()
.name("my-instance")
.location("us-central1")
.orgId(apigeeOrg.id())
.peeringCidrRange("SLASH_22")
.build());
var apigeeDeveloper = new Developer("apigeeDeveloper", DeveloperArgs.builder()
.email("john.doe@acme.com")
.firstName("John")
.lastName("Doe")
.userName("john.doe")
.orgId(apigeeOrg.id())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeInstance)
.build());
}
}
resources:
apigeeNetwork:
type: gcp:compute:Network
name: apigee_network
properties:
name: apigee-network
apigeeRange:
type: gcp:compute:GlobalAddress
name: apigee_range
properties:
name: apigee-range
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: ${apigeeNetwork.id}
apigeeVpcConnection:
type: gcp:servicenetworking:Connection
name: apigee_vpc_connection
properties:
network: ${apigeeNetwork.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${apigeeRange.name}
apigeeOrg:
type: gcp:apigee:Organization
name: apigee_org
properties:
analyticsRegion: us-central1
projectId: ${current.project}
authorizedNetwork: ${apigeeNetwork.id}
options:
dependson:
- ${apigeeVpcConnection}
apigeeInstance:
type: gcp:apigee:Instance
name: apigee_instance
properties:
name: my-instance
location: us-central1
orgId: ${apigeeOrg.id}
peeringCidrRange: SLASH_22
apigeeDeveloper:
type: gcp:apigee:Developer
name: apigee_developer
properties:
email: john.doe@acme.com
firstName: John
lastName: Doe
userName: john.doe
orgId: ${apigeeOrg.id}
options:
dependson:
- ${apigeeInstance}
variables:
current:
fn::invoke:
Function: gcp:organizations:getClientConfig
Arguments: {}
Apigee Developer With Attributes
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const current = gcp.organizations.getClientConfig({});
const apigeeNetwork = new gcp.compute.Network("apigee_network", {name: "apigee-network"});
const apigeeRange = new gcp.compute.GlobalAddress("apigee_range", {
name: "apigee-range",
purpose: "VPC_PEERING",
addressType: "INTERNAL",
prefixLength: 16,
network: apigeeNetwork.id,
});
const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigee_vpc_connection", {
network: apigeeNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [apigeeRange.name],
});
const apigeeOrg = new gcp.apigee.Organization("apigee_org", {
analyticsRegion: "us-central1",
projectId: current.then(current => current.project),
authorizedNetwork: apigeeNetwork.id,
}, {
dependsOn: [apigeeVpcConnection],
});
const apigeeInstance = new gcp.apigee.Instance("apigee_instance", {
name: "my-instance",
location: "us-central1",
orgId: apigeeOrg.id,
peeringCidrRange: "SLASH_22",
});
const apigeeDeveloper = new gcp.apigee.Developer("apigee_developer", {
email: "john.doe@acme.com",
firstName: "John",
lastName: "Doe",
userName: "john.doe",
attributes: [
{
name: "business_unit",
value: "HR",
},
{
name: "department",
value: "payroll",
},
],
orgId: apigeeOrg.id,
}, {
dependsOn: [apigeeInstance],
});
import pulumi
import pulumi_gcp as gcp
current = gcp.organizations.get_client_config()
apigee_network = gcp.compute.Network("apigee_network", name="apigee-network")
apigee_range = gcp.compute.GlobalAddress("apigee_range",
name="apigee-range",
purpose="VPC_PEERING",
address_type="INTERNAL",
prefix_length=16,
network=apigee_network.id)
apigee_vpc_connection = gcp.servicenetworking.Connection("apigee_vpc_connection",
network=apigee_network.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[apigee_range.name])
apigee_org = gcp.apigee.Organization("apigee_org",
analytics_region="us-central1",
project_id=current.project,
authorized_network=apigee_network.id,
opts = pulumi.ResourceOptions(depends_on=[apigee_vpc_connection]))
apigee_instance = gcp.apigee.Instance("apigee_instance",
name="my-instance",
location="us-central1",
org_id=apigee_org.id,
peering_cidr_range="SLASH_22")
apigee_developer = gcp.apigee.Developer("apigee_developer",
email="john.doe@acme.com",
first_name="John",
last_name="Doe",
user_name="john.doe",
attributes=[
{
"name": "business_unit",
"value": "HR",
},
{
"name": "department",
"value": "payroll",
},
],
org_id=apigee_org.id,
opts = pulumi.ResourceOptions(depends_on=[apigee_instance]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/apigee"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := organizations.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
apigeeNetwork, err := compute.NewNetwork(ctx, "apigee_network", &compute.NetworkArgs{
Name: pulumi.String("apigee-network"),
})
if err != nil {
return err
}
apigeeRange, err := compute.NewGlobalAddress(ctx, "apigee_range", &compute.GlobalAddressArgs{
Name: pulumi.String("apigee-range"),
Purpose: pulumi.String("VPC_PEERING"),
AddressType: pulumi.String("INTERNAL"),
PrefixLength: pulumi.Int(16),
Network: apigeeNetwork.ID(),
})
if err != nil {
return err
}
apigeeVpcConnection, err := servicenetworking.NewConnection(ctx, "apigee_vpc_connection", &servicenetworking.ConnectionArgs{
Network: apigeeNetwork.ID(),
Service: pulumi.String("servicenetworking.googleapis.com"),
ReservedPeeringRanges: pulumi.StringArray{
apigeeRange.Name,
},
})
if err != nil {
return err
}
apigeeOrg, err := apigee.NewOrganization(ctx, "apigee_org", &apigee.OrganizationArgs{
AnalyticsRegion: pulumi.String("us-central1"),
ProjectId: pulumi.String(current.Project),
AuthorizedNetwork: apigeeNetwork.ID(),
}, pulumi.DependsOn([]pulumi.Resource{
apigeeVpcConnection,
}))
if err != nil {
return err
}
apigeeInstance, err := apigee.NewInstance(ctx, "apigee_instance", &apigee.InstanceArgs{
Name: pulumi.String("my-instance"),
Location: pulumi.String("us-central1"),
OrgId: apigeeOrg.ID(),
PeeringCidrRange: pulumi.String("SLASH_22"),
})
if err != nil {
return err
}
_, err = apigee.NewDeveloper(ctx, "apigee_developer", &apigee.DeveloperArgs{
Email: pulumi.String("john.doe@acme.com"),
FirstName: pulumi.String("John"),
LastName: pulumi.String("Doe"),
UserName: pulumi.String("john.doe"),
Attributes: apigee.DeveloperAttributeArray{
&apigee.DeveloperAttributeArgs{
Name: pulumi.String("business_unit"),
Value: pulumi.String("HR"),
},
&apigee.DeveloperAttributeArgs{
Name: pulumi.String("department"),
Value: pulumi.String("payroll"),
},
},
OrgId: apigeeOrg.ID(),
}, pulumi.DependsOn([]pulumi.Resource{
apigeeInstance,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var current = Gcp.Organizations.GetClientConfig.Invoke();
var apigeeNetwork = new Gcp.Compute.Network("apigee_network", new()
{
Name = "apigee-network",
});
var apigeeRange = new Gcp.Compute.GlobalAddress("apigee_range", new()
{
Name = "apigee-range",
Purpose = "VPC_PEERING",
AddressType = "INTERNAL",
PrefixLength = 16,
Network = apigeeNetwork.Id,
});
var apigeeVpcConnection = new Gcp.ServiceNetworking.Connection("apigee_vpc_connection", new()
{
Network = apigeeNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
apigeeRange.Name,
},
});
var apigeeOrg = new Gcp.Apigee.Organization("apigee_org", new()
{
AnalyticsRegion = "us-central1",
ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
AuthorizedNetwork = apigeeNetwork.Id,
}, new CustomResourceOptions
{
DependsOn =
{
apigeeVpcConnection,
},
});
var apigeeInstance = new Gcp.Apigee.Instance("apigee_instance", new()
{
Name = "my-instance",
Location = "us-central1",
OrgId = apigeeOrg.Id,
PeeringCidrRange = "SLASH_22",
});
var apigeeDeveloper = new Gcp.Apigee.Developer("apigee_developer", new()
{
Email = "john.doe@acme.com",
FirstName = "John",
LastName = "Doe",
UserName = "john.doe",
Attributes = new[]
{
new Gcp.Apigee.Inputs.DeveloperAttributeArgs
{
Name = "business_unit",
Value = "HR",
},
new Gcp.Apigee.Inputs.DeveloperAttributeArgs
{
Name = "department",
Value = "payroll",
},
},
OrgId = apigeeOrg.Id,
}, new CustomResourceOptions
{
DependsOn =
{
apigeeInstance,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.apigee.Organization;
import com.pulumi.gcp.apigee.OrganizationArgs;
import com.pulumi.gcp.apigee.Instance;
import com.pulumi.gcp.apigee.InstanceArgs;
import com.pulumi.gcp.apigee.Developer;
import com.pulumi.gcp.apigee.DeveloperArgs;
import com.pulumi.gcp.apigee.inputs.DeveloperAttributeArgs;
import com.pulumi.resources.CustomResourceOptions;
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 current = OrganizationsFunctions.getClientConfig();
var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
.name("apigee-network")
.build());
var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
.name("apigee-range")
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(apigeeNetwork.id())
.build());
var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
.network(apigeeNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(apigeeRange.name())
.build());
var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
.analyticsRegion("us-central1")
.projectId(current.applyValue(getClientConfigResult -> getClientConfigResult.project()))
.authorizedNetwork(apigeeNetwork.id())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeVpcConnection)
.build());
var apigeeInstance = new Instance("apigeeInstance", InstanceArgs.builder()
.name("my-instance")
.location("us-central1")
.orgId(apigeeOrg.id())
.peeringCidrRange("SLASH_22")
.build());
var apigeeDeveloper = new Developer("apigeeDeveloper", DeveloperArgs.builder()
.email("john.doe@acme.com")
.firstName("John")
.lastName("Doe")
.userName("john.doe")
.attributes(
DeveloperAttributeArgs.builder()
.name("business_unit")
.value("HR")
.build(),
DeveloperAttributeArgs.builder()
.name("department")
.value("payroll")
.build())
.orgId(apigeeOrg.id())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeInstance)
.build());
}
}
resources:
apigeeNetwork:
type: gcp:compute:Network
name: apigee_network
properties:
name: apigee-network
apigeeRange:
type: gcp:compute:GlobalAddress
name: apigee_range
properties:
name: apigee-range
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: ${apigeeNetwork.id}
apigeeVpcConnection:
type: gcp:servicenetworking:Connection
name: apigee_vpc_connection
properties:
network: ${apigeeNetwork.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${apigeeRange.name}
apigeeOrg:
type: gcp:apigee:Organization
name: apigee_org
properties:
analyticsRegion: us-central1
projectId: ${current.project}
authorizedNetwork: ${apigeeNetwork.id}
options:
dependson:
- ${apigeeVpcConnection}
apigeeInstance:
type: gcp:apigee:Instance
name: apigee_instance
properties:
name: my-instance
location: us-central1
orgId: ${apigeeOrg.id}
peeringCidrRange: SLASH_22
apigeeDeveloper:
type: gcp:apigee:Developer
name: apigee_developer
properties:
email: john.doe@acme.com
firstName: John
lastName: Doe
userName: john.doe
attributes:
- name: business_unit
value: HR
- name: department
value: payroll
orgId: ${apigeeOrg.id}
options:
dependson:
- ${apigeeInstance}
variables:
current:
fn::invoke:
Function: gcp:organizations:getClientConfig
Arguments: {}
Create Developer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Developer(name: string, args: DeveloperArgs, opts?: CustomResourceOptions);
@overload
def Developer(resource_name: str,
args: DeveloperArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Developer(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
org_id: Optional[str] = None,
user_name: Optional[str] = None,
attributes: Optional[Sequence[DeveloperAttributeArgs]] = None)
func NewDeveloper(ctx *Context, name string, args DeveloperArgs, opts ...ResourceOption) (*Developer, error)
public Developer(string name, DeveloperArgs args, CustomResourceOptions? opts = null)
public Developer(String name, DeveloperArgs args)
public Developer(String name, DeveloperArgs args, CustomResourceOptions options)
type: gcp:apigee:Developer
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 DeveloperArgs
- 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 DeveloperArgs
- 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 DeveloperArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeveloperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeveloperArgs
- 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 developerResource = new Gcp.Apigee.Developer("developerResource", new()
{
Email = "string",
FirstName = "string",
LastName = "string",
OrgId = "string",
UserName = "string",
Attributes = new[]
{
new Gcp.Apigee.Inputs.DeveloperAttributeArgs
{
Name = "string",
Value = "string",
},
},
});
example, err := apigee.NewDeveloper(ctx, "developerResource", &apigee.DeveloperArgs{
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
LastName: pulumi.String("string"),
OrgId: pulumi.String("string"),
UserName: pulumi.String("string"),
Attributes: apigee.DeveloperAttributeArray{
&apigee.DeveloperAttributeArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var developerResource = new Developer("developerResource", DeveloperArgs.builder()
.email("string")
.firstName("string")
.lastName("string")
.orgId("string")
.userName("string")
.attributes(DeveloperAttributeArgs.builder()
.name("string")
.value("string")
.build())
.build());
developer_resource = gcp.apigee.Developer("developerResource",
email="string",
first_name="string",
last_name="string",
org_id="string",
user_name="string",
attributes=[{
"name": "string",
"value": "string",
}])
const developerResource = new gcp.apigee.Developer("developerResource", {
email: "string",
firstName: "string",
lastName: "string",
orgId: "string",
userName: "string",
attributes: [{
name: "string",
value: "string",
}],
});
type: gcp:apigee:Developer
properties:
attributes:
- name: string
value: string
email: string
firstName: string
lastName: string
orgId: string
userName: string
Developer 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 Developer resource accepts the following input properties:
- Email string
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- First
Name string - First name of the developer.
- Last
Name string - Last name of the developer.
- Org
Id string - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - User
Name string - User name of the developer. Not used by Apigee hybrid.
- Attributes
List<Developer
Attribute> - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- Email string
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- First
Name string - First name of the developer.
- Last
Name string - Last name of the developer.
- Org
Id string - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - User
Name string - User name of the developer. Not used by Apigee hybrid.
- Attributes
[]Developer
Attribute Args - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- email String
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- first
Name String - First name of the developer.
- last
Name String - Last name of the developer.
- org
Id String - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - user
Name String - User name of the developer. Not used by Apigee hybrid.
- attributes
List<Developer
Attribute> - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- email string
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- first
Name string - First name of the developer.
- last
Name string - Last name of the developer.
- org
Id string - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - user
Name string - User name of the developer. Not used by Apigee hybrid.
- attributes
Developer
Attribute[] - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- email str
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- first_
name str - First name of the developer.
- last_
name str - Last name of the developer.
- org_
id str - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - user_
name str - User name of the developer. Not used by Apigee hybrid.
- attributes
Sequence[Developer
Attribute Args] - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- email String
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- first
Name String - First name of the developer.
- last
Name String - Last name of the developer.
- org
Id String - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - user
Name String - User name of the developer. Not used by Apigee hybrid.
- attributes List<Property Map>
- Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Developer resource produces the following output properties:
- Created
At string - Time at which the developer was created in milliseconds since epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringAt - Time at which the developer was last modified in milliseconds since epoch.
- Organizatio
Name string - Name of the Apigee organization in which the developer resides.
- Status string
- Status of the developer. Valid values are active and inactive.
- Created
At string - Time at which the developer was created in milliseconds since epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringAt - Time at which the developer was last modified in milliseconds since epoch.
- Organizatio
Name string - Name of the Apigee organization in which the developer resides.
- Status string
- Status of the developer. Valid values are active and inactive.
- created
At String - Time at which the developer was created in milliseconds since epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringAt - Time at which the developer was last modified in milliseconds since epoch.
- organizatio
Name String - Name of the Apigee organization in which the developer resides.
- status String
- Status of the developer. Valid values are active and inactive.
- created
At string - Time at which the developer was created in milliseconds since epoch.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringAt - Time at which the developer was last modified in milliseconds since epoch.
- organizatio
Name string - Name of the Apigee organization in which the developer resides.
- status string
- Status of the developer. Valid values are active and inactive.
- created_
at str - Time at which the developer was created in milliseconds since epoch.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strat - Time at which the developer was last modified in milliseconds since epoch.
- organizatio_
name str - Name of the Apigee organization in which the developer resides.
- status str
- Status of the developer. Valid values are active and inactive.
- created
At String - Time at which the developer was created in milliseconds since epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringAt - Time at which the developer was last modified in milliseconds since epoch.
- organizatio
Name String - Name of the Apigee organization in which the developer resides.
- status String
- Status of the developer. Valid values are active and inactive.
Look up Existing Developer Resource
Get an existing Developer 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?: DeveloperState, opts?: CustomResourceOptions): Developer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attributes: Optional[Sequence[DeveloperAttributeArgs]] = None,
created_at: Optional[str] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_modified_at: Optional[str] = None,
last_name: Optional[str] = None,
org_id: Optional[str] = None,
organizatio_name: Optional[str] = None,
status: Optional[str] = None,
user_name: Optional[str] = None) -> Developer
func GetDeveloper(ctx *Context, name string, id IDInput, state *DeveloperState, opts ...ResourceOption) (*Developer, error)
public static Developer Get(string name, Input<string> id, DeveloperState? state, CustomResourceOptions? opts = null)
public static Developer get(String name, Output<String> id, DeveloperState 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.
- Attributes
List<Developer
Attribute> - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- Created
At string - Time at which the developer was created in milliseconds since epoch.
- Email string
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- First
Name string - First name of the developer.
- Last
Modified stringAt - Time at which the developer was last modified in milliseconds since epoch.
- Last
Name string - Last name of the developer.
- Org
Id string - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - Organizatio
Name string - Name of the Apigee organization in which the developer resides.
- Status string
- Status of the developer. Valid values are active and inactive.
- User
Name string - User name of the developer. Not used by Apigee hybrid.
- Attributes
[]Developer
Attribute Args - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- Created
At string - Time at which the developer was created in milliseconds since epoch.
- Email string
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- First
Name string - First name of the developer.
- Last
Modified stringAt - Time at which the developer was last modified in milliseconds since epoch.
- Last
Name string - Last name of the developer.
- Org
Id string - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - Organizatio
Name string - Name of the Apigee organization in which the developer resides.
- Status string
- Status of the developer. Valid values are active and inactive.
- User
Name string - User name of the developer. Not used by Apigee hybrid.
- attributes
List<Developer
Attribute> - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- created
At String - Time at which the developer was created in milliseconds since epoch.
- email String
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- first
Name String - First name of the developer.
- last
Modified StringAt - Time at which the developer was last modified in milliseconds since epoch.
- last
Name String - Last name of the developer.
- org
Id String - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - organizatio
Name String - Name of the Apigee organization in which the developer resides.
- status String
- Status of the developer. Valid values are active and inactive.
- user
Name String - User name of the developer. Not used by Apigee hybrid.
- attributes
Developer
Attribute[] - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- created
At string - Time at which the developer was created in milliseconds since epoch.
- email string
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- first
Name string - First name of the developer.
- last
Modified stringAt - Time at which the developer was last modified in milliseconds since epoch.
- last
Name string - Last name of the developer.
- org
Id string - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - organizatio
Name string - Name of the Apigee organization in which the developer resides.
- status string
- Status of the developer. Valid values are active and inactive.
- user
Name string - User name of the developer. Not used by Apigee hybrid.
- attributes
Sequence[Developer
Attribute Args] - Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- created_
at str - Time at which the developer was created in milliseconds since epoch.
- email str
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- first_
name str - First name of the developer.
- last_
modified_ strat - Time at which the developer was last modified in milliseconds since epoch.
- last_
name str - Last name of the developer.
- org_
id str - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - organizatio_
name str - Name of the Apigee organization in which the developer resides.
- status str
- Status of the developer. Valid values are active and inactive.
- user_
name str - User name of the developer. Not used by Apigee hybrid.
- attributes List<Property Map>
- Developer attributes (name/value pairs). The custom attribute limit is 18. Structure is documented below.
- created
At String - Time at which the developer was created in milliseconds since epoch.
- email String
- Email address of the developer. This value is used to uniquely identify the developer in Apigee hybrid. Note that the email address has to be in lowercase only..
- first
Name String - First name of the developer.
- last
Modified StringAt - Time at which the developer was last modified in milliseconds since epoch.
- last
Name String - Last name of the developer.
- org
Id String - The Apigee Organization associated with the Apigee instance,
in the format
organizations/{{org_name}}
. - organizatio
Name String - Name of the Apigee organization in which the developer resides.
- status String
- Status of the developer. Valid values are active and inactive.
- user
Name String - User name of the developer. Not used by Apigee hybrid.
Supporting Types
DeveloperAttribute, DeveloperAttributeArgs
Import
Developer can be imported using any of these accepted formats:
{{org_id}}/developers/{{email}}
{{org_id}}/{{email}}
When using the pulumi import
command, Developer can be imported using one of the formats above. For example:
$ pulumi import gcp:apigee/developer:Developer default {{org_id}}/developers/{{email}}
$ pulumi import gcp:apigee/developer:Developer default {{org_id}}/{{email}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.